I found one case where the mvn eclipse:eclipse command is run against the project itself. The jars for other Tuscany modules are added to the .classpath and the PDE also adds the Tuscany projects in the workspace via the plugin dependency classpath container. As a result, there are duplicate copies of the definitions.xml from the jar and project.

Can you try to run mvn -Peclipse instead? This will use the Tuscany version of the maven eclipse plugin to produce the .classpath file that is friendly to PDE as well as non OSGi dependencies (such as test/runtime or even transitive compile dependencies).

Thanks,
Raymond
--------------------------------------------------
From: "Jean-Sebastien Delfino" <[email protected]>
Sent: Thursday, October 08, 2009 7:56 AM
To: <[email protected]>
Subject: [2.x] Test cases fail with DuplicateIntent errors in Eclipse

Many test cases (binding-http-runtime, binding-jsonrpc-runtime, binding-ws-axis2 etc) which work in Maven fail for me with DuplicateIntent policy errors in Eclipse.

Run As / Junit Test gives me the following errors:

Oct 8, 2009 7:40:59 AM org.apache.tuscany.sca.node.impl.NodeImpl start
INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default0 domain: tuscany.apache.org Oct 8, 2009 7:41:01 AM org.apache.tuscany.sca.definitions.impl.DefinitionsImpl [Extension points definitions] (DuplicateIntent) SEVERE: Duplicate intent {http://docs.oasis-open.org/ns/opencsa/sca/200903}serverAuthentication found in domain Oct 8, 2009 7:41:01 AM org.apache.tuscany.sca.definitions.impl.DefinitionsImpl [Extension points definitions] (DuplicateIntent) SEVERE: Duplicate intent {http://docs.oasis-open.org/ns/opencsa/sca/200903}clientAuthentication found in domain Oct 8, 2009 7:41:01 AM org.apache.tuscany.sca.definitions.impl.DefinitionsImpl [Extension points definitions] (DuplicateIntent) SEVERE: Duplicate intent {http://docs.oasis-open.org/ns/opencsa/sca/200903}authentication found in domain Oct 8, 2009 7:41:01 AM org.apache.tuscany.sca.definitions.impl.DefinitionsImpl [Extension points definitions] (DuplicateIntent) SEVERE: Duplicate intent {http://docs.oasis-open.org/ns/opencsa/sca/200903}mutualAuthentication found in domain
...

Any idea on what's causing getting these errors in Eclipse?
--
Jean-Sebastien

Reply via email to