jeromq-jms icon indicating copy to clipboard operation
jeromq-jms copied to clipboard

tools.jar and jconsole.jar in pom.xml

Open oli-ver opened this issue 5 years ago • 1 comments

I was just trying to use jeromq-jms in my spring boot project by using the following maven dependency of the newest (I suppose not yet official) release:

<dependency>
	<groupId>org.zeromq</groupId>
	<artifactId>jeromq-jms</artifactId>
	<version>3.0.1-RELEASE</version>
</dependency>

After that I have problems with these two dependencies:

<dependency>
	<groupId>com.sun.tools</groupId>
	<artifactId>jconsole</artifactId>
	<version>${version.java}</version>
	<scope>system</scope>
	<systemPath>${path.jconsolejar}</systemPath>
</dependency>
<dependency>
	<groupId>com.sun.tools</groupId>
	<artifactId>tools</artifactId>
	<version>${version.java}</version>
	<scope>system</scope>
			<systemPath>${path.toolsjar}</systemPath>
</dependency>

When using the lastest official release it works:

<dependency>
	<groupId>org.zeromq</groupId>
	<artifactId>jeromq-jms</artifactId>
	<version>2.0.2-RELEASE</version>
</dependency>

Why are these dependencies necessary? Shouldn't tools.jar and jconsole.jar be part of the installed jdk? In my installation (Mac OS 10.15.3, Amazon Coretto JDK) they are located here:

/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/lib

oli-ver avatar Feb 09 '20 17:02 oli-ver

Oops, sorry, missed this.

Were only required to build a VIEW for Jconsole. It always been a pain since the libraries location differed with JVM version and OS.

The actual JMS functionality does not need it. Just gave a pretty view in JConsole for 0MQ states. I doubt anyone uses JConsole these days, so should be dropped.

Jeremy

mjeremym avatar Apr 16 '20 13:04 mjeremym