Add a goal to generate all POMs

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113131 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dion committed 2003-03-17 12:40:12 +00:00
1 parent 406b6ab636
commit a5fcca28b2
1 file changed
+17
+17
View File
@@ -260,6 +260,23 @@
</x:forEach>
</goal>
<goal name="repository:audit-generate-poms"
description="generate a pom for all the groupId's in the audit file">
<repository:parseAudit var="audit"/>
<x:forEach var="project" select="$audit/licenses/project">
<j:set var="group"><x:expr select="$project/groupId"/></j:set>
<ant:echo>Creating pom for ${group}</ant:echo>
<x:set var="url" select="string($project/url)"/>
<x:set var="comments" select="string($project/comments)"/>
<!-- get file and don't let the &amp; get reescaped -->
<x:set var="xfile" select="string($project/file)" />
<j:file name="${maven.build.dir}/${group}.pom" prettyPrint="yes">
<j:import file="${plugin.resources}/pom-template.jelly" inherit="true"/>
</j:file>
</x:forEach>
</goal>
<!-- expects groupId to be set -->
<goal name="repository:create-project"
description="create a project, specified by groupId, in the repository">