Archetypes are used only to create a project (i.e. initialize the configuration, source folders, etc.) and are not used after that. Therefore, if you want to change your project, you must do it "manually."
It seems that in your case, you just need to change the type of package for war in pom.xml and continue the βMaven update projectβ in your IDE so that the maven plugin updates the configuration.
source
share