Make JAX-B available to Jersey sample when building with JDK 10

See gh-12028
pull/12337/head
Andy Wilkinson 7 years ago
parent 1bd0313c3d
commit 065456a4af

@ -64,4 +64,30 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>java10</id>
<activation>
<jdk>[10,)</jdk>
</activation>
<dependencies>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</dependency>
</dependencies>
<!-- workaround for SUREFIRE-1424 -->
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>--add-modules java.base</argLine>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

Loading…
Cancel
Save