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:
1 parent
1388638d40
commit
60abcae463
2 files changed
+7
-3
No files matched your search
+4
-3
@@ -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"
|
||||
|
||||
@@ -45,5 +45,8 @@
|
||||
document.
|
||||
</p>
|
||||
</section>
|
||||
<section name="Requirements">
|
||||
<p>Be careful, this plugin need maven 1.1 and at least the release 1.7 of the artifact plugin.</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
Reference in new issue
Block a user