Missing artifact com.sun.jdmk:jmxtools:jar:1.2.1 – WTF?

Do you use Eclipse and get this error? Do you use Maven? Have you recently added log4j 2.1.15 as a <dependency>?

If you answered “yes” to all three of the above, then this short post is for you.

To make this work, use a different version of log4j. Yep, it’s that simple. For example, use this POM snippet:

    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.16</version>
    </dependency>

This will use version 1.2.16 instead of 1.2.15 and you should see this weird error go away.

If you care about what is causing this, read on. If not, good luck and have fun.

Apparently, the 1.2.15 release of log4j has some dependencies that are not available in the central maven repository because of licensing issues. This post (http://unitstep.net/blog/2009/05/18/resolving-log4j-1215-dependency-problems-in-maven-using-exclusions/) has more information in it.

Keep coding.

–jsp

About these ads

One Response to “Missing artifact com.sun.jdmk:jmxtools:jar:1.2.1 – WTF?”

  1. Thank Steven. This helps alot

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 64 other followers

%d bloggers like this: