use the new plugin:available tag

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@289237 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier
2005-09-15 14:03:10 +00:00
parent 90d6590089
commit 8dee78ca7a

View File

@@ -31,14 +31,7 @@
xmlns:assert="assert">
<j:if test="${bootstrapping == null}">
<!-- Poor mans version check - plugin dependencies still suck for multiple versions -->
<maven:get plugin="maven-artifact-plugin" property="plugin" var="artifactPlugin" />
<j:if test="${artifactPlugin.currentVersion.compareTo('1.3') lt 0}">
<ant:fail>
Must have artifact plugin v1.3 installed to use this version of the plugin plugin.
Try: maven plugin:download -DgroupId=maven -DartifactId=maven-artifact-plugin -Dversion=1.3
</ant:fail>
</j:if>
<plugin:available groupId="maven" artifactId="maven-artifact-plugin" minRelease="1.3" neededBy="maven-plugin-plugin"/>
</j:if>
<goal name="plugin" prereqs="plugin:plugin" description="Build a plugin jar" />