]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6809 fix child-first classloader strategy
authorSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 2 Dec 2015 17:30:17 +0000 (18:30 +0100)
committerSimon Brandhof <simon.brandhof@sonarsource.com>
Wed, 2 Dec 2015 17:31:03 +0000 (18:31 +0100)
sonar-java-api was removed from root <dependencyManagement> (5a1a0e3fbec92bbc8508cfc5165b2c6590666ce5)
but not from sonar-plugin-api-deps. The exclusion of sonar-plugin-api was lost, so child-first classloader strategy
loaded SonarPlugin class from plugin instead of core classloader.

sonar-plugin-api-deps/pom.xml

index 44b1809cdba5e68d45c35d697b882ea7e4487167..9d0169ec1eaf674a368f2b7f88933d12de6374e0 100644 (file)
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
 
   <parent>
@@ -12,7 +13,7 @@
 
   <name>SonarQube :: Plugin API Dependencies</name>
   <description>Deprecated transitive dependencies of sonar-plugin-api</description>
-  
+
   <dependencies>
 
     <!--
       <groupId>org.codehaus.sonar</groupId>
       <artifactId>sonar-java-api</artifactId>
       <version>5.1</version>
+      <exclusions>
+        <exclusion>
+          <groupId>org.codehaus.sonar</groupId>
+          <artifactId>sonar-deprecated</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>org.codehaus.sonar</groupId>
+          <artifactId>sonar-plugin-api</artifactId>
+        </exclusion>
+      </exclusions>
     </dependency>
   </dependencies>