Check that maven-artifact-plugin >= 1.7 is installed only when needed (in the plugin:plugin goal) and not when the plugin is loaded.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@327708 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier committed 2005-10-22 22:19:01 +00:00
1 parent b155674536
commit d030546ed1
4 files changed
+5 -8

No files matched your search

+1 -4
View File
@@ -214,16 +214,13 @@ Try: maven plugin:download -DgroupId=maven -DartifactId=${pluginToTest} -Dversio
</define:taglib>
<j:if test="${bootstrapping == null}">
<assert:assertPluginAvailable groupId="maven" artifactId="maven-artifact-plugin" minRelease="1.7" neededBy="${plugin.artifactId}"/>
</j:if>
<goal name="plugin" prereqs="plugin:plugin" description="Build a plugin jar" />
<goal name="plugin:plugin" description="Build a plugin jar">
<!-- For some reason a prereq on this causes an internal error... -->
<attainGoal name="jar:jar" />
<!-- We can't use it in the bootstrap phase because classes aren't yet build in the artifact plugin -->
<j:if test="${bootstrapping == null}">
<assert:assertPluginAvailable groupId="maven" artifactId="maven-artifact-plugin" minRelease="1.7" neededBy="${plugin.artifactId}"/>
<artifact:rewritePOM path="${maven.build.dir}/project.xml"/>
<ant:jar
jarfile="${maven.build.dir}/${maven.jar.final.name}"