Hi all,
I'm using Maven 2 to build my three projects named
parent0, child1 and child2.
parent0 is parent of child1 and child2.
parent0 has also child1 and child2 as his modules.
child2 depends on child1.
all of three projects have their own pom.
I want to use xdoclet to generate mapping files, so I
configure the plugin xdoclet-maven-plugin in the poms
of child1 and child2:
<tasks>
<property
file="src/main/resources/hibernate.properties" />
<taskdef
name="hibernatedoclet"
classname="xdoclet.modules.hibernate.HibernateDocletTask"
classpathref="maven.compile.classpath" />
<hibernatedoclet
destdir="src/main/resources"
excludedtags="@version,@author,@todo,@see"
verbose="true">
<fileset dir="src/main/java/">
<include name="**/*.java" />
</fileset>
<hibernate version="3.0" />
</hibernatedoclet>
</tasks>
This config is the same in two poms.
When I compile the projects from the root directory of
parent0, the mapping files are generated. But the
problem is:
All the generated mapping files of the project child2
are put in the directory src/main/resources of the
child1, not in child2. It seems to me that the pom of
child2 is not used to generate the mapping files. And
it is overriden by the pom of child1.
Could you give me a help?
Thanks a lot,
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]