Thanks Simone,
I've tried with target/class but it doesn't work. The
hibernate mappings are always put in target/class of
the parent0. Do you have any idea about this? Thanks
again.
--- Simone Gianni <[EMAIL PROTECTED]> wrote:
> Hi Nguyen,
> don't trust me too much cause I'm still far from
> being a Maven expert :)
> but we made some experiments in using Hibernate
> doclets in a maven 2
> project, and what i see is that you are generating
> mappings in the
> src/main/resources directory (destdir), which IIUC
> should contain source
> resources and not generated ones.
>
> IIRC we used to generate the hibernate mappings
> directly in the target
> directory (where .class are) and not in the src
> directory.
>
> Maybe, maybe, that could be why maven is getting
> confused and brings
> resources from one project to another?
>
> Simone
>
> Nguyen Huy Quang wrote:
>
> >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:
> >
> >
> > >
> >file="src/main/resources/hibernate.properties" />
> >
> > > name="hibernatedoclet"
> >
>
>classname="xdoclet.modules.hibernate.HibernateDocletTask"
> >
> > classpathref="maven.compile.classpath" />
> >
> > >
> > destdir="src/main/resources"
> >
> > excludedtags="@version,@author,@todo,@see"
> >verbose="true">
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >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]
> >
> >
> >
> --
> Simone Gianni
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__
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]