If you have used log4j 1.2 on your project via Maven, you may have see missng artifact error for following Sun jars - com.sun.jmx:jmxri, com.sun.jdmk:jmxtools and javax.jms:jms.
Common solution to this problem is to exclude these dependencies, as suggested on Stackoverflow.
But, what if you actually need these jars available locally in maven repository ? For e.g. I needed Sun jars for compiling and debugging log4j source code. You can read more about it here.