You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Steven Crosley <st...@mac.com> on 2008/03/13 20:49:57 UTC

Is there a way to exclude a class in a dependency?

I have two dependencies that contain a class with the same package and  
name.  Maven won't compile it, because it uses the class that I don't  
want it to use instead of the class I do want it to use.

Is there a way to exclude a class in a dependency or set an order of  
precedence on dependencies so that I can compile it using the class I  
want to use?

Thanks,
Steven


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


Re: Is there a way to exclude a class in a dependency?

Posted by Wayne Fay <wa...@gmail.com>.
Not that I'm aware of. The easiest solution is to simply unjar and
delete the files from the "bad" jar, then rejar it and mvn install or
deploy it.

Then go complain to the source of this jar about its contents.

Wayne

On 3/13/08, Steven Crosley <st...@mac.com> wrote:
> I have two dependencies that contain a class with the same package and
> name.  Maven won't compile it, because it uses the class that I don't
> want it to use instead of the class I do want it to use.
>
> Is there a way to exclude a class in a dependency or set an order of
> precedence on dependencies so that I can compile it using the class I
> want to use?
>
> Thanks,
> Steven
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

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