Did you see the usage page: https://maven-jaxb2-plugin.dev.java.net/docs/guide.html
--- 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:55 PM, Mick Knutson <[email protected]> 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 <[email protected]> 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> >> >> >
