commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell" <>
Subject Re: [resources] An interesting problem
Date Fri, 27 Aug 2004 20:19:23 GMT
Currently the project.xml produces commons-resources-1.0-dev.jar

Can you help me with how I need to tell maven to create a 2nd artifact?

Something like commons-resources-tests-1.0-dev.jar

James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
AIM: jmitchtx

----- Original Message -----
From: "matthew.hawthorne" <>
To: "Jakarta Commons Developers List" <>
Sent: Friday, August 27, 2004 4:12 PM
Subject: Re: [resources] An interesting problem

> James Mitchell wrote:
> > I want my test classes to reuse this same test code, but I don't know
> > the best approach is.  I don't want to copy/paste the existing code
> > I don't care to maintain the same code in 2 places.  However, I can't
> > reference the jar.....because there is no jar, they are just test
> >
> > What would you do?
> Create a jar containing the test classes.  If other projects depend on
> these tests, then
> they are a valid artifact produced by the project and no longer "just
> test classes".
> I run into this situation frequently when I have one component which
> defines a set of
> interfaces, and also tests for these interfaces.  Then, I have another
> component which implements
> the interfaces, and the tests need to reference the interface tests.
> So, I'm in the habit of producing test jars along side the normal ones.
>   [collections] does something
> similar to this.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message