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 Java.net managed by the Sun guys, for now only the com.sun.* and javax.* groups and only the official releases.
Carlos,
I tried a maven2 build using the projects uploaded to ibibio but stumbled over this dependency:
2) com.sun.xml.bind:jaxb-impl:jar:2.0
3) javax.xml:jaxb-api:jar:2.0
4) javax.xml:jsr173:jar:1.0
http://www.ibiblio.org/maven2/javax/xml/bind/ shows a jsr173_api directory but not a jsr173 hence the build fails.
At a 2nd look, cancel the last scentence of the previous post:
http://www.ibiblio.org/maven2/javax/xml/jsr173/1.0/ does exist but without jar file.
jsr173 reference spec is not created by Sun, but by BEA, and for now has a license that doesn’t allow redistribution
I’ve tried declaring the JARs as dependencies using the following:
javax
j2ee
1.4
provided
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?
Sun didn’t make the j2ee jar available, but i recommend always using the smaller jars with only the pieces you need. eg. servlet api, ejb,…
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).
Hi Carlos,
I sent a post regarding the jars being available in ibiblio to the facelets users mailing list, and people are posting comments which state that they would be really happy if there were soruce jars made available as well. Thought you’d like to know ๐
Is this possible?
http://www.nabble.com/maven2-users%2C-facelets-jars-now-in-ibiblio-tf2062360.html
Cheers,
Mike
Nice work ๐
When will you sync up JBoss’s repository?
http://repository.jboss.com/maven2/
Drools 3 is in there with very good pom’s ๐
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
com.sun.facelets/jars/jsf-facelets-1.1.10.jar
com.sun.facelets/jars/jsf-facelets-1.1.10-javadoc.jar
com.sun.facelets/java-sources/jsf-facelets-1.1.10-sources.jar
To Geoffrey:
The repos that would like to be synced need to follow the instructions at the end of http://maven.apache.org/guides/mini/guide-ibiblio-upload.html “Sync’ing your own repository with ibiblio”
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.