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:
1 parent
406b6ab636
commit
a5fcca28b2
1 file changed
+17
@@ -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 & 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">
|
||||
|
||||
Reference in new issue
Block a user