o Start of snapshot converter.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@112813 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
581940bc09
commit
b6b6a50c35
@ -43,6 +43,27 @@
|
||||
|
|
||||
-->
|
||||
<goal name="convert-snapshots">
|
||||
|
||||
<j:useBean var="snapshots" class="java.util.ArrayList"/>
|
||||
|
||||
<j:forEach var="dependency" items="${pom.dependencies}">
|
||||
<j:if test="${dependency.version == 'SNAPSHOT'}">
|
||||
<j:set var="dummy" value="${snapshots.add(dependency)}"/>
|
||||
</j:if>
|
||||
</j:forEach>
|
||||
|
||||
<j:if test="${size(snapshots) > 0}">
|
||||
<j:forEach var="dependency" items="${snapshots}">
|
||||
<get
|
||||
dest="${maven.build.dir}/${dependency.artifactId}-snapshot-version"
|
||||
usetimestamp="false"
|
||||
ignoreerrors="true"
|
||||
src="http://www.ibiblio.org/${dependency.groupId}/jars/${dependency.artifactId}-snapshot-version"
|
||||
/>
|
||||
</j:forEach>
|
||||
</j:if>
|
||||
|
||||
|
||||
</goal>
|
||||
|
||||
<!--
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user