You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Gary Gregory <ga...@gmail.com> on 2011/04/04 18:23:28 UTC
[ALL] Maven magic: creating a test jar
Hi All,
For Codec 2 I want to generate a jar file that contains all the unit tests
along with the product jar.
My goal is be able to use this test jar in our product as a sanity check. In
my perfect world, I'd like to have one for each Commons component, but I'll
start at home, in [codec] first.
Ant is easy but how do I do that in the inside-out world of Maven?
--
Thank you,
Gary
http://garygregory.wordpress.com/
http://garygregory.com/
http://people.apache.org/~ggregory/
http://twitter.com/GaryGregory
Re: [ALL] Maven magic: creating a test jar
Posted by Gary Gregory <ga...@gmail.com>.
Thank you sir!
Gary
On Mon, Apr 4, 2011 at 12:33 PM, David Karlsen <da...@gmail.com>wrote:
> Add this
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-jar-plugin</artifactId>
> <executions>
> <execution>
> <goals>
> <goal>test-jar</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
>
>
> 2011/4/4 Gary Gregory <ga...@gmail.com>
>
> > Hi All,
> >
> > For Codec 2 I want to generate a jar file that contains all the unit
> tests
> > along with the product jar.
> >
> > My goal is be able to use this test jar in our product as a sanity check.
> > In
> > my perfect world, I'd like to have one for each Commons component, but
> I'll
> > start at home, in [codec] first.
> >
> > Ant is easy but how do I do that in the inside-out world of Maven?
> >
> > --
> > Thank you,
> > Gary
> >
> > http://garygregory.wordpress.com/
> > http://garygregory.com/
> > http://people.apache.org/~ggregory/
> > http://twitter.com/GaryGregory
> >
>
>
>
> --
> --
> David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen
>
--
Thank you,
Gary
http://garygregory.wordpress.com/
http://garygregory.com/
http://people.apache.org/~ggregory/
http://twitter.com/GaryGregory
Re: [ALL] Maven magic: creating a test jar
Posted by David Karlsen <da...@gmail.com>.
Add this
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
2011/4/4 Gary Gregory <ga...@gmail.com>
> Hi All,
>
> For Codec 2 I want to generate a jar file that contains all the unit tests
> along with the product jar.
>
> My goal is be able to use this test jar in our product as a sanity check.
> In
> my perfect world, I'd like to have one for each Commons component, but I'll
> start at home, in [codec] first.
>
> Ant is easy but how do I do that in the inside-out world of Maven?
>
> --
> Thank you,
> Gary
>
> http://garygregory.wordpress.com/
> http://garygregory.com/
> http://people.apache.org/~ggregory/
> http://twitter.com/GaryGregory
>
--
--
David J. M. Karlsen - http://www.linkedin.com/in/davidkarlsen