a...@#~$, sorry. I meant "by using profiles". This way you could add any
dependency with any scope you like under different circumstances.

2009/6/4 Baptiste MATHUS <[email protected]>

> Well, I guess you could do that by using, couldn't you?
>
> Cheers
>
> 2009/6/4 ljnelson <[email protected]>
>
>
>>
>> Baptiste MATHUS wrote:
>> >
>> > I guess you can file an enhancement request for this use, but I'm not
>> sure
>> > it would really make sense. Since you're likely to want to test this
>> kind
>> > of
>> > dependency too in your tests. At least, IMO you'll have to provide a
>> good
>> > use case to justify this new feature.
>> >
>>
>> Hello; I'd like to add to this issue by supplying a compile-time-only
>> scope
>> use case.
>>
>> When building JPA applications, often one wants to compile in support for
>> all the various annotations from the persistence providers (Hibernate,
>> EclipseLink and OpenJPA).  I would like to make it so that all three of
>> these libraries are available only at compile time, but only [i]one[/i] of
>> them is available at test time.
>>
>> Currently I have them all specified as scope=provided, and while that
>> works,
>> I would really like to test my classes in the presence of only one of
>> these
>> libraries, not all three.  To put it another way, I want to ensure that
>> although I reference EclipseLink annotations in my project, I don't need
>> EclipseLink on the runtime/test path.  I have no way of doing this that I
>> know of inside my Maven project.
>>
>> Thoughts?
>>
>> Thanks,
>> Laird
>> --
>> View this message in context:
>> http://www.nabble.com/Exclude-dependency-from-scope-runtime-test-classpath-tp23424431p23875222.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
> --
> Baptiste <Batmat> MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor !
>



-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Reply via email to