jvanzyl 2002/07/09 15:52:32
Added: src/plugins/pom plugin.jelly plugin.properties
src/plugins/pom/update/v2-v3 update-descriptor.dvsl
Log:
o Shoving over the rest of the update goodies.
Revision Changes Path
1.1 jakarta-turbine-maven/src/plugins/pom/plugin.jelly
Index: plugin.jelly
===================================================================
<?xml version="1.0"?>
<project
xmlns:j="jelly:core"
xmlns:v="jelly:validate">
<!-- ================================================================== -->
<!-- U P D A T E P O M -->
<!-- ================================================================== -->
<goal
name="pom:validate"
description="Validate the Maven XML project descriptor">
<v:verifier uri="${maven.home}/project.xsd" var="pomVerifier"/>
</goal>
<!-- ================================================================== -->
<!-- V A L I D A T E P O M -->
<!-- ================================================================== -->
<goal
name="pom:update"
description="Update the POM from its current version to a specified version">
</goal>
</project>
1.1 jakarta-turbine-maven/src/plugins/pom/plugin.properties
Index: plugin.properties
===================================================================
# -------------------------------------------------------------------
# P L U G I N P R O P E R I E S
# -------------------------------------------------------------------
# POM plugin.
# -------------------------------------------------------------------
1.1
jakarta-turbine-maven/src/plugins/pom/update/v2-v3/update-descriptor.dvsl
Index: update-descriptor.dvsl
===================================================================
## -----------------------------------------------------------------------
## Transform a v2 project descriptor into a v3 project descriptor.
## -----------------------------------------------------------------------
## Summary of changes:
##
## 1. Increment the <version> element and change the element
## to <pomVersion> as it isn't very clear as to what <version>
## refers to.
##
## 2. Remove the <jar> and <type> elements from the <dependency>
## elements. The versioning has been implemented in the
## central repository. Also convert the <name> element to <id> as
## the <name> should be the display name and <id> the unique
## project identifier.
##
## 3. Expansion of the <organization> element to include a <name>
## and <url>.
## -----------------------------------------------------------------------
#match ("project")
<project>
$context.applyTemplates("*")
</project>
#end
#match ("dependencies")
<dependencies>
$context.applyTemplates("dependency")
</dependencies>
#end
#match ("dependency")
<dependency>
<id>$context.node.name</id>
<version>$context.node.version</version>
#if ($context.node.url != null)<url>$context.node.url</url>#end
</dependency>
#end
#match ("organization")
#if (! $context.node.url)
<organization>
<name>$context.node</name>
<url></url>
</organization>
#end
#end
#match ("*")
#if ($node.name() == "version")
<pomVersion>3</pomVersion>
#elseif ($node.name() == "dependencies")
$context.applyTemplates("dependencies")
#elseif ($node.name() == "organization")
$context.applyTemplates("organization")
#else
$node.copy()
#end
#end
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>