Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#810817: gradle fails to install, because of circular dependency between maven core plugins

389 views
Skip to first unread message

Cyrille Chépélov

unread,
Jan 12, 2016, 9:40:03 AM1/12/16
to
Package: gradle
Version: 2.9-1 
Severity: normal

Dear Maintainer,

While building Cascading (https://github.com/cwensel/cascading), gradle
fails to run the following task

  LC_ALL=en_US.UTF-8 gradle clean install -x test -x platformTest --stacktrace 

(which works fine on Cascading's upstream CI suite), with the following
error message (abridged):

---------------------
:cascading-core:install FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':cascading-core:install'.
> Could not publish configuration 'archives'
   > org.codehaus.plexus.PlexusContainerException: Cycle detected in component graph in the system: 

* Try:
Run with --info or --debug option to get more log output.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':cascading-core:install'.
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
	[........ ]
Caused by: org.codehaus.plexus.component.composition.CycleDetectedInComponentGraphException: Cyclic requirement detected
	at org.codehaus.plexus.component.composition.DefaultCompositionResolver.addComponentDescriptor(DefaultCompositionResolver.java:65)
	at org.codehaus.plexus.component.repository.DefaultComponentRepository.addComponentDescriptor(DefaultComponentRepository.java:229)
	at org.codehaus.plexus.DefaultComponentRegistry.addComponentDescriptor(DefaultComponentRegistry.java:126)
	at org.codehaus.plexus.DefaultPlexusContainer.addComponentDescriptor(DefaultPlexusContainer.java:514)
	at org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(DefaultPlexusContainer.java:969)
	at org.codehaus.plexus.DefaultPlexusContainer.discoverComponents(DefaultPlexusContainer.java:941)
	at org.codehaus.plexus.DefaultPlexusContainer.initialize(DefaultPlexusContainer.java:560)
	... 82 more
Caused by: org.codehaus.plexus.util.dag.CycleDetectedException: Edge between 'Vertex{label='org.apache.maven.plugin.version.PluginVersionResolver:default'}' and 'Vertex{label='org.apache.maven.plugin.MavenPluginManager:default'}' introduces to cycle in the graph org.apache.maven.plugin.MavenPluginManager:default --> org.apache.maven.plugin.version.PluginVersionResolver:default --> org.apache.maven.plugin.MavenPluginManager:default
	at org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:143)
	at org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:123)
	at org.codehaus.plexus.component.composition.DefaultCompositionResolver.addComponentDescriptor(DefaultCompositionResolver.java:60)
	... 88 more


BUILD FAILED

----------------------

gradle 2.9-1 from Debian pulls in maven 3.3.9

When downloading gradle 2.10 binaries from https://www.gradle.com, the build as specified above proceeds fine. 
Gradle.com's binaries include maven 3.0.4, whereas the Debian package libgradle-plugins-java requires libmaven3-core-java (>= 3.3.3).

Thanks in advance

	-- Cyrille


-- System Information:
Debian Release: 8.2   
  APT prefers stable  
  APT policy: (950, 'stable'), (850, 'testing'), (800, 'unstable'), (500, 'stable-updates')
Architecture: amd64 (x86_64)
Foreign Architectures: i386 

Kernel: Linux 4.3.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages gradle depends on:
ii  default-jre-headless [java7-runtime-headless]    2:1.7-52
ii  libgradle-core-java                              2.9-1   
ii  libgradle-plugins-java                           2.9-1   
ii  openjdk-7-jre-headless [java7-runtime-headless]  7u91-2.6.3-1~deb8u1
ii  openjdk-8-jre-headless [java7-runtime-headless]  8u72-b05-2

gradle recommends no packages.


Other packages of interest:

ii  maven 					     3.3.9-3
ii  libmaven3-core-java				     3.3.9-3



Emmanuel Bourg

unread,
Jan 21, 2016, 12:10:04 PM1/21/16
to
Hi Cyrille,

Thank you very much for reporting this issue.

Our Maven 3.3 integration is incomplete, Mikolaj Izdebski pointed out on
IRC that Fedora has additional changes solving this issue. We have to
use Sisu and enable auto-wiring to deal with the cycles.

https://github.com/mizdebsk/gradle/commit/01ab8ba


Gradle 2.7 in the Jessie backports isn't affected by this issue since it
uses Maven 3.0.x.

Emmanuel Bourg
0 new messages