diff --git a/maven-site/src/site/apt/guides/mini/guide-webapp.apt b/maven-site/src/site/apt/guides/mini/guide-webapp.apt new file mode 100644 index 0000000000..bcd9622464 --- /dev/null +++ b/maven-site/src/site/apt/guides/mini/guide-webapp.apt @@ -0,0 +1,48 @@ + ------ + Guide to Webapps + ------ + Jason van Zyl + ------ + 12 October 2005 + ------ + ++----+ + +m2 archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-webapp + ++----+ + ++----+ + + + 4.0.0 + com.mycompany.app + my-webapp + war + 1.0-SNAPSHOT + + + junit + junit + 3.8.1 + test + + + + my-webapp + + + ++----+ + + Note the element - this tells Maven to build as a WAR. Change into the webapp project's directory and try: + ++----+ + +m2 clean:clean package + ++----+ + + You'll see target/my-webapp.war is built, and that all the normal steps were executed. + + Now you can modify this webapp project and turn it into anything you need! \ No newline at end of file