users@jaxb.java.net

Maven2 versus JAXB

From: Franz Fehringer <feh_at_isogmbh.de>
Date: Wed, 17 May 2006 14:35:28 +0200

Hello,

I followed the instructions on
https://jaxb.dev.java.net/jaxb-maven2-plugin/ without success.
On mvn -U compile i get
ERROR] BUILD ERROR
INFO]
------------------------------------------------------------------------
INFO] The plugin 'com.sun.tools.xjc.maven2:maven-jaxb-plugin' does not
exist or no valid version could be found
This is with Maven 2.0.4.
There is neither com.sun.tools.xjc.maven2 nor maven-jaxb-plugin on
https://maven-repository.dev.java.net/repository,
but there are javax.xml.bind and maven-javanet-plugin.
Could i use these in an appropriate way (how?)?
My pom.xml is

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>de.isogmbh.aoo</groupId>
  <artifactId>iso-app</artifactId>
  <packaging>jar</packaging>
  <version>1.0-SNAPSHOT</version>
  <name>Maven Quick Start Archetype</name>
  <url>http://maven.apache.org</url>
  <repositories>
    <repository>
      <id>java.net</id>
      <name>java.net Maven Repository</name>
      <url>https://maven-repository.dev.java.net/repository</url>
      <!-- layout>legacy</layout -->
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>jaxb</groupId>
      <artifactId>jaxb-api</artifactId>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>jaxb</groupId>
      <artifactId>jaxb-impl</artifactId>
      <version>2.0</version>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>com.sun.tools.xjc.maven2</groupId>
        <artifactId>maven-jaxb-plugin</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>