You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Benson Margulies <bi...@gmail.com> on 2011/12/13 03:40:22 UTC
Loop-to-loop
When I try to add the js tooling to the codgen plugin as a dependency
to enable the js mojo, I get whacked with this.
Any suggestions?
[ERROR] The projects in the reactor contain a cyclic reference: Edge
between 'Vertex{label='org.apache.cxf:cxf-codegen-plugin:2.5.1-SNAPSHOT'}'
and 'Vertex{label='org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT'}'
introduces to cycle in the graph
org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT -->
org.apache.cxf:cxf-rt-javascript:2.5.1-SNAPSHOT -->
org.apache.cxf:cxf-rt-frontend-simple:2.5.1-SNAPSHOT -->
org.apache.cxf:cxf-rt-bindings-xml:2.5.1-SNAPSHOT -->
org.apache.cxf:cxf-rt-databinding-jaxb:2.5.1-SNAPSHOT -->
org.apache.cxf:cxf-testutils:2.5.1-SNAPSHOT -->
org.apache.cxf:cxf-codegen-plugin:2.5.1-SNAPSHOT -->
org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT ->
[Help 1]
org.apache.maven.ProjectCycleException: The projects in the reactor
contain a cyclic reference: Edge between
'Vertex{label='org.apache.cxf:cxf-codegen-plugin:2.5.1-SNAPSHOT'}' and
'Vertex{label='org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT'}'
introduces to cycle in the graph
org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT -->
org.apache.cxf:cxf-rt-javascript:2.5.1-SNAPSHOT -->
org.apache.cxf:cxf-rt-frontend-simple:2.5.1-SNAPSHOT -->
org.apache.cxf:cxf-rt-bindings-xml:2.5.1-SNAPSHOT -->
org.apache.cxf:cxf-rt-databinding-jaxb:2.5.1-SNAPSHOT -->
org.apache.cxf:cxf-testutils:2.5.1-SNAPSHOT -->
org.apache.cxf:cxf-codegen-plugin:2.5.1-SNAPSHOT -->
org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT
Re: Loop-to-loop
Posted by Daniel Kulp <dk...@apache.org>.
On Monday, December 12, 2011 9:52:24 PM Benson Margulies wrote:
> This charming message is a fraud. the loop related to plugin
> executions and is the reason why I shouldn't have put any codegen
> executions in the javascript runtime pom.
Well, it's actually more than just the codegen plugin in rt/javascript.
rt/javascript also depends on cxf-testutils (which runs the plugin), rt/jaxws,
rt/binding/soap, etc...
It's actually one of the reasons that both JAX-WS and JAXB have the runtime
and code generation parts separated into separate jars. Kind of allows the
runtimes to actually test with the generated code.
The other databindings like xmlbeans and jibx generally just use the vendor
supplied code generator for the types. The tooling part is then tested via
use of the codegen plugin in the systests.
In anycase, I'm not sure what to suggest to unwind all of this. A mvn
dependency:tree in rt/javascript shows a bunch of stuff that looks like it
could create another circle. Moving some of the tests to systest/databinding
might free up some of the deps, but I'm not really sure to what extent.
Another option that MAY be worth investigating is to not have the codegen
plugin depend on it directly. Instead, use the maven artifact resolver to
resolve the tools/javascript thing, setup a classpath/loader and kind of call
the "main" method that way.
Dan
>
> On Mon, Dec 12, 2011 at 9:40 PM, Benson Margulies <bi...@gmail.com>
wrote:
> > When I try to add the js tooling to the codgen plugin as a dependency
> > to enable the js mojo, I get whacked with this.
> >
> > Any suggestions?
> >
> > [ERROR] The projects in the reactor contain a cyclic reference: Edge
> > between
> > 'Vertex{label='org.apache.cxf:cxf-codegen-plugin:2.5.1-SNAPSHOT'}' and
> > 'Vertex{label='org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.
> > 1-SNAPSHOT'}' introduces to cycle in the graph
> > org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT -->
> > org.apache.cxf:cxf-rt-javascript:2.5.1-SNAPSHOT -->
> > org.apache.cxf:cxf-rt-frontend-simple:2.5.1-SNAPSHOT -->
> > org.apache.cxf:cxf-rt-bindings-xml:2.5.1-SNAPSHOT -->
> > org.apache.cxf:cxf-rt-databinding-jaxb:2.5.1-SNAPSHOT -->
> > org.apache.cxf:cxf-testutils:2.5.1-SNAPSHOT -->
> > org.apache.cxf:cxf-codegen-plugin:2.5.1-SNAPSHOT -->
> > org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT ->
> > [Help 1]
> > org.apache.maven.ProjectCycleException: The projects in the reactor
> > contain a cyclic reference: Edge between
> > 'Vertex{label='org.apache.cxf:cxf-codegen-plugin:2.5.1-SNAPSHOT'}' and
> > 'Vertex{label='org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1
> > -SNAPSHOT'}' introduces to cycle in the graph
> > org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT -->
> > org.apache.cxf:cxf-rt-javascript:2.5.1-SNAPSHOT -->
> > org.apache.cxf:cxf-rt-frontend-simple:2.5.1-SNAPSHOT -->
> > org.apache.cxf:cxf-rt-bindings-xml:2.5.1-SNAPSHOT -->
> > org.apache.cxf:cxf-rt-databinding-jaxb:2.5.1-SNAPSHOT -->
> > org.apache.cxf:cxf-testutils:2.5.1-SNAPSHOT -->
> > org.apache.cxf:cxf-codegen-plugin:2.5.1-SNAPSHOT -->
> > org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT
--
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com
Re: Loop-to-loop
Posted by Benson Margulies <bi...@gmail.com>.
This charming message is a fraud. the loop related to plugin
executions and is the reason why I shouldn't have put any codegen
executions in the javascript runtime pom.
On Mon, Dec 12, 2011 at 9:40 PM, Benson Margulies <bi...@gmail.com> wrote:
> When I try to add the js tooling to the codgen plugin as a dependency
> to enable the js mojo, I get whacked with this.
>
> Any suggestions?
>
> [ERROR] The projects in the reactor contain a cyclic reference: Edge
> between 'Vertex{label='org.apache.cxf:cxf-codegen-plugin:2.5.1-SNAPSHOT'}'
> and 'Vertex{label='org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT'}'
> introduces to cycle in the graph
> org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT -->
> org.apache.cxf:cxf-rt-javascript:2.5.1-SNAPSHOT -->
> org.apache.cxf:cxf-rt-frontend-simple:2.5.1-SNAPSHOT -->
> org.apache.cxf:cxf-rt-bindings-xml:2.5.1-SNAPSHOT -->
> org.apache.cxf:cxf-rt-databinding-jaxb:2.5.1-SNAPSHOT -->
> org.apache.cxf:cxf-testutils:2.5.1-SNAPSHOT -->
> org.apache.cxf:cxf-codegen-plugin:2.5.1-SNAPSHOT -->
> org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT ->
> [Help 1]
> org.apache.maven.ProjectCycleException: The projects in the reactor
> contain a cyclic reference: Edge between
> 'Vertex{label='org.apache.cxf:cxf-codegen-plugin:2.5.1-SNAPSHOT'}' and
> 'Vertex{label='org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT'}'
> introduces to cycle in the graph
> org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT -->
> org.apache.cxf:cxf-rt-javascript:2.5.1-SNAPSHOT -->
> org.apache.cxf:cxf-rt-frontend-simple:2.5.1-SNAPSHOT -->
> org.apache.cxf:cxf-rt-bindings-xml:2.5.1-SNAPSHOT -->
> org.apache.cxf:cxf-rt-databinding-jaxb:2.5.1-SNAPSHOT -->
> org.apache.cxf:cxf-testutils:2.5.1-SNAPSHOT -->
> org.apache.cxf:cxf-codegen-plugin:2.5.1-SNAPSHOT -->
> org.apache.cxf:cxf-tools-wsdlto-frontend-javascript:2.5.1-SNAPSHOT