Description
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.
Attachments
Attachments
Issue Links
- blocks
-
FLINK-20092 [Java 11] Multi-thread Flink compilation not working
- Closed
- is related to
-
HTRACE-234 Add workaround to prevent htrace-hbase from getting in an infinite loop while creating the dependency-reduced pom
- Resolved
- relates to
-
HTRACE-399 Exclude jackson from test dependency on htrace-core4 to avoid infinite loop on creating dependency-reduced-pom
- Resolved
- links to