In addition, specify the exact version of the plugin you want to use.
Also, the repositories in your pom seem not to include the plugin
identified by the artifactId.
I use the maven exec plugin to run xjc. Works like a charm. The
downside is that it makes your build dependent on xjc location, if it
is not on the PATH.
On Jun 11, 2009, at 9:12 PM, Don Hosek wrote:
I'm getting:
[INFO] The plugin 'com.sun.tools.xjc.maven2:maven-jaxb2-plugin'
does not exist or
And yes, I looked at the page (I've spent a bunch of time
fruitlessly going through the google results of "maven jaxb").
-dh
On 11 Jun 2009, at 10.55, Mick Knutson wrote:
What error do you get?
---
Thank You…
Mick Knutson, President
BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233
Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---
On Thu, Jun 11, 2009 at 1:46 PM, Don Hosek <d...@dream-in-
color.net> wrote:
OK, I've been totally flummoxed by this. Does anyone have a
working pom to
generate class files from a schema? This is what I'm using, but
not having
any luck getting it to work. I suspect that I have an issue with my
repository declaration or somesuch. Any help would be greatly
appreciated.
-dh
<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>TrueCar</groupId>
<artifactId>curvedata</artifactId>
<packaging>jar</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>curvedata</name>
<url>http://maven.apache.org</url>
<repositories>
<repository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Maven 2 Repository</name>
<url>http://download.java.net/maven/2</url>
</repository>
<repository>
<id>maven-repository.dev.java.net</id>
<name>Java.net Maven 1 Repository (legacy)</
name>
<url>http://download.java.net/maven/1</url>
<layout>legacy</layout>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>maven-repository.dev.java.net</id>
<name>Java.net Maven 2 Repository</name>
<url>http://download.java.net/maven/2</url>
</pluginRepository>
<!--
<pluginRepository> <id>
maven-repository.dev.java.net</id>
<name>Java.net Maven 1 Repository (legacy)</
name>
<url>http://download.java.net/maven/1</url>
<layout>legacy</layout>
</pluginRepository>
-->
</pluginRepositories>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>jaxb</groupId>
<artifactId>maven-jaxb2-plugin</
artifactId>
<configuration>
<schemaDirectory>src/main/resources/schema</schemaDirectory>
<schemaIncludes>
<include>*.xsd</
include>
</schemaIncludes>
<generatePackage>com.truecar.curvedata.jaxb</generatePackage>
<removeOldOutput>true</removeOldOutput>
</configuration>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<inherited>true</inherited>
<groupId>org.apache.maven.plugins</
groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]