You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by jv...@apache.org on 2005/10/05 22:07:12 UTC
svn commit: r295099 -
/maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-ear.apt
Author: jvanzyl
Date: Wed Oct 5 13:07:08 2005
New Revision: 295099
URL: http://svn.apache.org/viewcvs?rev=295099&view=rev
Log:
o stubbing out ear guide
Added:
maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-ear.apt (with props)
Added: maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-ear.apt
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-ear.apt?rev=295099&view=auto
==============================================================================
--- maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-ear.apt (added)
+++ maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-ear.apt Wed Oct 5 13:07:08 2005
@@ -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
+
++----+
+
++----+
+
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>com.mycompany.app</groupId>
+ <artifactId>my-webapp</artifactId>
+ <packaging>war</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <finalName>my-webapp</finalName>
+ </build>
+</project>
+
++----+
+
+ Note the <packaging> 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!
Propchange: maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-ear.apt
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/components/trunk/maven-site/src/site/apt/guides/mini/guide-ear.apt
------------------------------------------------------------------------------
svn:keywords = "Author Date Id Revision"