maven-archetype-webapp eclipse problem maven-archetype-webapp eclipse problem java java

maven-archetype-webapp eclipse problem


Simply create a java directory under main (i.e. src/main/java) and right-click on your project and select Maven > Update Project Configuration.


  1. By default, When you create a project with maven archetype "maven-archetype-webapp", it doesn't create any java and test folders.
  2. You can manually add those folders as src/main/java and src/test/java.
  3. After adding these folders, right click on your project in project explorer, go to maven>update project conf.


Simply create a java directory under main (i.e. src/main/java) and right-click -> Build Path -> Use a Source Folder