You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by ^Ethan$ <et...@gmail.com> on 2009/05/12 20:14:23 UTC

cannot build 1.6.0, reactor contain a cyclic reference

Hi, I'd like to build camel 1.6.0 from subversion, but mvn install gives an
error: 

org.apache.maven.BuildFailureException: The projects in the reactor contain
a cyclic reference: Edge between
'Vertex{label='org.apache.camel:camel-buildtools'}' and
'Vertex{label='org.apache.camel:camel-buildtools'}' introduces to cycle in
the graph org.apache.camel:camel-buildtools -->
org.apache.camel:camel-buildtools
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:323)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: hidden.org.codehaus.plexus.util.dag.CycleDetectedException: Edge
between 'Vertex{label='org.apache.camel:camel-buildtools'}' and
'Vertex{label='org.apache.camel:camel-buildtools'}' introduces to cycle in
the graph org.apache.camel:camel-buildtools -->
org.apache.camel:camel-buildtools
	at hidden.org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:127)
	at hidden.org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:107)
	at
org.apache.maven.project.ProjectSorter.addEdgeWithParentCheck(ProjectSorter.java:351)
	at org.apache.maven.project.ProjectSorter.<init>(ProjectSorter.java:161)
	at org.apache.maven.execution.ReactorManager.<init>(ReactorManager.java:99)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
	... 10 more

Any ideas? Thanks - Ethan
-- 
View this message in context: http://www.nabble.com/cannot-build-1.6.0%2C-reactor-contain-a-cyclic-reference-tp23507614p23507614.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: cannot build 1.6.0, reactor contain a cyclic reference

Posted by Willem Jiang <wi...@gmail.com>.
Hi,

You can build the code without CheckStyle by using the "nochecks" profile.

Here is the command:

mvn clean install -Pnochecks

Willem

^Ethan$ wrote:
> 
> willem.jiang wrote:
>> Hi
>>
>> Which version of camel are you using ?
>>
>> We use maven 2.0.9 with our daily development, and did not get the error
>> that you told.
>>
>> Willem
>>
> 
> Hi Willem, 
> 
> That gets me a bit farther. The original error was using maven 2.1.0. Maven
> 2.0.9 fails with
> 
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Camel
> [INFO]    task-segment: [compile]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Setting property: classpath.resource.loader.class =>
> 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
> [INFO] Setting property: velocimacro.messages.on => 'false'.
> [INFO] Setting property: resource.loader => 'classpath'.
> [INFO] Setting property: resource.manager.logwhenfound => 'false'.
> [INFO] ************************************************************** 
> [INFO] Starting Jakarta Velocity v1.4
> [INFO] RuntimeInstance initializing.
> [INFO] Default Properties File:
> org/apache/velocity/runtime/defaults/velocity.properties
> [INFO] Default ResourceManager initializing. (class
> org.apache.velocity.runtime.resource.ResourceManagerImpl)
> [INFO] Resource Loader Instantiated:
> org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
> [INFO] ClasspathResourceLoader : initialization starting.
> [INFO] ClasspathResourceLoader : initialization complete.
> [INFO] ResourceCache : initialized. (class
> org.apache.velocity.runtime.resource.ResourceCacheImpl)
> [INFO] Default ResourceManager initialization complete.
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Literal
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
> [INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Include
> [INFO] Loaded System Directive:
> org.apache.velocity.runtime.directive.Foreach
> [INFO] Created: 20 parsers.
> [INFO] Velocimacro : initialization starting.
> [INFO] Velocimacro : adding VMs from VM library template :
> VM_global_library.vm
> [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
> any resource loader.
> [INFO] Velocimacro : error using  VM library template VM_global_library.vm :
> org.apache.velocity.exception.ResourceNotFoundException: Unable to find
> resource 'VM_global_library.vm'
> [INFO] Velocimacro :  VM library template macro registration complete.
> [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
> templates
> [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
> NOT replace previous VM definitions
> [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be 
> global in scope if allowed.
> [INFO] Velocimacro : initialization complete.
> [INFO] Velocity successfully started.
> [INFO] [checkstyle:checkstyle {execution: validate}]
> [INFO] Source directory does not exist - skipping report.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Apache :: Camel Buildtools
> [INFO]    task-segment: [compile]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [checkstyle:checkstyle {execution: validate}]
> [WARNING] File encoding has not been set, using platform encoding MacRoman,
> i.e. build is platform dependent!
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An error has occurred in Checkstyle report generation.
> 
> Embedded error: Failed during checkstyle configuration
> TreeWalker is not allowed as a parent of Header
> 


Re: cannot build 1.6.0, reactor contain a cyclic reference

Posted by ^Ethan$ <et...@gmail.com>.

willem.jiang wrote:
> 
> Hi
> 
> Which version of camel are you using ?
> 
> We use maven 2.0.9 with our daily development, and did not get the error
> that you told.
> 
> Willem
> 

Hi Willem, 

That gets me a bit farther. The original error was using maven 2.1.0. Maven
2.0.9 fails with

[INFO]
------------------------------------------------------------------------
[INFO] Building Camel
[INFO]    task-segment: [compile]
[INFO]
------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] ************************************************************** 
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File:
org/apache/velocity/runtime/defaults/velocity.properties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated:
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
any resource loader.
[INFO] Velocimacro : error using  VM library template VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
[INFO] Velocimacro :  VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be 
global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [checkstyle:checkstyle {execution: validate}]
[INFO] Source directory does not exist - skipping report.
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache :: Camel Buildtools
[INFO]    task-segment: [compile]
[INFO]
------------------------------------------------------------------------
[INFO] [checkstyle:checkstyle {execution: validate}]
[WARNING] File encoding has not been set, using platform encoding MacRoman,
i.e. build is platform dependent!
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An error has occurred in Checkstyle report generation.

Embedded error: Failed during checkstyle configuration
TreeWalker is not allowed as a parent of Header

-- 
View this message in context: http://www.nabble.com/cannot-build-1.6.0%2C-reactor-contain-a-cyclic-reference-tp23507614p23521362.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: cannot build 1.6.0, reactor contain a cyclic reference

Posted by Willem Jiang <wi...@gmail.com>.
Hi

Which version of camel are you using ?

We use maven 2.0.9 with our daily development, and did not get the error
that you told.

Willem


^Ethan$ wrote:
> Hi, I'd like to build camel 1.6.0 from subversion, but mvn install gives an
> error: 
> 
> org.apache.maven.BuildFailureException: The projects in the reactor contain
> a cyclic reference: Edge between
> 'Vertex{label='org.apache.camel:camel-buildtools'}' and
> 'Vertex{label='org.apache.camel:camel-buildtools'}' introduces to cycle in
> the graph org.apache.camel:camel-buildtools -->
> org.apache.camel:camel-buildtools
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:323)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> 	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> 	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> 	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: hidden.org.codehaus.plexus.util.dag.CycleDetectedException: Edge
> between 'Vertex{label='org.apache.camel:camel-buildtools'}' and
> 'Vertex{label='org.apache.camel:camel-buildtools'}' introduces to cycle in
> the graph org.apache.camel:camel-buildtools -->
> org.apache.camel:camel-buildtools
> 	at hidden.org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:127)
> 	at hidden.org.codehaus.plexus.util.dag.DAG.addEdge(DAG.java:107)
> 	at
> org.apache.maven.project.ProjectSorter.addEdgeWithParentCheck(ProjectSorter.java:351)
> 	at org.apache.maven.project.ProjectSorter.<init>(ProjectSorter.java:161)
> 	at org.apache.maven.execution.ReactorManager.<init>(ReactorManager.java:99)
> 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
> 	... 10 more
> 
> Any ideas? Thanks - Ethan