Julien Lancelot created MSHADE-163:
--------------------------------------
Summary: Fail to create dependency reduced POM when an artifact is
declared twice : one with type "test-jar" and one with scope "provided"
Key: MSHADE-163
URL: https://jira.codehaus.org/browse/MSHADE-163
Project: Maven Shade Plugin
Issue Type: Bug
Affects Versions: 2.2, 2.1
Reporter: Julien Lancelot
When executing "mvn clean install", the process never ends when generating the
dependency reduced pom, the line is repeated infinitely.
Here is the ouput :
[INFO] Dependency-reduced POM written at:
/Source/MyProject/dependency-reduced-pom.xml
[INFO] Dependency-reduced POM written at:
/Source/MyProject//dependency-reduced-pom.xml
[INFO] Dependency-reduced POM written at:
/Source/MyProject//dependency-reduced-pom.xml
...
Here is an sample to reproduce this issue :
{code:xml}
<dependency>
<groupId>org.sample</groupId>
<artifactId>sample</artifactId>
<version>1.0
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.sample</groupId>
<artifactId>sample</artifactId>
<version>1.0
<type>test-jar</type>
<scope>test</scope>
</dependency>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
<minimizeJar>true</minimizeJar>
<relocations>
<relocation>
<pattern>my.package</pattern>
<shadedPattern>my.package.bis</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
{code}
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)