The Maven project wizard creates src and target folders under the main project folder. As the name suggests, all source files go under src. However, Java package structure starts under the main folder. By convention, Maven expects Java source files under the java folder. Therefore, create a java folder under src/main. The Java package structure starts from the java folder, that is, src/main/java/<java-packages>. Web content such as HTML, JS, CSS, and JSP goes in the webapp folder under src/main. Compiled classes and other output files generated by the Maven build process are stored in the target folder:
Maven project structure
Figure 2.35: ...
Get Java EE 8 Development with Eclipse now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.