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:
carlos 2005-09-27 16:55:45 +00:00
parent a2db12c5aa
commit d9a7606cb0
2 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -24,6 +24,7 @@
</properties>
<body>
<release version="1.7-SNAPSHOT" date="In SVN">
<action dev="carlos" type="fix" issue="MPPLUGIN-26">plugin:download didn't redownload SNAPSHOT plugins.</action>
<action dev="ltheussl" type="add">new plugin:validate-xml tag to validate xml documents against a schema.</action>
<action dev="aheritier" type="add">new assert:assertPluginAvailable tag to check if a minimal release of a plugin is present.</action>
</release>