You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sa...@apache.org on 2011/07/26 00:28:59 UTC

svn commit: r1150941 - /lucene/dev/branches/branch_3x/dev-tools/maven/README.maven

Author: sarowe
Date: Mon Jul 25 22:28:58 2011
New Revision: 1150941

URL: http://svn.apache.org/viewvc?rev=1150941&view=rev
Log:
- Added Ryan McKinley's example POM snippet to the section about using the Jenkins-published nightly Maven snapshots
- Added David Smiley's source artifact installation cmdline to the example Maven commands section

Modified:
    lucene/dev/branches/branch_3x/dev-tools/maven/README.maven

Modified: lucene/dev/branches/branch_3x/dev-tools/maven/README.maven
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_3x/dev-tools/maven/README.maven?rev=1150941&r1=1150940&r2=1150941&view=diff
==============================================================================
--- lucene/dev/branches/branch_3x/dev-tools/maven/README.maven (original)
+++ lucene/dev/branches/branch_3x/dev-tools/maven/README.maven Mon Jul 25 22:28:58 2011
@@ -17,6 +17,22 @@ A. How to use nightly Jenkins-built Luce
    artifacts are available in Maven repository layout here:
    
       <https://builds.apache.org/hudson/job/Lucene-Solr-Maven-3.x/lastSuccessfulBuild/artifact/maven_artifacts/>
+      
+   An example POM snippet:
+   
+     <project ...>
+       ...
+       <repositories>
+         ...
+         <repository>
+           <id>lucene-solr-jenkins-branch_3x</id>
+           <name>Lucene/Solr Jenkins branch_3x</name>
+           <url>https://builds.apache.org/job/Lucene-Solr-Maven-3.x/lastSuccessfulBuild/artifact/maven_artifacts</url>
+           <layout>default</layout>
+           <snapshots>
+             <enabled>true</enabled>
+           </snapshots>
+         </repository>
 
 
 B. How to generate Lucene Maven artifacts
@@ -97,21 +113,28 @@ D. How to use Maven to build Lucene/Solr
    Some example Maven commands you can use after you perform the above
    preparatory steps:
 
-   - Compile, package, and install all artifacts to your local repository:
+   - Compile, package, and install all binary artifacts to your local
+     repository:
 
          mvn install
 
      After compiling and packaging, but before installing each module's 
      artifact, the above command will also run all the module's tests.
 
-     To compile, package and install all artifacts without running any tests:
+   - Compile, package, and install all binary artifacts to your local
+     repository, without running any tests:
 
          mvn -DskipTests install
 
-   - Run tests:
+   - Compile, package, and install all binary and source artifacts to your
+     local repository, without running any tests:
+
+         mvn -DskipTests source:jar-no-fork install
+
+   - Run all tests:
 
          mvn test
 
-     To run all test methods defined in a test class:
+   - Run all test methods defined in a test class:
 
          mvn -Dtest=TestClassName test