Use the artifact plugin to resolve project.xml inheritance when installing plugin.

Must be fixed : override properties aren't used.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@293049 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
aheritier
2005-10-02 01:03:29 +00:00
parent 1388638d40
commit 60abcae463
2 changed files with 7 additions and 3 deletions

View File

@@ -215,20 +215,21 @@ 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.3" neededBy="${plugin.artifactId}"/>
<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" />
<j:file name="${maven.build.dir}/project.xml" escapeText="false" outputMode="xml">${pom.projectAsString}</j:file>
<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:jar>
<ant:delete file="${maven.build.dir}/project.xml" quiet="true"/>
</goal>
<goal name="plugin:install" prereqs="plugin:plugin"