ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée <>
Subject Re: IvyDE resolving artifacts with m:classifier
Date Thu, 04 Nov 2010 16:15:27 GMT

Le 4 nov. 2010 à 14:09, Brian Gray a écrit :

> Hi all,
> Our build integrates with a few projects at the company that our built using
> Maven.  One of the projects builds a separate test jar that some of our unit
> tests depend on (it contains base test classes that do Spring wiring and so
> forth).
> Our dependency looks like this (which works from Ant):
> <dependency org="" name="ProjectName" rev="latest.integration"
>      changing="true"
> conf="compile->sources(*),master(*);sources->sources(*);test->tests(*),runtime(*);runtime->runtime(*),master(*)"
>      <artifact name="ProjectName" m:classifier="tests" type="jar"
> conf="test" />
>      <artifact name="ProjectName" m:classifier="sources" type="jar"
> conf="sources" />
> </dependency>
> Note, I have changed the org and name in this example.
> Unfortunately, this breaks IvyDE.  I get the following error:

Did you tried to attach some picture here ? they don't get on mailing lists
Could you describe the error ?

> I think the solution comes from the IvyDE settings in Eclipse.  There is a
> Sources types and Sources suffixes setting, a Javadoc types and a Javadoc
> suffixes setting.  Do I need a Tests types and Tests suffixes?  Or a Custom?
> Is there another way to get this to work?  If I don't include them the
> ProjectName-tests.jar does not get pulled in.

The jar you are trying to get, you want to put it in the classpath of your project. The "accepted
types" field control them.

Could you show what do you do in Ant ?


View raw message