Sun jars available on Maven repo

If you use Maven you probably already know that Sun jars were always a problem because their license didn’t allow redistribution. Now with the effort from the Glassfish project Sun is releasing a lot of components under the open source CDDL license. It allows the redistribution so we have started syncing the Maven repository at managed by the Sun guys, for now only the com.sun.* and javax.* groups and only the official releases.

11 thoughts on “Sun jars available on Maven repo

  1. I’ve tried declaring the JARs as dependencies using the following:


    but the build still says that it cannot resolve the artifact. I took a look at the iBiblio repository and while I do see the new POMs, the JARs are not there.

    Am I missing something?

  2. Thanks for the reply. For now I have made a local change to the jaxb-api’s pom.xml to point to jsr173_api which seems to work ok during runtime for parsing a simple xml file using xjc generated classes.

    For the previous comment, I’m using geronimo-j2ee_1.4_spec from org.apache.geronimo.specs and specifying a provided scope which seems to work ok (but I am a Maven newbie so take it with a grain of salt).

  3. To Mike:

    You just need to put a jar with the sources with the same name ending in -sources in the folder java-sources. For the javadocs put them in the jars folder ending in -javadoc.

    For instance

  4. Sun really doesn’t seem to give a crap about Maven 2 users that have open-source projects. Why make it so painful? Excessive litigation is one of the roots of all evil.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your 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 )

Connecting to %s