You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by bu...@apache.org on 2007/12/03 08:31:04 UTC

svn commit: r600440 - in /lucene/java/trunk: CHANGES.txt common-build.xml

Author: buschmi
Date: Sun Dec  2 23:31:02 2007
New Revision: 600440

URL: http://svn.apache.org/viewvc?rev=600440&view=rev
Log:
LUCENE-935: Allow to deploy maven artifacts to a remote m2 repository via scp and ssh authentication.

Modified:
    lucene/java/trunk/CHANGES.txt
    lucene/java/trunk/common-build.xml

Modified: lucene/java/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/CHANGES.txt?rev=600440&r1=600439&r2=600440&view=diff
==============================================================================
--- lucene/java/trunk/CHANGES.txt (original)
+++ lucene/java/trunk/CHANGES.txt Sun Dec  2 23:31:02 2007
@@ -323,6 +323,9 @@
  6. LUCENE-1055: Remove gdata-server from build files and its sources 
     from trunk. (Michael Busch)
 
+ 7. LUCENE-935: Allow to deploy maven artifacts to a remote m2 repository
+    via scp and ssh authentication. (Michael Busch)
+
 Test Cases
 
 ======================= Release 2.2.0 2007-06-19 =======================

Modified: lucene/java/trunk/common-build.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/common-build.xml?rev=600440&r1=600439&r2=600440&view=diff
==============================================================================
--- lucene/java/trunk/common-build.xml (original)
+++ lucene/java/trunk/common-build.xml Sun Dec  2 23:31:02 2007
@@ -66,6 +66,7 @@
   <property name="dist.dir" location="dist"/>
   <property name="maven.dist.dir" location="dist/maven"/>
   <property name="m2.repository.url" value="file://${maven.dist.dir}"/>
+  <property name="m2.repository.private.key" value="${user.home}/.ssh/id_dsa"/>
 
   <property name="javacc.home" location="${common.dir}"/>
   <property name="jflex.home" location="${common.dir}"/>
@@ -248,11 +249,14 @@
           <filter token="version" value="${version}"/>
         </filterset>
       </copy>
+	  <artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-2"/>
     	
       <artifact:pom id="maven.project" file="${build.dir}/@{pom.xml}" />
       <artifact:deploy file="${build.dir}/${maven.project.build.finalName}.jar">
         <artifact-attachments/>
-      	<remoteRepository url="${m2.repository.url}"/>
+      	<remoteRepository url="${m2.repository.url}">
+          <authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}"/>
+		</remoteRepository>
         <pom refid="maven.project"/>
       </artifact:deploy>
     </sequential>
@@ -523,6 +527,7 @@
 
 
 </project>
+