Don't rewrite POM during bootstrap (artifact plugin isn't yet built)

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@293176 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier committed 2005-10-02 22:02:49 +00:00
1 parent 527ce5489e
commit 0d78ab188e
1 file changed
+11 -8
+11 -8
View File
@@ -222,14 +222,17 @@ Try: maven plugin:download -DgroupId=maven -DartifactId=${pluginToTest} -Dversio
<goal name="plugin:plugin" description="Build a plugin jar">
<!-- For some reason a prereq on this causes an internal error... -->
<attainGoal name="jar:jar" />
<artifact:rewritePOM path="${maven.build.dir}/project.xml"/>
<ant:jar
jarfile="${maven.build.dir}/${maven.jar.final.name}"
basedir="${maven.build.dir}"
update="true">
<ant:setProperty name="includes" value="project.xml" />
</ant:jar>
<ant:delete file="${maven.build.dir}/project.xml" quiet="true"/>
<!-- We can't use it in the bootstrap phase because classes aren't yet build in the artifact plugin -->
<j:if test="${bootstrapping == null}">
<artifact:rewritePOM path="${maven.build.dir}/project.xml"/>
<ant:jar
jarfile="${maven.build.dir}/${maven.jar.final.name}"
basedir="${maven.build.dir}"
update="true">
<ant:setProperty name="includes" value="project.xml" />
</ant:jar>
<ant:delete file="${maven.build.dir}/project.xml" quiet="true"/>
</j:if>
</goal>
<goal name="plugin:install" prereqs="plugin:plugin"