JAXB2 and Maven 1.x - please help?

Hi folks,

I am in the process of researching on JAXB 2 since we have been using JAXB 1 for sometime now. We also use Maven 1 as our build environment too.

What I did notice is that an upgrade to JAXB 2 means that the Maven 1 plugin for JAXB does not work anymore. We cannot afford to upgrade to Maven 2 at this time since it will take a lot of time and resources to do so. We will however consider upgrading to Maven 2 at a later stage.

But in the meantime, we still want to use Maven 1 with JAXB 2.

Does anybody know of a Maven 1 plugin for JAXB 2? Or who has an idea on how to convert the exsiting Maven 1 JAXB plugin to work with JAXB 2? I am attempting it, but not succeeding. :(

Please help?

Thanks

[746 byte] By [Glen_Verrana] at [2007-10-3 2:59:51]
# 1
Maven 2 plugin for JAXB 2 is available.https://jaxb.dev.java.net/jaxb-maven2-plugin/
dvohra09a at 2007-7-14 20:49:28 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Maven 1 plugin is not designed for JAXB 2.0
dvohra09a at 2007-7-14 20:49:28 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3
Solved the problem.I upgraded to Maven 1.0.2I modified the plugin to depend on the JAR files that JAXB 2.0 is using.
Glen_Verrana at 2007-7-14 20:49:28 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
> Solved the problem.> > I upgraded to Maven 1.0.2> I modified the plugin to depend on the JAR files that> JAXB 2.0 is using.Glen, I am doing the same thing...would you mind posting your changes?
CoreyZadika at 2007-7-14 20:49:28 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5

I only modified the project.xml file by adding the JAXB 2.0 dependencies. I had to keep in the JAXB 1.x depdendencies in as well since I need to use this plug-in to compile code of a previous version.

Hope that helps.

<?xml version="1.0" encoding="ISO-8859-1"?>

<project>

<extend>${basedir}/../plugin-project.xml</extend>

<id>maven-jaxb-plugin</id>

<name>Maven JAXB Plugin</name>

<currentVersion>1.1.0</currentVersion>

<inceptionYear>2002</inceptionYear>

<description>

</description>

<shortDescription>JAXB Tools</shortDescription>

<siteDirectory>/home/groups/m/ma/maven-plugins/htdocs/jaxb/</siteDirectory>

<repository>

<connection>scm:cvs:pserver:anonymous@cvs.sourceforge.net:/cvsroot/maven-plugins:maven-plugins/jaxb</connection>

<url>http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/maven-plugins/maven-plugins/jaxb/</url>

</repository>

<developers>

<developer>

<name>Brett Porter</name>

<id>brettporter</id>

<email>brett@apache.org</email>

<organization>f2 network</organization>

<roles>

<role>Java Developer</role>

<role>Documentation</role>

</roles>

</developer>

<developer>

<name>Geoffrey De Smet</name>

<id>ge0ffrey</id>

<email>ge0ffrey_AT_users_DOT_sourceforge_DOT_net</email>

<organization>JCS Int.</organization>

<organizationUrl>http://www.jcs.be</organizationUrl>

<roles>

<role>Java Developer</role>

</roles>

<url>http://users.pandora.be/geoffrey</url>

<timezone>+1</timezone>

</developer>

</developers>

<contributors>

<contributor>

<name>Nico De Groote</name>

<email>ndg_DOT_jcs_DOT_be</email>

<organization>JCS Int.</organization>

<organizationUrl>http://www.jcs.be</organizationUrl>

<roles>

<role>Java Developer</role>

</roles>

<timezone>+1</timezone>

</contributor>

</contributors>

<dependencies>

<!-- If any of the non-free dependencies are updated remember to update ../maven.xml -->

<!-- All of these artifacts are referenced to the JWSDP version -->

<!-- because some of these artifacts don't have their own version number -->

<!-- for example Sun's xercesImpl hack -->

<!-- Some artifacts could be referred to their own version and groupid, -->

<!-- for example for jaxb, but this would make installing the jars harder. -->

<!-- Currently jaxb isn't distributed on its own anyway.-->

<dependency>

<groupId>jaxb</groupId>

<artifactId>jaxb-api</artifactId>

<version>1.5</version>

<url>http://java.sun.com/webservices/jwsdp</url>

<properties>

<classloader>root</classloader>

</properties>

</dependency>

<dependency>

<groupId>jaxb</groupId>

<artifactId>jaxb-impl</artifactId>

<version>1.5</version>

<url>http://java.sun.com/webservices/jwsdp</url>

<properties>

<classloader>root</classloader>

</properties>

</dependency>

<dependency>

<groupId>jaxb</groupId>

<artifactId>jaxb-xjc</artifactId>

<version>1.5</version>

<url>http://java.sun.com/webservices/jwsdp</url>

<properties>

<classloader>root</classloader>

</properties>

</dependency>

<dependency>

<groupId>jaxb</groupId>

<artifactId>jaxb-libs</artifactId>

<version>1.5</version>

<url>http://java.sun.com/webservices/jwsdp</url>

<properties>

<classloader>root</classloader>

</properties>

</dependency>

<dependency>

<groupId>jwsdp-shared</groupId>

<artifactId>jax-qname</artifactId>

<version>1.5</version>

<url>http://java.sun.com/webservices/jwsdp</url>

<properties>

<classloader>root</classloader>

</properties>

</dependency>

<dependency>

<groupId>jwsdp-shared</groupId>

<artifactId>namespace</artifactId>

<version>1.5</version>

<url>http://java.sun.com/webservices/jwsdp</url>

<properties>

<classloader>root</classloader>

</properties>

</dependency>

<dependency>

<groupId>jwsdp-shared</groupId>

<artifactId>relaxngDatatype</artifactId>

<version>1.5</version>

<url>http://java.sun.com/webservices/jwsdp</url>

<properties>

<classloader>root</classloader>

</properties>

</dependency>

<dependency>

<groupId>jwsdp-shared</groupId>

<artifactId>xsdlib</artifactId>

<version>1.5</version>

<url>http://java.sun.com/webservices/jwsdp</url>

<properties>

<classloader>root</classloader>

</properties>

</dependency>

<dependency>

<groupId>jaxb</groupId>

<artifactId>jaxb-api</artifactId>

<version>2.0</version>

<properties>

<classloader>root</classloader>

</properties>

</dependency>

<dependency>

<groupId>jaxb</groupId>

<artifactId>jaxb-impl</artifactId>

<version>2.0</version>

<properties>

<classloader>root</classloader>

</properties>

</dependency>

<dependency>

<groupId>jaxb</groupId>

<artifactId>jaxb-xjc</artifactId>

<version>2.0</version>

<properties>

<classloader>root</classloader>

</properties>

</dependency>

<dependency>

<groupId>jaxb</groupId>

<artifactId>activation</artifactId>

<version>2.0</version>

<properties>

<classloader>root</classloader>

</properties>

</dependency>

<dependency>

<groupId>jaxb</groupId>

<artifactId>jsr173_1.0_api</artifactId>

<version>2.0</version>

<properties>

<classloader>root</classloader>

</properties>

</dependency>

</dependencies>

</project>

Glen_Verrana at 2007-7-14 20:49:28 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...