<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-source</id>
<phase>generate-sources</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${basedir}/src/main/generated-sources</source>
<source>${basedir}/src/main/java</source>
</sources>
<artifacts>
<artifact>
<file>*</file>
<type>java</type>
<classifier>required</classifier>
</artifact>
<artifact>
<file>${basedir}/src/main/generated-sources/</file>
<type>xml</type>
<classifier>required</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>
On Dec 6, 2007 9:22 AM, CodingPlayer <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> i currently try to bundle all my sources together with generated sources
> from the jaxws-maven-plugin (for the use of webservices).
>
> my own sources are in the default directory:
> src/main/java/
>
> and the jaxws-maven.plugin is configured to store the generated sources
> into
> the following directory:
> target/jaxws/wsgen/java
>
> how can i configure the maven-sources-plugin to put all sources from both
> locations into the -sources.jar file?
>
> as far as i found out, neither the maven <sourcesDirectory> nor the
> maven-sources-plugins can deal with multiple source directories.
>
> http://maven.apache.org/ref/2.0.7/maven-model/maven.html#class_build
> http://maven.apache.org/plugins/maven-source-plugin/index.html
>
> appreciating any ideas
>
> thx
> R.C.
> --
> View this message in context:
> http://www.nabble.com/-M2--multiple-source-directories-for--sources.jar--tf4957408s177.html#a14196924
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Thanks,
Mick Knutson
http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/BLiNCMagazine
http://tahoe.baselogic.com
---