You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Ludovic Viegas (JIRA)" <ji...@apache.org> on 2016/09/22 12:00:26 UTC

[jira] [Comment Edited] (MSHADE-148) Shade Plugin gets stuck in infinite loop building dependency reduced POM

    [ https://issues.apache.org/jira/browse/MSHADE-148?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15513057#comment-15513057 ] 

Ludovic Viegas edited comment on MSHADE-148 at 9/22/16 11:59 AM:
-----------------------------------------------------------------

I just discovered this maven plug-in and I have the same problem in version 2.4.1. For me, the infinite exclusion loop is on "javax.media:jai". 

This seems to be a modified version of JAI used by Luciad Lightspeed (a Gis COTS we use). I don't know if it's any help, but here it is:

{code:xml}
<?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">
   <modelVersion>4.0.0</modelVersion>
   <groupId>javax.media</groupId>
   <artifactId>jai</artifactId>
   <version>1.1.4+7-lcd</version>
   <packaging>pom</packaging>
   <dependencies>
      <dependency>
         <groupId>javax.media</groupId>
         <artifactId>jai</artifactId>
         <version>1.1.4+7-lcd</version>
         <classifier>native.linux64</classifier>
      </dependency>
      <dependency>
         <groupId>javax.media</groupId>
         <artifactId>jai</artifactId>
         <version>1.1.4+7-lcd</version>
         <classifier>native.linux</classifier>
      </dependency>
      <dependency>
         <groupId>javax.media</groupId>
         <artifactId>jai</artifactId>
         <version>1.1.4+7-lcd</version>
         <classifier>native.win32</classifier>
      </dependency>
   </dependencies>
</project>
{code}

All those JAI dependencies have the same GAV, only the classifier changes. Could that be the reason behind the infinite loop???


was (Author: lviegas):
I just discovered this maven plug-in and I've the same problem with version 2.4.1. For me, the infinite exclusion is on "javax.media:jai", a pom which packaging is of type pom.

> 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)