Hi,

I've tried Maven for one week and try to integrate my Ant scripts. So
far, Maven is really great.

After multiple tries, I think the best way for me is to create a plug-in
instead of create preGoal and postGoal because :
- I cannot move all the sources to the Maven directory layout (We have
multiple CVS module and we use already another directory layout, and
also we build multiple "modules" that are dynamically loaded in our
application).
- I have numerous projects with the same layout so I only need to create
one plugin for all those projects.

I look at the Maven sources and my first problem is to specify multiple
directory to JXR plugin. 

The JXR plugin already contains the method addSourceDir(String
sourceDir), but is there a way to invoke it in a Maven ? 
Or is it more appropriate to create a JXR Ant plugin and use it with ant
path refid instead of the JellyBean ?

The second problem, I need to add more information in project.xml, but
if I understand well, the pom object present in JellyContext is a
org.apache.maven.project.Project object. So I use :
<x:parse var="pom" xml="project.xml"/>
<x:forEach select="$pom/project/build/javaServlet" var="javaServlet">
...
</x:forEach>
This works well but is it the correct way to do this?

And my last question is about the versions of a project, is there a way
to specify jar dependencies depending on the version of the project. For
instance, I have a core project with multiple version (say 1 and 2). The
1.x release depends on Xerces 1.4.4 but the 2.x release on 2.0.2, is
there a way to specify this in project.xml ?

Thanks for the great job you've done with Maven and Commons !

-Eric


--
To unsubscribe, e-mail:   <mailto:turbine-maven-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-maven-user-help@;jakarta.apache.org>

Reply via email to