Hi,
yes that works.
I´ve added the build-helper-maven-plugin and joined at the test phase
(before packaging):
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-groovy-source</id>
<!-- before package phase
-->
<phase>test</phase>
<goals>
<goal>add-source</goal>
</goals>
<configuration>
<sources>
<source>${basedir}/src/main/groovy</source>
</sources>
</configuration>
</execution>
<execution>
<id>add-groovy-test-source</id>
<!-- before package phase
-->
<phase>test</phase>
<goals>
<goal>add-test-source</goal>
</goals>
<configuration>
<sources>
<source>${basedir}/src/test/groovy</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
But it´s not very obvious to use that plugin to add some source files -
instead of having it directly at the maven-source-plugin where one would
suggest it.
Thanx !
torsten
Martin Höller <[email protected]>
26.05.2009 09:06
Bitte antworten an
"Maven Users List" <[email protected]>
An
"Maven Users List" <[email protected]>
Kopie
Thema
Re: use relative "..\..." Path in <includes> and <excludes> of
maven-source-plugin?
Hi!
On Monday 25 May 2009 [email protected] wrote:
> I´m trying to include some additional files in my sources.jar:
>
> src\main\java
> src\main\groovy
I never used it, but I guess you have to use the build helper maven plugin
to add additional source paths to you project. See
http://mojo.codehaus.org/build-helper-maven-plugin/usage.html for details.
hth,
- martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]