Return-Path: X-Original-To: apmail-lucene-commits-archive@www.apache.org Delivered-To: apmail-lucene-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B91AD6F27 for ; Mon, 25 Jul 2011 22:28:40 +0000 (UTC) Received: (qmail 26530 invoked by uid 500); 25 Jul 2011 22:28:39 -0000 Mailing-List: contact commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list commits@lucene.apache.org Received: (qmail 26523 invoked by uid 99); 25 Jul 2011 22:28:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2011 22:28:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jul 2011 22:28:37 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id CAE7F2388994; Mon, 25 Jul 2011 22:28:15 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1150940 - /lucene/dev/trunk/dev-tools/maven/README.maven Date: Mon, 25 Jul 2011 22:28:15 -0000 To: commits@lucene.apache.org From: sarowe@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110725222815.CAE7F2388994@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sarowe Date: Mon Jul 25 22:28:15 2011 New Revision: 1150940 URL: http://svn.apache.org/viewvc?rev=1150940&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/trunk/dev-tools/maven/README.maven Modified: lucene/dev/trunk/dev-tools/maven/README.maven URL: http://svn.apache.org/viewvc/lucene/dev/trunk/dev-tools/maven/README.maven?rev=1150940&r1=1150939&r2=1150940&view=diff ============================================================================== --- lucene/dev/trunk/dev-tools/maven/README.maven (original) +++ lucene/dev/trunk/dev-tools/maven/README.maven Mon Jul 25 22:28:15 2011 @@ -17,6 +17,22 @@ A. How to use nightly Jenkins-built Luce artifacts are available in Maven repository layout here: + + An example POM snippet: + + + ... + + ... + + lucene-solr-jenkins-trunk + Lucene/Solr Jenkins trunk + https://builds.apache.org/job/Lucene-Solr-Maven-trunk/lastSuccessfulBuild/artifact/maven_artifacts + default + + true + + B. How to generate Lucene Maven artifacts @@ -98,21 +114,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