Added a property to specify Unix group that should own deployed artifacts
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113309 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ec75c1dd75
commit
25cf643f2a
@ -24,8 +24,8 @@
|
||||
<ant:available property="maven.jar.manifest.available"
|
||||
file="${maven.jar.manifest}"/>
|
||||
|
||||
<!-- See http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html -->
|
||||
<!-- See http://java.sun.com/j2se/1.4.1/docs/guide/jar/jar.html -->
|
||||
<!-- See http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html -->
|
||||
<!-- See http://java.sun.com/j2se/1.4.1/docs/guide/jar/jar.html -->
|
||||
<ant:jar
|
||||
jarfile="${maven.build.dir}/${maven.final.name}.jar"
|
||||
basedir="${maven.build.dest}"
|
||||
@ -65,7 +65,7 @@
|
||||
<j:set var="extensionList" value="${extensionList},${dep.artifactId}"/>
|
||||
</j:forEach>
|
||||
|
||||
<j:if test="${extensionList.length() != 0}">
|
||||
<j:if test="${extensionList.length() != 0}">
|
||||
<j:set var="extensionList" value="${extensionList.substring(1)}"/>
|
||||
<ant:attribute name="Extension-List" value="${extensionList}"/>
|
||||
</j:if>
|
||||
@ -73,9 +73,9 @@
|
||||
|
||||
<j:forEach var="artifact" items="${pom.artifacts}">
|
||||
<j:set var="dep" value="${artifact.dependency}"/>
|
||||
<ant:attribute name="${dep.artifactId}-Extension-Name" value="${dep.artifactId}"/>
|
||||
<ant:attribute name="${dep.artifactId}-Implementation-Version" value="${dep.version}"/>
|
||||
<ant:attribute name="${dep.artifactId}-Implementation-URL" value="http://www.ibiblio.org/maven${artifact.urlPath}"/>
|
||||
<ant:attribute name="${dep.artifactId}-Extension-Name" value="${dep.artifactId}"/>
|
||||
<ant:attribute name="${dep.artifactId}-Implementation-Version" value="${dep.version}"/>
|
||||
<ant:attribute name="${dep.artifactId}-Implementation-URL" value="http://www.ibiblio.org/maven${artifact.urlPath}"/>
|
||||
</j:forEach>
|
||||
</ant:manifest>
|
||||
</ant:jar>
|
||||
@ -123,7 +123,7 @@
|
||||
artifact="${relativePath}"
|
||||
type="jars"
|
||||
assureDirectoryCommand="mkdir -p"
|
||||
siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}; chgrp maven ${maven.jar.to.deploy}; ln -sf ${maven.jar.to.deploy} ${pom.artifactId}-SNAPSHOT.jar; echo ${snapshotVersion} > ${pom.artifactId}-snapshot-version"
|
||||
siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}; chgrp ${maven.remote.group} ${maven.jar.to.deploy}; ln -sf ${maven.jar.to.deploy} ${pom.artifactId}-SNAPSHOT.jar; echo ${snapshotVersion} > ${pom.artifactId}-snapshot-version"
|
||||
/>
|
||||
|
||||
</goal>
|
||||
@ -152,7 +152,7 @@
|
||||
artifact="${relativePath}"
|
||||
type="jars"
|
||||
assureDirectoryCommand="mkdir -p"
|
||||
siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}; chgrp maven ${maven.jar.to.deploy}"
|
||||
siteCommand="cd @deployDirectory@; chmod g+w ${maven.jar.to.deploy}; chgrp ${maven.remote.group} ${maven.jar.to.deploy}"
|
||||
/>
|
||||
|
||||
</goal>
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
# -------------------------------------------------------------------
|
||||
# P L U G I N P R O P E R T I E S
|
||||
# -------------------------------------------------------------------
|
||||
|
||||
maven.remote.group=maven
|
||||
@ -161,7 +161,7 @@
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
This property is the list of the
|
||||
<source><![CDATA[
|
||||
<source><![CDATA[
|
||||
<build>
|
||||
<sourceModification>
|
||||
<sourceModification>
|
||||
@ -188,7 +188,7 @@
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
This is a calculated property based on the value of the
|
||||
<source><![CDATA[
|
||||
<source><![CDATA[
|
||||
<build>
|
||||
<resources>
|
||||
</resources>
|
||||
@ -241,7 +241,7 @@
|
||||
<td>
|
||||
This is the Ant <code>patternset</code> of all the <code>include</code>s and
|
||||
<code>exclude</code>s from the
|
||||
<source><![CDATA[
|
||||
<source><![CDATA[
|
||||
<build>
|
||||
<resources>
|
||||
</resources>
|
||||
@ -286,6 +286,13 @@
|
||||
This is the user name used to log in to the remote repository
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.remote.group</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
The name of the Unix group that should own deployed artifacts. Default to maven
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
<section name="Other Settings">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user