Apache Lucene open-source search software
- 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
Steven Rowed45e49d2ee44
diff --git a/dev-tools/maven/README.maven b/dev-tools/maven/README.mavenindex 6f62df3d2e5..702973950e3 100644--- a/dev-tools/maven/README.maven+++ b/dev-tools/maven/README.maven@@ -17,6 +17,22 @@ A. How to use nightly Jenkins-built Lucene/Solr Maven artifactsartifacts are available in Maven repository layout here:<https://builds.apache.org/hudson/job/Lucene-Solr-Maven-trunk/lastSuccessfulBuild/artifact/maven_artifacts/>++ An example POM snippet:++ <project ...>+ ...+ <repositories>+ ...+ <repository>+ <id>lucene-solr-jenkins-trunk</id>+ <name>Lucene/Solr Jenkins trunk</name>+ <url>https://builds.apache.org/job/Lucene-Solr-Maven-trunk/lastSuccessfulBuild/artifact/maven_artifacts</url>+ <layout>default</layout>+ <snapshots>+ <enabled>true</enabled>+ </snapshots>+ </repository>B. How to generate Lucene Maven artifacts@@ -98,21 +114,28 @@ D. How to use Maven to build Lucene/SolrSome example Maven commands you can use after you perform the abovepreparatory steps:- - Compile, package, and install all artifacts to your local repository:+ - Compile, package, and install all binary artifacts to your local+ repository:mvn installAfter compiling and packaging, but before installing each module'sartifact, 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