Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 443795

Summary: o.e.orion.server.tests break with Tycho 0.21
Product: [ECD] Orion Reporter: Michael Ochmann <michael.ochmann>
Component: RelengAssignee: Project Inbox <orion.releng-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.sohn
Version: 6.0   
Target Milestone: 7.0   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Ochmann CLA 2014-09-11 05:22:18 EDT
Tycho 0.21 resolves surefire dependencies more strictly, i.e. the version argument 0.0.0 does no longer match "any available version" (see release notes [1] and Bug 436617 for details). This leads to unresolvable dependencies during the Maven build.

Steps to reproduce:
* adapt the Tycho versions in o.e.o.client/pom.xml and o.e.o.server/pom.xml:
		<tycho-version>0.21.0</tycho-version>
		<tycho-extras-version>0.21.0</tycho-extras-version>
* run the Maven build and notice that the build for o.e.o.server.tests breaks with something like: 

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.21.0:test (default-test) on project org.eclipse.orion.server.tests: Execution  default-test of goal org.eclipse.tycho:tycho-surefire-plugin:0.21.0:test failed: No solution found because the problem is unsatisfiable.: [Unable to satisfy dependency from tycho-extra-1410424458553 0.0.0.1410424458553 to org.eclipse.orion.releng.test.master.feature.group 0.0.0.;....(some more of that kind)



[1] http://wiki.eclipse.org/Tycho/Release_Notes/0.21
Comment 1 Michael Ochmann CLA 2014-09-11 05:25:21 EDT
Patch proposed to Gerrit:
https://git.eclipse.org/r/33235

I had to remove the dependency to to org.eclipse.orion.releng.test.master because it leads to a build cycle:

[ERROR] The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='org.eclipse.orion.feature:org.eclipse.orion.releng.test.master:7.0.0-SNAPSHOT'}' and Vertex{label='org.eclipse.orion:org.eclipse.orion.server.tests:4.0.0-SNAPSHOT'}' introduces to cycle in the graph org.eclipse.orion:org.eclipse.orion.server.tests:4.0.0-SNAPSHOT --> org.eclipse.orion.feature:org.eclipse.orion.releng.test.master:7.0.0-SNAPSHOT --> org.eclipse.orion:org.eclipse.orion.server.tests:4.0.0-SNAPSHOT

However, the tests work without that dependency pretty well, so I guess it became somehow obsolete.
Comment 2 Matthias Sohn CLA 2014-10-09 05:07:38 EDT
merged as a3815881d56407a3df166e3edefe67eb6b93d122