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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user