On Wed, Sep 28, 2011 at 12:15 PM, Matt Benson <[email protected]> wrote:

> On Tue, Sep 27, 2011 at 10:00 PM, Gary Gregory <[email protected]>
> wrote:
> > Hi All:
> >
> > Does any one know how to pull down the lang3 tests jar out of Maven
> Central
> > with Ivy (from Ant)?
> >
> > I use:
> >
> >  <dependency org="org.apache.commons" name="commons-lang3"
> > conf="...myconfs..." rev="3.0.1"/>
> >
> > but that does not pull down the tests jar. It does get the jar, Javadoc
> jar
> > and sources jar though...
> >
>
> Hi, Gary.  You'll most likely need to specify individual <artifact>
> elements to the dependency, e.g.:
>
> <artifact type="jar" ext="jar" />
> <artifact type="test-jar" ext="jar" m:classifier="tests" />
> etc.
>
> This example presumes xmlns:m="http://ant.apache.org/ivy/maven";, and
> is untested!  :o
>

This worked:

<artifact type="test-jar" ext="jar" classifier="tests" />

Thank you Matt!
Gary


>
> HTH,
> Matt
>
> > Thank you,
> > Gary
> >
> > --
> > E-Mail: [email protected] | [email protected]
> > JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> > Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> > Blog: http://garygregory.wordpress.com
> > Home: http://garygregory.com/
> > Tweet! http://twitter.com/GaryGregory
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
E-Mail: [email protected] | [email protected]
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Reply via email to