I needed it too, but I don't think it should be added to the POM,
because it's a bad practice.
The build helper plugin works well for legacy builds.

Jason Dillon wrote:
This functionality should be added to the core pom IMO.
--jason



-----Original Message-----
From: dan tran
To: Maven Users List
Sent: Thu Jan 12 00:13:03 2006
Subject: Re: Using multiple source directories to produce on artefact

oh mine this question is getting popular ;-)
check out

  build-helper-maven-plugin at http://mojo.codehaus.org

maven 2 books are comming out first quater of 2006, i heard

;-)



On 1/12/06, Andreas Zschorn <[EMAIL PROTECTED]> wrote:
Hi,
I have a question regarding maven 2 and the use of multiple source
directories.
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
under
http://maven.apache.org/guides/mini/guide-using-one-source-directory.html
state there is no problem in using several source directories but they
forgot to say how.
Quote:
"There should be no limitations in this approach. Maven natively supports
multiple source directories for the purposes of generated sources.:

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

<plugins>
     <plugin>
       <artifactId>maven-compiler-plugin</artifactId>
       <configuration>
         <includes>
               <include>${basedir}/src</include>
               <include>${basedir}/gen-src</include>
        </includes>
    </configuration>
  </plugin>
</plugins>


I already searched for a solution but the most answers were to change the
directory layout which is in my case not possible.
I really appreciate your help.
Another question regarding documentation. Perhaps I was to stupid to find
it, but is there any good documentation, or book out there for maven 2.
The
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
are
available for a plugin.

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


N�zf����j|��֜�g���az����ފ{^�ם~���z���v���笝��v�z)ڝٚ��'������\��+��u�ݢ�(��z{bjX�~��jب���z���X�i�^��*.j����az)�zw^v���������zf��*.j��z���z-��u��v+,zh�jب�ج����ب��ܢ���
��zf����j|��֜�g���az���+,����\���bn+^t���Z���q�y�a��(�k��ƭ����뢺ey���b+azǧu�ڷ�y��v�M(���n�w�j)Z��,�f����k&򶋜��&jwiz�����'^��^���("��\����֧��)ʇڟ'�j)Z�֧ʚ��.��^��N��*.~���ܢ�^��bon==

--
With kind regards,
Geoffrey De Smet


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to