lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sar...@apache.org
Subject svn commit: r1066086 - /lucene/dev/nightly/common-maven.sh
Date Tue, 01 Feb 2011 16:37:57 GMT
Author: sarowe
Date: Tue Feb  1 16:37:56 2011
New Revision: 1066086

URL: http://svn.apache.org/viewvc?rev=1066086&view=rev
Log:
remove previous Lucene/Solr artifacts from the maven local repository before generating maven
artifacts (previously the entire maven local repository was being removed in hudson-settings.sh

Modified:
    lucene/dev/nightly/common-maven.sh

Modified: lucene/dev/nightly/common-maven.sh
URL: http://svn.apache.org/viewvc/lucene/dev/nightly/common-maven.sh?rev=1066086&r1=1066085&r2=1066086&view=diff
==============================================================================
--- lucene/dev/nightly/common-maven.sh (original)
+++ lucene/dev/nightly/common-maven.sh Tue Feb  1 16:37:56 2011
@@ -4,7 +4,10 @@
 MAVEN_ARTIFACTS=$WORKSPACE/maven_artifacts
 export M2_HOME=$HOME/tools/maven/latest2.2
 
-mkdir -p $MAVEN_ARTIFACTS/org/apache
+echo ">>> Removing Lucene/Solr artifacts from ~/.m2/repository/"
+rm -rf $HOME/.m2/repository/org/apache/lucene
+rm -rf $HOME/.m2/repository/org/apache/solr
+echo ">>> Done removing Lucene/Solr artifacts from ~/.m2/repository/"
 
 cd $WORKSPACE/$ROOT_DIR
 
@@ -16,11 +19,6 @@ $ANT_HOME/bin/ant \
   generate-maven-artifacts
 echo ">>> Done generating the Maven snapshot artifacts"
 
-echo ">>> Removing Lucene/Solr artifacts from ~/.m2/repository/"
-rm -rf $HOME/.m2/repository/org/apache/lucene
-rm -rf $HOME/.m2/repository/org/apache/solr
-echo ">>> Done removing Lucene/Solr artifacts from ~/.m2/repository/"
-
 echo ">>> Installing non-mavenized deps into the maven local repo"
 $M2_HOME/bin/mvn --batch-mode --non-recursive -Pbootstrap install
 echo ">>> Done installing non-mavenized deps into the maven local repo"
@@ -28,3 +26,5 @@ echo ">>> Done installing non-mavenized 
 echo ">>> Running the Maven build"
 $M2_HOME/bin/mvn --batch-mode --fail-at-end clean install
 echo ">>> Done running the Maven build"
+
+mkdir -p $MAVEN_ARTIFACTS/org/apache



Mime
View raw message