]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
SONARPLUGINS-3164 Some shaded dependencies are not relocated
authorJulien HENRY <julien.henry@sonarsource.com>
Tue, 24 Sep 2013 09:25:44 +0000 (11:25 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Tue, 24 Sep 2013 09:25:44 +0000 (11:25 +0200)
sonar-runner-api/pom.xml
sonar-runner-impl/pom.xml

index 9d0148e620f03771740c75c707965954d8d724b0..be3d9f5295092d5886c4a7ec7894397771c0fc73 100644 (file)
       <artifactId>jsr305</artifactId>
       <scope>provided</scope>
     </dependency>
+    <dependency>
+      <groupId>commons-io</groupId>
+      <artifactId>commons-io</artifactId>
+      <version>2.0.1</version>
+      <!-- Provided by sonar-runner-impl but relocated -->
+      <scope>provided</scope>
+    </dependency>
 
     <!-- Unit tests -->
     <dependency>
             <configuration>
               <createDependencyReducedPom>true</createDependencyReducedPom>
               <minimizeJar>true</minimizeJar>
+              <relocations>
+                <relocation>
+                  <pattern>org.apache.commons.io</pattern>
+                  <shadedPattern>org.sonar.runner.commonsio</shadedPattern>
+                </relocation>
+              </relocations>
             </configuration>
           </execution>
         </executions>
index eba773a2ef911cb694ccf003901bd2eace8c92ed..488f612a20591e8cd922e428b9b2ba51e19df631 100644 (file)
                   <pattern>com.github.kevinsawicki.http</pattern>
                   <shadedPattern>org.sonar.runner.kevinsawicki</shadedPattern>
                 </relocation>
+                <relocation>
+                  <pattern>org.apache.commons.io</pattern>
+                  <shadedPattern>org.sonar.runner.commonsio</shadedPattern>
+                </relocation>
+                <relocation>
+                  <pattern>org.sonar.home</pattern>
+                  <shadedPattern>org.sonar.runner.home</shadedPattern>
+                </relocation>
               </relocations>
             </configuration>
           </execution>