Skip to content

Commit 94ca254

Browse files
jarpit96iluwatar
authored andcommitted
Fix for issue iluwatar#954 : Add external Dependencies to run with Java11 (iluwatar#957)
* Fix for issue iluwatar#954 Add javax.annotation and java.xml.bind as external maven dependencies Verified with jdk-11 * Move dependency versions to main pom.xml's dependencyManagement section
1 parent 60171e3 commit 94ca254

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@
5555
<aws-lambda-java-events.version>2.0.1</aws-lambda-java-events.version>
5656
<jackson.version>2.8.5</jackson.version>
5757
<pmd.version>3.12.0</pmd.version>
58+
<jaxb-api.version>2.3.0</jaxb-api.version>
59+
<annotation-api.version>1.3.1</annotation-api.version>
5860
</properties>
5961
<modules>
6062
<module>abstract-factory</module>
@@ -298,6 +300,16 @@
298300
<artifactId>mongo-java-driver</artifactId>
299301
<version>${mongo-java-driver.version}</version>
300302
</dependency>
303+
<dependency>
304+
<groupId>javax.xml.bind</groupId>
305+
<artifactId>jaxb-api</artifactId>
306+
<version>${jaxb-api.version}</version>
307+
</dependency>
308+
<dependency>
309+
<groupId>javax.annotation</groupId>
310+
<artifactId>javax.annotation-api</artifactId>
311+
<version>${annotation-api.version}</version>
312+
</dependency>
301313
</dependencies>
302314
</dependencyManagement>
303315

repository/pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,13 @@
6363
<groupId>com.google.guava</groupId>
6464
<artifactId>guava</artifactId>
6565
</dependency>
66+
<dependency>
67+
<groupId>javax.xml.bind</groupId>
68+
<artifactId>jaxb-api</artifactId>
69+
</dependency>
70+
<dependency>
71+
<groupId>javax.annotation</groupId>
72+
<artifactId>javax.annotation-api</artifactId>
73+
</dependency>
6674
</dependencies>
6775
</project>

0 commit comments

Comments
 (0)