-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathpom.xml
44 lines (40 loc) · 2.28 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="UTF-8"?>
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.jaxb-xew-plugin.sample</groupId>
<artifactId>sample-parent</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<properties>
<jaxb-xew-plugin.version>1.10</jaxb-xew-plugin.version>
<!-- Versions [0.9.2-0.12.0] of jaxb2-plugin + jaxb-xew-plugin <= v1.9 result the following problem:
Exception in thread "main" java.util.ServiceConfigurationError: com.sun.tools.xjc.Plugin: Provider org.jvnet.jaxb2_commons.plugin.fixjaxb1058.FixJAXB1058Plugin could not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:224)
at java.util.ServiceLoader.access$100(ServiceLoader.java:181)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:377)
at java.util.ServiceLoader$1.next(ServiceLoader.java:445)
at com.sun.tools.xjc.Options.findServices(Options.java:957)
at com.sun.tools.xjc.Options.getAllPlugins(Options.java:374)
at com.sun.tools.xjc.Options.parseArgument(Options.java:688)
at com.sun.tools.xjc.Driver$OptionsEx.parseArgument(Driver.java:511)
at com.sun.tools.xjc.Options.parseArguments(Options.java:809)
at com.sun.tools.xjc.Driver.run(Driver.java:240)
Caused by: java.lang.NoClassDefFoundError: org/jvnet/jaxb2_commons/reflection/util/Accessor
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493)
... 29 more
-->
<jaxb2-basics.version>0.12.0</jaxb2-basics.version>
<!-- See https://github.com/dmak/jaxb-xew-plugin/issues/50#issuecomment-248238663 about how to solve the issue with maven-jaxb2-plugin >= v0.12.1 + jaxb-xew-plugin <= v1.7 -->
<maven-jaxb2-plugin.version>0.14.0</maven-jaxb2-plugin.version>
</properties>
<modules>
<module>cxf-codegen-plugin</module>
<module>jaxb2-maven-plugin</module>
<module>jaxb2-maven-plugin-immutable</module>
<module>jaxws-maven-plugin-exclude</module>
<module>jaxws-maven-plugin-visitor</module>
<module>maven-jaxb2-plugin</module>
<module>maven-jaxb2-plugin-basics</module>
</modules>
</project>