[
https://issues.apache.org/jira/browse/MSHADE-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14745065#comment-14745065
]
Masatake Iwasaki commented on MSHADE-148:
-----------------------------------------
Thanks, [~khmarbaise ].
I used rev 1702888 of maven-shade-plugin with Maven 3.3.3.
{noformat}
URL: http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-shade-plugin
Repository Root: http://svn.apache.org/repos/asf
Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
Revision: 1702888
{noformat}
I could reproduce the issue by d7a76593 of htrace.
{noformat}
$ git clone https://github.com/apache/incubator-htrace
$ cd incubator-htrace
$ git checkout d7a76593
$ vim pom.xml
$ git diff
diff --git a/pom.xml b/pom.xml
index 1438500..0ce1fb0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -291,7 +291,7 @@ language governing permissions and limitations under the
License. -->
<maven-compiler-plugin.version>2.5.1</maven-compiler-plugin.version>
<maven-gpg-plugin.version>1.1</maven-gpg-plugin.version>
<maven-deploy-plugin.version>2.7</maven-deploy-plugin.version>
- <maven-shade-plugin.version>2.1</maven-shade-plugin.version>
+ <maven-shade-plugin.version>2.4.2-SNAPSHOT</maven-shade-plugin.version>
<maven-site-plugin.version>3.4</maven-site-plugin.version>
<wagon-ssh.version>2.2</wagon-ssh.version>
<doxia-module-markdown.version>1.6</doxia-module-markdown.version>
$ mvn package -DskipTests
{noformat}
The issued will be reproduced while building htrace-hbase sub-project.
Packaging only htrace-hbase ({{mvn package -pl htrace-hbase -DskipTests}}) can
not reproduce the issue.
> Shade Plugin gets stuck in infinite loop building dependency reduced POM
> ------------------------------------------------------------------------
>
> Key: MSHADE-148
> URL: https://issues.apache.org/jira/browse/MSHADE-148
> Project: Maven Shade Plugin
> Issue Type: Bug
> Affects Versions: 2.1
> Environment: OS X 10.7.5
> Reporter: Rob Vesse
> Assignee: Karl Heinz Marbaise
> Fix For: 2.4.1
>
> Attachments: MSHADE-148.patch, dependency-reduced-pom.xml, pom.xml,
> shade-bug.txt
>
>
> I have encountered a bug whereby the shade plugin gets stuck in an infinite
> loop in the step of creating a dependency reduced POM.
> I have attached a minimal POM that reproduces the issue and done some
> debugging on this. The problem seems to be caused by using both the jar and
> test-jar version of a dependency (jena-fuseki in my example) while also
> including a jar dependency that is a transitive dependency of the other
> dependencies (jena-arq in my example). Removing either the jar/test-jar
> resolves the problem and so does removing the other jar dependency.
> The problem appears to be that the plugin is getting stuck endlessly trying
> to produce the dependency-reduced-pom.xml
> If I watch the file over time it is repeatedly deleted and rewritten, each
> time it is written it gets larger. When I manage to kill the process at a
> point where the file is non-empty I can see that the plugin is endlessly
> adding the same set of <exclusions> to one of the jena-fuseki dependencies.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)