You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by alt_alt <al...@163.com> on 2015/02/10 22:38:47 UTC

How to exclude javax from activemq-all.jar

Hi all
I am new to activemq, and I encounter an issue when using activemq. It is
because we have our own version of javax.jms and there is another one in
activemq-all.jar, which leads to conflict.

Could any one tell me how to exclude the javax from activemq-all? I am using
maven.



--
View this message in context: http://activemq.2283324.n4.nabble.com/How-to-exclude-javax-from-activemq-all-jar-tp4691298.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: How to exclude javax from activemq-all.jar

Posted by Hadrian Zbarcea <hz...@gmail.com>.
I assume you're using activemq embedded in another project and you use 
maven. Try taking a look at maven's dependency mechanism and exclusions [1].

I hope this helps,
Hadrian


[1] 
http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html



On 02/10/2015 04:38 PM, alt_alt wrote:
> Hi all
> I am new to activemq, and I encounter an issue when using activemq. It is
> because we have our own version of javax.jms and there is another one in
> activemq-all.jar, which leads to conflict.
>
> Could any one tell me how to exclude the javax from activemq-all? I am using
> maven.
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/How-to-exclude-javax-from-activemq-all-jar-tp4691298.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: How to exclude javax from activemq-all.jar

Posted by Gary Tully <ga...@gmail.com>.
you can't. that jar is intended as a one stop shop that contains all
that you need but does not give you any choice.
You need to take a peek at the activemq-all pom and replicate what it
pulls in as dependencies in your pom so that you can pull in just the
activemq modules that you wish and whatever compatible third party
dependencies that you wish.

https://github.com/apache/activemq/blob/master/activemq-all/pom.xml#L25

On 10 February 2015 at 21:38, alt_alt <al...@163.com> wrote:
> Hi all
> I am new to activemq, and I encounter an issue when using activemq. It is
> because we have our own version of javax.jms and there is another one in
> activemq-all.jar, which leads to conflict.
>
> Could any one tell me how to exclude the javax from activemq-all? I am using
> maven.
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/How-to-exclude-javax-from-activemq-all-jar-tp4691298.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.