Skip to content

Commit 7fa6c6e

Browse files
committed
HV-1282 Update the JAXB maven plugin to 2.2
1 parent 6ab387d commit 7fa6c6e

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

engine/pom.xml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -166,20 +166,15 @@
166166
<configuration>
167167
<packageName>org.hibernate.validator.internal.xml</packageName>
168168
<extension>true</extension>
169-
<schemaFiles>validation-configuration-1.1.xsd,validation-mapping-1.1.xsd</schemaFiles>
169+
<!-- Generate correct getters for Boolean properties -->
170+
<enableIntrospection>true</enableIntrospection>
171+
<!-- Makes sure the generated code is compatible with JAXB 2.1 which is what comes with Java 1.6 -->
172+
<target>2.1</target>
173+
<sources>
174+
<source>src/main/xsd/validation-configuration-1.1.xsd</source>
175+
<source>src/main/xsd/validation-mapping-1.1.xsd</source>
176+
</sources>
170177
</configuration>
171-
<dependencies>
172-
<dependency>
173-
<groupId>javax.xml.bind</groupId>
174-
<artifactId>jaxb-api</artifactId>
175-
<version>2.2.5</version>
176-
</dependency>
177-
<dependency>
178-
<groupId>com.sun.xml.bind</groupId>
179-
<artifactId>jaxb-impl</artifactId>
180-
<version>2.1.13</version>
181-
</dependency>
182-
</dependencies>
183178
</plugin>
184179
<plugin>
185180
<groupId>org.apache.maven.plugins</groupId>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@
502502
<plugin>
503503
<groupId>org.codehaus.mojo</groupId>
504504
<artifactId>jaxb2-maven-plugin</artifactId>
505-
<version>1.3.1</version>
505+
<version>2.2</version>
506506
</plugin>
507507
<plugin>
508508
<groupId>org.jboss.maven.plugins</groupId>

0 commit comments

Comments
 (0)