]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6517 do not package the xml libs provided by Java 1.7+
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Sun, 17 May 2015 13:29:54 +0000 (15:29 +0200)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Tue, 19 May 2015 13:11:42 +0000 (15:11 +0200)
xml-apis.jar and stax-api.jar do not need to be packaged into distribution nor to be defined as dependencies of sonar-plugin-api.

pom.xml
server/sonar-server/pom.xml

diff --git a/pom.xml b/pom.xml
index 2a59429c32d4abb728af6c3baa4da928614f78b8..20ac8d90088238bcc5e1dfda5450d074b080ed31 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <groupId>org.hibernate</groupId>
         <artifactId>hibernate-annotations</artifactId>
         <version>3.4.0.GA</version>
+        <exclusions>
+          <exclusion>
+            <!-- provided by Java 1.7 -->
+            <groupId>xml-apis</groupId>
+            <artifactId>xml-apis</artifactId>
+          </exclusion>
+        </exclusions>
       </dependency>
       <dependency>
         <groupId>org.hibernate</groupId>
         <groupId>org.codehaus.woodstox</groupId>
         <artifactId>woodstox-core-lgpl</artifactId>
         <version>4.4.0</version>
+        <exclusions>
+          <exclusion>
+            <!-- provided by Java 1.7 -->
+            <groupId>javax.xml.stream</groupId>
+            <artifactId>stax-api</artifactId>
+          </exclusion>
+        </exclusions>
       </dependency>
       <dependency>
         <groupId>org.codehaus.staxmate</groupId>
index 060f744bfa17e97b89b950e1fddd04ea321fc54a..41ea17e5ab8951e7a9e3e19f6d79a1fbb2c24d4a 100644 (file)
       <groupId>dom4j</groupId>
       <artifactId>dom4j</artifactId>
       <version>1.6.1</version>
+      <exclusions>
+        <exclusion>
+          <!-- provided by Java 1.7 -->
+          <groupId>xml-apis</groupId>
+          <artifactId>xml-apis</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
     <dependency>
       <groupId>com.google.code.gson</groupId>