On Thu, 2002-07-04 at 10:25, St�phane MOR wrote:
> Hi,
>
> There is a patch to start integrated everything in the dependency plugin.
> I made a goal named "process-project-descriptors".
> This will generate the Package -> Project map, and then generate the
> package dependencies
> from the project's sources. Using the map, another goal generates the
> project dependencies,
> instead of the package deps. We still need something after that to
> reintegrate the dependencies
> to the POM.
>
> We should also update the projects' sources too, but by now it checks
> them out instead of
> updating the sources, so it takes ages.
>
> I also renamed the goal, so that they are lowercase and hyphenated.
Excellent! Thanks, patch has been applied.
> St�phane
> ----
>
> Index: src/plugins/dependency/plugin.jelly
> ===================================================================
> RCS file: /home/cvspublic/jakarta-turbine-maven/src/plugins/dependency/plugin.jelly,v
> retrieving revision 1.5
> diff -u -r1.5 plugin.jelly
> --- src/plugins/dependency/plugin.jelly 3 Jul 2002 21:49:02 -0000 1.5
> +++ src/plugins/dependency/plugin.jelly 4 Jul 2002 14:17:48 -0000
> @@ -11,7 +11,7 @@
> <!-- ================================================================== -->
>
> <goal
> - name="checkoutSources">
> + name="checkout-sources">
>
> <fileScanner var="scanner">
> <fileset dir="${maven.descriptorDir}" includes="**/project.xml"/>
> @@ -49,7 +49,7 @@
> <!-- ================================================================== -->
>
> <goal
> - name="resolveProjects">
> + name="resolve-projects">
>
> <define:taglib uri="depTagLib">
> <define:jellybean
> @@ -93,7 +93,7 @@
> <!-- ================================================================== -->
>
> <goal
> - name="packageProjectMap">
> + name="package-project-map">
>
> <define:taglib uri="depTagLib">
> <define:jellybean
> @@ -113,5 +113,39 @@
>
> </goal>
>
> -</project>
> + <!-- ================================================================= -->
> + <!-- P R O C E S S P R O J E C T D E S C R I P T O R S -->
> + <!-- ================================================================= -->
> + <!-- This goal is a collection of goals. It should first checkout the -->
> + <!-- source of the projects we consider, then match packages to -->
> + <!-- projects, get the package names from the sources, and them -->
> + <!-- all that in a file "deps.xml" in each source dir of each project -->
> + <!-- that contains all the projects' 1st-order dependencies, in term -->
> + <!-- of projects rather than packages ! -->
> + <!-- -->
> + <!-- This is to be used mainly by new projects (ie: you build the -->
> + <!-- the source, and this takes care of your POM and dependencies. -->
> + <!-- It may also be used during the whole lifetime of the project, if -->
> + <!-- project maintainers end up having a missing dependencies section. -->
> + <!-- ================================================================= -->
> +
> + <goal
> + name="process-project-descriptors">
> +
> + <!--
> +
> + Until we can't simply update the sources instead of checking them out
> + everytime, it's wiser to do it by hand.
> +
> + <attainGoal name="checkout-sources"/>
> +
> + -->
> +
> + <attainGoal name="package-project-map"/>
> + <attainGoal name="resolve-projects"/>
> +
> + <!-- Then, we need to put those dependencies back into the POM -->
> +
> + </goal>
>
> +</project>
>
> ----
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
jvz.
Jason van Zyl
[EMAIL PROTECTED]
http://tambora.zenplex.org
In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
-- Jacques Ellul, The Technological Society
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>