maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Connolly <stephen.alan.conno...@gmail.com>
Subject Re: how do I include test-sources in the release:prepare and release:preform targets.
Date Mon, 21 Sep 2009 21:39:18 GMT
add a second execution with a configuration defining a different classifier
(test-src) and a different includes pattern

2009/9/21 Bill Brown <wbrown@colorfulsoftware.com>

>
> Greetings:
>
> I'm trying to include the "test" sources into a maven repository but am
> struggling getting them to generate.  I want them to be included during the
> 'mvn release' targets, but so far they aren't.  I've taken a look at the
> maven-source-plugin documentation but haven't been able to piece together
> the correct syntax.  I have the following for my configuration with
> <build><plugins>...
> <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-source-plugin</artifactId>
>        <configuration>
>                <includes>
>                        <include>src/main/java/**</include>
>                        <include>src/test/java/**</include>
>                </includes>
>        </configuration>
> </plugin>
>
>
> I would prefer the test sources to be in their own jar file but they can be
> mixed in with the regular sources if that is the only way this will work.
> Can someone on the list here give me a hint for how to do this?
>
> Thanks for your input.
> Bill
>
> --
> View this message in context:
> http://www.nabble.com/how-do-I-include-test-sources-in-the-release%3Aprepare-and-release%3Apreform-targets.-tp25530447p25530447.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message