Skip to content

Commit 11832ad

Browse files
committed
ISSUE: PURPOSE: Address build problems where javax.xml.bind isn't available in the java-se classpath. DESCRIPTION: Incrementing version to 1.1.3-SNAPSHOT, changing target build level to java 8, adding dependencies for java xml binding (removed from java-se in java 11, just in java-ee) to the pom.
1 parent c24712f commit 11832ad

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

pom.xml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>MCZDataShot</groupId>
66
<artifactId>PreCaptureApp</artifactId>
7-
<version>1.1.2</version>
7+
<version>1.1.3-SNAPSHOT</version>
88
<name>datashot</name>
99
<description>MCZ DataShot Collection Precapture Label Application</description>
1010
<packaging>jar</packaging>
@@ -114,6 +114,25 @@
114114
<scope>system</scope>
115115
<systemPath>${basedir}/jar-in-jar-loader.zip</systemPath>
116116
</dependency>
117+
<!-- allow build with java 10+ where java.xml.bind is not available in java-se -->
118+
<!-- Java 7 = JAXB version 2.2.3 -->
119+
<!-- Java 8 = JAXB version 2.2.8 -->
120+
<!-- Java 9 = JAXB version 2.3.0 -->
121+
<dependency>
122+
<groupId>javax.xml.bind</groupId>
123+
<artifactId>jaxb-api</artifactId>
124+
<version>2.2.8</version>
125+
</dependency>
126+
<dependency>
127+
<groupId>com.sun.xml.bind</groupId>
128+
<artifactId>jaxb-core</artifactId>
129+
<version>2.2.10</version>
130+
</dependency>
131+
<dependency>
132+
<groupId>com.sun.xml.bind</groupId>
133+
<artifactId>jaxb-impl</artifactId>
134+
<version>2.2.10</version>
135+
</dependency>
117136
</dependencies>
118137
<build>
119138
<sourceDirectory>${project.basedir}/src</sourceDirectory>
@@ -167,8 +186,8 @@
167186
<artifactId>maven-compiler-plugin</artifactId>
168187
<version>2.0.2</version>
169188
<configuration>
170-
<source>1.7</source>
171-
<target>1.7</target>
189+
<source>1.8</source>
190+
<target>1.8</target>
172191
</configuration>
173192
</plugin>
174193
<plugin>

0 commit comments

Comments
 (0)