Browse Source

SONARPLUGINS-3164 Some shaded dependencies are not relocated

tags/2.5-rc1
Julien HENRY 10 years ago
parent
commit
9188444d5e
2 changed files with 21 additions and 0 deletions
  1. 13
    0
      sonar-runner-api/pom.xml
  2. 8
    0
      sonar-runner-impl/pom.xml

+ 13
- 0
sonar-runner-api/pom.xml View File

@@ -21,6 +21,13 @@
<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>
@@ -106,6 +113,12 @@
<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>

+ 8
- 0
sonar-runner-impl/pom.xml View File

@@ -101,6 +101,14 @@
<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>

Loading…
Cancel
Save