Skip to content

Commit

Permalink
fix(ZNTA-2633): include JAXB jars (#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Aug 23, 2018
1 parent 919fb6a commit e704fba
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions client/zanata-cli/pom.xml
Expand Up @@ -56,6 +56,34 @@
</build>

<dependencies>
<!-- Java 8 comes with JAXB Version 2.2.8.
To work with Java 8,9,11+ we include JAXB ourselves.
See https://stackoverflow.com/a/43574427/14379 -->
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</dependency>

<dependency>
<groupId>org.glassfish.jaxb</groupId>
<artifactId>jaxb-runtime</artifactId>
<version>2.2.11</version>
</dependency>

<!-- Replace the above JAXB dependencies when 2.4.0 is released: -->

<!-- https://stackoverflow.com/a/50251510/14379 -->
<!--<dependency>-->
<!--<groupId>javax.xml.bind</groupId>-->
<!--<artifactId>jaxb-api</artifactId>-->
<!--<version>2.4.0</version>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>org.glassfish.jaxb</groupId>-->
<!--<artifactId>jaxb-runtime</artifactId>-->
<!--<version>2.4.0</version>-->
<!--</dependency>-->

<dependency>
<groupId>args4j</groupId>
<artifactId>args4j</artifactId>
Expand Down Expand Up @@ -166,6 +194,8 @@
</executions>
<configuration>
<licenseHeaderFile>${basedir}/COPYING-header.txt</licenseHeaderFile>
<!-- Remove this when jaxb 2.4.0 is out. See https://stackoverflow.com/a/50251510/14379 -->
<extraJvmArguments>-Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize</extraJvmArguments>
<programs>
<program>
<mainClass>org.zanata.client.ZanataClient</mainClass>
Expand Down

0 comments on commit e704fba

Please sign in to comment.