Hey guys,
I'm trying to use the maven 2 plugin that you wrote and ran into a small
problem. The error message that I got:
The plugin 'com.sun.tools.xjc.maven2:maven-jaxb-plugin' does not exist or no
valid version could be found
Seems to indicate that the plugin isn't available in any repository. My pom
is fairly simple and is included below. What am I missing?
Thanks,
Bill
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<artifactId>core-xml</artifactId>
<name>PING CORE XML</name>
<groupId>ping</groupId>
<version>3.0-SNAPSHOT</version>
<repositories>
<repository>
<id>java.net</id>
<name>java.net Maven Repository</name>
<url>
https://maven-repository.dev.java.net/nonav/repository</url>
<layout>legacy</layout>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>jaxb</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>jaxb</groupId>
<artifactId>jaxb-impl</artifactId>
<version>2.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.sun.tools.xjc.maven2</groupId>
<artifactId>maven-jaxb-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<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>