Thursday, September 13, 2007

Maven 1.0.2 Structure

A project that uses the WAR plug-in contains three source trees:




src/main

Contains the runtime Java sources.



src/test

Contains the JUnit tests for unit testing the Java code found in src/main. Note that these unit tests are performed in isolation (i.e., without a running container). They are not functional tests.




src/webapp

Contains all the web application resources (HTML files, JSP files, configuration files, etc.). For the web subproject you have only a WEB-INF/web.xml file, which maps the Servlet to a web context.

No comments: