From d3304a85018bf2d8123bdcb4a761bca840c747c3 Mon Sep 17 00:00:00 2001 From: Jason van Zyl Date: Wed, 5 Oct 2005 20:07:08 +0000 Subject: [PATCH] o stubbing out ear guide git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@295099 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/site/apt/guides/mini/guide-ear.apt | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 maven-site/src/site/apt/guides/mini/guide-ear.apt diff --git a/maven-site/src/site/apt/guides/mini/guide-ear.apt b/maven-site/src/site/apt/guides/mini/guide-ear.apt new file mode 100644 index 0000000000..a4f21cc92e --- /dev/null +++ b/maven-site/src/site/apt/guides/mini/guide-ear.apt @@ -0,0 +1,48 @@ + ------ + Guide to EARs + ------ + Jason van Zyl + ------ + 12 October 2005 + ------ + ++----+ + +m2 archetype:create -DgroupId=com.mycompany.app -DartifactId=my-webapp -DarchetypeArtifactId=maven-archetype-ear + ++----+ + ++----+ + + + 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!