Remove duplicate library from classpath
Change-Id: I197f24c06d067f356ff3f5658c2692ae5b07334b
Reviewed-on: https://git.eclipse.org/r/96711
Tested-by: Hudson CI
Reviewed-by: Matthias Villiger <mvi@bsi-software.com>
diff --git a/org.eclipse.scout.sdk.core.s.test/pom.xml b/org.eclipse.scout.sdk.core.s.test/pom.xml
index b47cf17..9aa9138 100644
--- a/org.eclipse.scout.sdk.core.s.test/pom.xml
+++ b/org.eclipse.scout.sdk.core.s.test/pom.xml
@@ -33,6 +33,14 @@
<dependency>
<groupId>org.eclipse.scout.sdk</groupId>
<artifactId>org.eclipse.scout.sdk.core.s</artifactId>
+ <exclusions>
+ <exclusion>
+ <!-- because a newer version is included in scout.rt.server.jaxws (javax.annotation:javax.annotation-api:1.2) -->
+ <!-- otherwise there are duplicate classes on the classpath -->
+ <groupId>javax.annotation</groupId>
+ <artifactId>jsr250-api</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.eclipse.scout.sdk</groupId>
diff --git a/org.eclipse.scout.sdk.s2e.test/pom.xml b/org.eclipse.scout.sdk.s2e.test/pom.xml
index 9e9b0c2..b2021dd 100644
--- a/org.eclipse.scout.sdk.s2e.test/pom.xml
+++ b/org.eclipse.scout.sdk.s2e.test/pom.xml
@@ -31,6 +31,14 @@
<dependency>
<groupId>org.eclipse.scout.sdk.s2e</groupId>
<artifactId>org.eclipse.scout.sdk.s2e</artifactId>
+ <exclusions>
+ <exclusion>
+ <!-- because a newer version is included in scout.rt.server.jaxws (javax.annotation:javax.annotation-api:1.2) -->
+ <!-- otherwise there are duplicate classes on the classpath -->
+ <groupId>javax.annotation</groupId>
+ <artifactId>jsr250-api</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>org.mockito</groupId>