mirror of https://github.com/apache/lucene.git
SOLR-2634: added maven repository password authentication to artifact deployment macros as an alternative to private key authentication
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1143878 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3ad65686e5
commit
69009a84cb
|
@ -331,7 +331,7 @@
|
|||
<artifact:deploy file="${build.dir}/${maven.project.build.finalName}.jar">
|
||||
<artifact-attachments/>
|
||||
<remoteRepository url="${m2.repository.url}">
|
||||
<authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}"/>
|
||||
<authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}" password="${m2.repository.password}"/>
|
||||
</remoteRepository>
|
||||
<pom refid="maven.project"/>
|
||||
</artifact:deploy>
|
||||
|
@ -351,7 +351,7 @@
|
|||
<artifact:pom id="maven.project" file="${maven.build.dir}/@{pom.xml}" />
|
||||
<artifact:deploy file="@{jar.file}">
|
||||
<remoteRepository url="${m2.repository.url}">
|
||||
<authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}"/>
|
||||
<authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}" password="${m2.repository.password}"/>
|
||||
</remoteRepository>
|
||||
<pom refid="maven.project"/>
|
||||
</artifact:deploy>
|
||||
|
|
|
@ -162,8 +162,9 @@
|
|||
into your local repository). If you wish to deploy to a remote
|
||||
repository, set this property to the URL of that repository. In
|
||||
addition, if the repository requires authentication, you can set
|
||||
properties "m2.repository.username" and "m2.repository.private.key"
|
||||
to define your credentials.
|
||||
properties "m2.repository.username" and either
|
||||
"m2.repository.private.key" or "m2.repository.password" to define
|
||||
your credentials.
|
||||
-->
|
||||
<property name="m2.repository.url" value="file://${maven.dist.dir}"/>
|
||||
<property name="m2.repository.private.key" value="${user.home}/.ssh/id_dsa"/>
|
||||
|
@ -423,7 +424,7 @@
|
|||
<artifact:deploy file="@{jar.file}">
|
||||
<artifact-attachments/>
|
||||
<remoteRepository url="${m2.repository.url}">
|
||||
<authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}"/>
|
||||
<authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}" password="${m2.repository.password}"/>
|
||||
</remoteRepository>
|
||||
<pom refid="maven.project"/>
|
||||
</artifact:deploy>
|
||||
|
@ -443,7 +444,7 @@
|
|||
<artifact:pom id="maven.project" file="${maven.build.dir}/@{pom.xml}" />
|
||||
<artifact:deploy file="@{jar.file}">
|
||||
<remoteRepository url="${m2.repository.url}">
|
||||
<authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}"/>
|
||||
<authentication username="${m2.repository.username}" privateKey="${m2.repository.private.key}" password="${m2.repository.password}"/>
|
||||
</remoteRepository>
|
||||
<pom refid="maven.project"/>
|
||||
</artifact:deploy>
|
||||
|
|
Loading…
Reference in New Issue