Archive for April, 2013

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

Posted in Open Source, Software Development on April 24, 2013 by jstevenperry

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