Skip to main content

JAXB jars are available on Maven repository

Posted by kohsuke on January 3, 2006 at 9:17 PM PST

The JAXB project started posting its jars (both the RI and the API jars) to the java.net maven repository.

Although the JAXB project itself doesn't use Maven, I've been personally using Maven a lot for many of my smaller hobby projects. So I know how useful it can be, and I hate when I have to download jars like activation.jar or mail.jar from sun website so that I can build Maven-based projects that use those jars.

We've been hearing from some people that they wanted to see JAXB jars on a Maven repository, so that their Maven-based projects can use it. To make those users happy (and it's good for JAXB's adoption too), I tweaked the build script to post nightly jars on the Maven repository of java.net. To use those jars, you need to set the location of the repisotry to your project.properties. See the java.net maven repository page for how to do this.

To use 1.0.5 jars, you'll need the following dependency list. jaxb-xjc-1.0.5.jar is only necessary at the development time, not runtime.

<br /><dependency><br />  <groupId>jaxb</groupId><br />  <artifactId>jaxb-api</artifactId><br />  <version>1.0.5</version><br /></dependency><br /><dependency><br />  <groupId>jaxb</groupId><br />  <artifactId>jaxb-impl</artifactId><br />  <version>1.0.5</version><br /></dependency><br /><dependency><br />  <groupId>jaxb</groupId><br />  <artifactId>jaxb-libs</artifactId><br />  <version>1.0.5</version><br /></dependency><br />

To use 2.0 jars, you'll need the following dependency list. Again XJC jar is only necessary at the development time, and jaxb1-impl-2.0-SNAPSHOT.jar is only necessary when you are running JAXB 1.0 applications on JAXB 2.0 runtime (and I'm sure you aren't!)

<br /><dependency><br />  <groupId>jaxb</groupId><br />  <artifactId>jaxb-api</artifactId><br />  <version>2.0-SNAPSHOT</version><br /></dependency><br /><dependency><br />  <groupId>jaxb</groupId><br />  <artifactId>jaxb-impl</artifactId><br />  <version>2.0-SNAPSHOT</version><br /></dependency><br />
Related Topics >>