Hi,
I fixed dependencies-to-pom, which now creates the good dependencies.
I prefixed the goals with the "dependency" plugin name.
I also added a default "dependency" goal, which is an alias of
"process-project-descriptors". It allows to type "maven dependency"
instead of "maven dependency:dependencies-to-pom".
St�phane
Index: src/plugins/dependency/createpom.dvsl
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-maven/src/plugins/dependency/createpom.dvsl,v
retrieving revision 1.1
diff -u -r1.1 createpom.dvsl
--- src/plugins/dependency/createpom.dvsl 5 Jul 2002 20:35:05 -0000 1.1
+++ src/plugins/dependency/createpom.dvsl 6 Jul 2002 01:31:14 -0000
@@ -18,15 +18,15 @@
#end
# ============================================================================ #
-# Here, we check that the file "deps.xml" that we created in #
-# ${maven.tmpDir}/${project.id} exists, and if so, the file is parsed and the #
+# Here, we check that the file "deps.xml" that we created in the plugin dir of #
+# maven's tmp dir exists, and if so, the file is parsed and the #
# dependencies are added to the POM. #
# ============================================================================ #
#match("dependencies")
<dependencies>
#if(
$context.toolbox.fileutil.file("$context.toolbox.projectDependencies").exists() )
- #set( $deps = $node.selectNodes("document('$context.toolbox.projectDependencies')")
)
+ #set( $deps =
+$node.selectNodes("document('$context.toolbox.projectDependencies')/project/*") )
#foreach( $dep in $deps )
<dependency>
<id>$!dep.id</id>
Index: src/plugins/dependency/plugin.jelly
===================================================================
RCS file: /home/cvspublic/jakarta-turbine-maven/src/plugins/dependency/plugin.jelly,v
retrieving revision 1.8
diff -u -r1.8 plugin.jelly
--- src/plugins/dependency/plugin.jelly 5 Jul 2002 21:48:19 -0000 1.8
+++ src/plugins/dependency/plugin.jelly 6 Jul 2002 01:30:53 -0000
@@ -15,7 +15,8 @@
<!-- ================================================================== -->
<goal
- name="package-project-map">
+ name="dependency:package-project-map"
+ description="Map the packages to project names in a file">
<define:taglib uri="depTagLib">
<define:jellybean
@@ -39,13 +40,14 @@
<!-- C H E C K O U T S O U R C E S -->
<!-- ================================================================== -->
<!-- This takes the POMs in the subdirectories of -->
- <!-- ${maven.descriptorDir}, retrieves the CVS info, and checks out the -->
+ <!-- maven's descriptor dir, retrieves the CVS info, and checks out the -->
<!-- source to ${maven.tmpDir}. We need to check if the project has -->
<!-- already been checked out, and then simply update the project. -->
<!-- ================================================================== -->
<goal
- name="checkout-sources">
+ name="dependency:checkout-sources"
+ description="Check out the sources of the projects">
<fileScanner var="scanner">
<fileset dir="${maven.descriptorDir}" includes="**/project.xml"/>
@@ -87,7 +89,8 @@
<!-- ================================================================== -->
<goal
- name="resolve-projects">
+ name="dependency:resolve-projects"
+ description="Discovers the dependencies from the source code">
<define:taglib uri="depTagLib">
<define:jellybean
@@ -129,7 +132,8 @@
<!-- POM. -->
<!-- ================================================================== -->
- <goal name="dependencies-to-pom">
+ <goal name="dependency:dependencies-to-pom"
+ description="Put the generated dependencies back to the POM">
<fileScanner var="scanner">
<fileset dir="${maven.descriptorDir}" includes="**/project.xml"/>
@@ -191,22 +195,40 @@
<!-- ================================================================= -->
<goal
- name="process-project-descriptors">
+ name="dependency:process-project-descriptors"
+ description="Map the packages to dependencies, check out the sources,
+ discover the dependencies and update the POM">
+ <attainGoal name="dependency:package-project-map"/>
<!--
Until we can't simply update the sources instead of checking them out
everytime, it's wiser to do it by hand.
- <attainGoal name="package-project-map"/>
- <attainGoal name="checkout-sources"/>
+ <attainGoal name="dependency:checkout-sources"/>
-->
- <attainGoal name="resolve-projects"/>
- <attainGoal name="dependencies-to-pom"/>
+ <attainGoal name="dependency:resolve-projects"/>
+ <attainGoal name="dependency:dependencies-to-pom"/>
<!-- Then, we need to put those dependencies back into the POM -->
+
+ </goal>
+
+ <!-- ================================================================== -->
+ <!-- D E F A U L T G O A L F O R T H I S P L U G I N -->
+ <!-- ================================================================== -->
+ <!-- Map the packages to dependencies, check out the sources, -->
+ <!-- discover the dependencies and update the POM -->
+ <!-- ================================================================== -->
+
+ <goal
+ name="dependency"
+ description="Map the packages to dependencies, check out the sources,
+ discover the dependencies and update the POM">
+
+ <attainGoal name="dependency:process-project-descriptors"/>
</goal>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>