You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Radim Kolar <hs...@filez.com> on 2012/04/30 10:18:28 UTC

enabling optional dependency

Spring framework has optional dependency on CGLIB:

<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>2.2</version>
<optional>true</optional>
</dependency>

Is there some knob to switch this optinal dependency on or i have to 
copy this dependency to my pom?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: enabling optional dependency

Posted by Radim Kolar <hs...@filez.com>.
> Is there some knob to switch this optinal dependency on or i have to 
> copy this dependency to my pom?
No knob:
"If a user wants to use functionality related to an optional dependency, 
they will have to redeclare that optional dependency in their own project."

Re: enabling optional dependency

Posted by Ansgar Konermann <an...@googlemail.com>.
Am 30.04.2012 10:18, schrieb Radim Kolar:
> Spring framework has optional dependency on CGLIB:
>
> <dependency>
> <groupId>cglib</groupId>
> <artifactId>cglib-nodep</artifactId>
> <version>2.2</version>
> <optional>true</optional>
> </dependency>
>
> Is there some knob to switch this optinal dependency on or i have to
> copy this dependency to my pom?

In case you want to use the Spring features depending on CGLIB: you have
to copy it and drop the <optional>true</optional>.

Best regards

Ansgar

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org