sebb wrote:
> On 19/03/2009, Stephen Connolly <[email protected]> wrote:
>>  > > scope provided will do what you need afaik
>>  > >
>>  >
>>  > Yes, but then AFAIK the user has to download and install the jar
>>  > separately, which is a pain.
>>  >
>>
>>
>> Nope....
>>     
>
> I think you meant "Yep..." as you seem to be agreeing with me.
>
>   
>>  provided just says that somebody will provide it for you and that maven does
>>  not need to worry about it.
>>     
>
> Yes, I know.
>
> Maven maybe does not have to worry about it, but the user does, which
> is what I want to avoid.
>
> AIUI "provided" is mainly intended for jars that are not available via
> the repository, e.g. they may be commercial jars that have to be paid
> for separately.
>   

A common examples are servlets: You compile them using the Servlet-API,
the runtime jars are provided by the Servlet-container (Tomcat, Jetty...).
So your dependency is on Servlet-API wth <scope>provided</scope>.

Regarding an older post from you: It is (afaik) not possible to load and
instantiate a class when its parent classes/interfaces are not
loaded/loadable (i.e. on the classpath).

Can you deploy your product to the user via Maven?

Regards,
Florian

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to