MPPLUGIN-26 plugin:download doesn't redownload SNAPSHOT plugins
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@291981 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -434,11 +434,10 @@ Try: maven plugin:download -DgroupId=maven -DartifactId=${pluginToTest} -Dversio
|
||||
|
||||
<u:file var="localPluginFile"
|
||||
name="${maven.repo.local}/${groupId}/plugins/${artifactId}-${version}.jar" />
|
||||
<j:if test="${!localPluginFile.exists()}">
|
||||
<j:if test="${(!localPluginFile.exists()) or (localPluginFile.name.indexOf('SNAPSHOT') != '-1')}">
|
||||
<ant:mkdir dir="${maven.repo.local}/${groupId}/plugins" />
|
||||
<j:set var="repoList">${maven.repo.remote}</j:set>
|
||||
<u:tokenize var="repos" delim=",">${repoList.trim()}</u:tokenize>
|
||||
|
||||
<j:forEach var="repo" items="${repos}">
|
||||
<echo>repo is '${repo}'</echo>
|
||||
<j:set var="remoteFile"
|
||||
@@ -458,7 +457,7 @@ Try: maven plugin:download -DgroupId=maven -DartifactId=${pluginToTest} -Dversio
|
||||
<j:arg type="boolean" value="false"/>
|
||||
</j:invokeStatic>
|
||||
</j:catch>
|
||||
<j:break test="${localPluginFile.exists()}"/>
|
||||
<j:break test="${localPluginFile.exists() and (localPluginFile.name.indexOf('SNAPSHOT') == '-1')}"/>
|
||||
</j:forEach>
|
||||
</j:if>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user