maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allison, Bob" <>
Subject RE: Using multiple source directories to produce on artefact
Date Thu, 12 Jan 2006 10:50:05 GMT
A repost from yesterday...

The XDoclet plugin for Maven expects to place the generated sources in
target/generated-sources/xdoclet and adds it to the compile source list.

If you are specifying a different destination, that may be part of the
problem if the plugin is not doing things quite right.  Try changing
your output directory to match the one mentioned above and see if that

-----Original Message-----
From: Andreas Zschorn [] 
Sent: Thursday, January 12, 2006 03:08
Subject: Using multiple source directories to produce on artefact

I have a question regarding maven 2 and the use of multiple source
I want to migrate from ant to maven and have a problem with compiling 2
source directories to one output directory.
Directory structure is the following.
./src/ --> with the main source files
./gen-src/ --> with generated ejb-source files from xdoclet.
./target/ --> target of compiled files

In the build section I can only state on source-directory. 
The documentation 
state there is no problem in using several source directories but they
forgot to say how.
"There should be no limitations in this approach. Maven natively
multiple source directories for the purposes of generated sources.:

I already tried the approach to include the directories in the
section. The result was, that maven always reported that no files have


I already searched for a solution but the most answers were to change
directory layout which is in my case not possible.
I really appreciate your help.
Another question regarding documentation. Perhaps I was to stupid to
it, but is there any good documentation, or book out there for maven 2.
current docu on the website does not have the deep I would expect, for
example a good plugin howto or an overview which xml-configurations tags
available for a plugin.


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message