Edit Maven Archetype after creating a project in eclipse?

I created a maven project with maven-archetype-quickstart. I started coding and now I want to change the archetype to maven-archetype-webappto make it a dynamic web project. How to achieve this?

+5
source share
1 answer

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.

+4
source

All Articles