Posted By

rozky on 05/11/11


Tagged

maven xsd JAXB xjc


Versions (?)

Maven - JAXB - XJC


 / Published in: Java
 

Additional information: - http://confluence.highsource.org/display/J2B/JAXB2+Basics+Plugins

Fluent API: http://grepcode.com/snapshot/repo1.maven.org/maven2/net.java.dev.jaxb2-commons/jaxb-fluent-api/2.1.8

  1. <properties>
  2. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  3. <jaxb.version>2.2</jaxb.version>
  4. </properties>
  5.  
  6. <dependencies>
  7. <dependency>
  8. <groupId>com.sun.xml.bind</groupId>
  9. <artifactId>jaxb-xjc</artifactId>
  10. <version>${jaxb.version}</version>
  11. </dependency>
  12. <dependency>
  13. <groupId>javax.xml.bind</groupId>
  14. <artifactId>jaxb-api</artifactId>
  15. <version>${jaxb.version}</version>
  16. </dependency>
  17. <dependency>
  18. <groupId>com.sun.xml.bind</groupId>
  19. <artifactId>jaxb-impl</artifactId>
  20. <version>${jaxb.version}</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>commons-lang</groupId>
  24. <artifactId>commons-lang</artifactId>
  25. <version>2.4</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.jvnet.jaxb2_commons</groupId>
  29. <artifactId>jaxb2-basics-runtime</artifactId>
  30. <version>0.6.1</version>
  31. </dependency>
  32. </dependencies>
  33.  
  34. <build>
  35. <finalName>${project.artifactId}</finalName>
  36.  
  37. <plugins>
  38. <plugin>
  39. <groupId>org.jvnet.jaxb2.maven2</groupId>
  40. <artifactId>maven-jaxb2-plugin</artifactId>
  41. <executions>
  42. <execution>
  43. <phase>generate-sources</phase>
  44. <goals>
  45. <goal>generate</goal>
  46. </goals>
  47. </execution>
  48. </executions>
  49. <configuration>
  50. <generatePackage>com.vw.dbs.vww.domain.garage.config</generatePackage>
  51. <schemaDirectory>${basedir}/src/main/resources</schemaDirectory>
  52. <schemaIncludes>
  53. <include>garage-config-v1.1.xsd</include>
  54. </schemaIncludes>
  55. <strict>false</strict>
  56. <extension>true</extension>
  57. <verbose>true</verbose>
  58. <args>
  59. <arg>-XtoString</arg>
  60. <arg>-Xequals</arg>
  61. <arg>-XhashCode</arg>
  62. <arg>-Xfluent-api</arg>
  63. </args>
  64. <plugins>
  65. <plugin>
  66. <groupId>org.jvnet.jaxb2_commons</groupId>
  67. <artifactId>jaxb2-basics</artifactId>
  68. <version>0.6.1</version>
  69. </plugin>
  70. <plugin>
  71. <groupId>org.jvnet.jaxb2_commons</groupId>
  72. <artifactId>jaxb2-fluent-api</artifactId>
  73. <version>3.0</version>
  74. </plugin>
  75. </plugins>
  76. </configuration>
  77. </plugin>
  78. </plugins>
  79. </build>

Report this snippet  

You need to login to post a comment.