You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by br...@apache.org on 2005/03/15 06:47:38 UTC

svn commit: r157520 - maven/maven-1/core/trunk/xdocs/using/jar.xml

Author: brett
Date: Mon Mar 14 21:47:35 2005
New Revision: 157520

URL: http://svn.apache.org/viewcvs?view=rev&rev=157520
Log:
write jar doc

Modified:
    maven/maven-1/core/trunk/xdocs/using/jar.xml

Modified: maven/maven-1/core/trunk/xdocs/using/jar.xml
URL: http://svn.apache.org/viewcvs/maven/maven-1/core/trunk/xdocs/using/jar.xml?view=diff&r1=157519&r2=157520
==============================================================================
--- maven/maven-1/core/trunk/xdocs/using/jar.xml (original)
+++ maven/maven-1/core/trunk/xdocs/using/jar.xml Mon Mar 14 21:47:35 2005
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!--
 /*
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -26,8 +26,39 @@
 
   <body>
     <section name="Working with JARs">
-      <!-- TODO -->
-      <p>...</p>
+      <p>
+        Building a JAR with Maven is one of the simplest uses, and it is the default project that Maven
+        will build.
+      </p>
+      <p>
+        For a basic build example, you can see the <a href="../start/ten-minute-test.html">Getting Started Guide</a>.
+        This goes through the steps of setting up a simple Java project and building a JAR.
+      </p>
+      <p>
+        What will happen is that the Java code will be compiled (as specified by the source directory you've given),
+        resources copied into the root location for the JAR (also given in the project descriptor), the tests run,
+        and a JAR bundled up.
+      </p>
+      <p>
+        To add additional files, such as a manifest - you can add more resources, and they will be copied into the root
+        of the JAR with directories intact.
+      </p>
+      <p>
+        If you would like to customise the existing manifest, there are several properties that can be set. For example,
+        <code>maven.jar.main.class=com.mycompany.Main</code> will set the <code>Main-Class</code> attribute.
+      </p>
+      <p>
+        Everything you do with Java in Maven will build from this foundation. The following sections will describe
+        resources, tests, and other functionality that is available to build files other than JARs.
+      </p>
+      <p>
+        For more information on the specifics of the JAR, please consult the
+        <a href="../reference/plugins/jar/index.html">JAR plugin documentation</a>. Goals in Maven will have their
+        documentation listed under their respective plugins in that documentation reference.
+      </p>
+      <p>
+        To continue to the next topic, see <a href="resources.html">Working with Resources</a>.
+      </p>
     </section>
   </body>
 </document>



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org