Skip to content

Commit e88268d

Browse files
committed
removed jaxb bindings
1 parent f6b6f47 commit e88268d

3 files changed

Lines changed: 10 additions & 31 deletions

File tree

pom.xml

Lines changed: 10 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<java.version>1.8</java.version>
3030
<jackson.minimum.version>2.9.7</jackson.minimum.version>
3131
<jackson.version>2.10.0</jackson.version>
32-
<jersey.version>2.27</jersey.version>
32+
<jersey.version>2.33</jersey.version>
3333
<junit.jupiter.version>5.0.0-M4</junit.jupiter.version>
3434
<junit.platform.version>1.0.0-M4</junit.platform.version>
3535
</properties>
@@ -63,7 +63,14 @@
6363
<version>${jersey.version}</version>
6464
</dependency>
6565

66-
<!-- Serialization -->
66+
<!-- Jersey client requires this dependency -->
67+
<dependency>
68+
<groupId>javax.activation</groupId>
69+
<artifactId>activation</artifactId>
70+
<version>1.1.1</version>
71+
</dependency>
72+
73+
<!-- Serialization to JSON -->
6774
<dependency>
6875
<groupId>com.fasterxml.jackson.core</groupId>
6976
<artifactId>jackson-core</artifactId>
@@ -125,30 +132,6 @@
125132
<artifactId>log4j</artifactId>
126133
<version>1.2.17</version>
127134
</dependency>
128-
129-
<!-- javax.xml.bind is removed from java 11 , Jackson will throw error without dependencies for it-->
130-
<!-- https://stackoverflow.com/questions/52502189/java-11-package-javax-xml-bind-does-not-exist -->
131-
<dependency>
132-
<groupId>javax.xml.bind</groupId>
133-
<artifactId>jaxb-api</artifactId>
134-
<version>2.3.0</version>
135-
</dependency>
136-
<dependency>
137-
<groupId>com.sun.xml.bind</groupId>
138-
<artifactId>jaxb-core</artifactId>
139-
<version>2.3.0</version>
140-
</dependency>
141-
<dependency>
142-
<groupId>com.sun.xml.bind</groupId>
143-
<artifactId>jaxb-impl</artifactId>
144-
<version>2.3.0</version>
145-
</dependency>
146-
<dependency>
147-
<groupId>javax.activation</groupId>
148-
<artifactId>activation</artifactId>
149-
<version>1.1.1</version>
150-
</dependency>
151-
152135
</dependencies>
153136

154137
<!-- all of the below is needed for releasing -->
@@ -160,6 +143,7 @@
160143
<plugin>
161144
<groupId>org.apache.maven.plugins</groupId>
162145
<artifactId>maven-compiler-plugin</artifactId>
146+
<version>3.1</version>
163147
<configuration>
164148
<source>1.8</source>
165149
<target>1.8</target>

src/main/java/com/wildbit/java/postmark/client/HttpClientHandler.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package com.wildbit.java.postmark.client;
22

33
import com.wildbit.java.postmark.client.data.DataHandler;
4-
import com.wildbit.java.postmark.client.data.model.PostmarkError;
54
import com.wildbit.java.postmark.client.exception.*;
65
import org.apache.log4j.spi.RootLogger;
76

src/test/java/base/BaseTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ private enum DEFAULT_KEY_NAMES {
3636
public String defaultAccountToken;
3737

3838
public BaseTest() {
39-
4039
// Read configuration from property file
4140
if (Files.exists(configFilePath)) {
4241
initConfingFromFile();
@@ -49,7 +48,6 @@ public BaseTest() {
4948
defaultApiToken = env.get(DEFAULT_KEY_NAMES.API_TOKEN.value);
5049
defaultAccountToken = env.get(DEFAULT_KEY_NAMES.ACCOUNT_TOKEN.value);
5150
}
52-
5351
}
5452

5553
public Properties config() {
@@ -69,7 +67,6 @@ public String getDefaultFilePath() {
6967
}
7068

7169
private void initConfingFromFile() {
72-
7370
InputStream in = Postmark.class.getClassLoader().getResourceAsStream(propertyFile);
7471
properties = new Properties();
7572

@@ -78,6 +75,5 @@ private void initConfingFromFile() {
7875
} catch (IOException e) {
7976
e.printStackTrace();
8077
}
81-
8278
}
8379
}

0 commit comments

Comments
 (0)