Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Test runtime with platform specific fragments

I tried setting up an explicit dependency to my win32 fragment since I'm trying to run the tests on windows.  But it fails with these errors:

ERROR] Cannot resolve project dependencies:
ERROR]   You requested to install 'bundle example.fragment.win32.win32.x86_64 0.0.0' but it could not be found
ERROR]

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.19.0:test (default-test) on project example.bundle.t
ests: Execution default-test of goal org.eclipse.tycho:tycho-surefire-plugin:0.19.0:test failed: No solution found because th
e problem is unsatisfiable.: [Unable to satisfy dependency from org.eclipse.jdt.core 3.9.0.v_OTDT_r220_201306071800 to org.ec
lipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).; Unable to satisfy dependency from org.eclipse.jdt.core 3.9.1.
v_OTDT_r221_201309101918 to org.eclipse.objectteams.otdt.core.patch.feature.group [2.0.0,3.0.0).; Unable to satisfy dependenc
y from tycho-extra-1388759312067 0.0.0.1388759312067 to bundle example.fragment.win32.win32.x86_64 0.0.0.; Unable to satisfy
dependency from tycho-1388759312099 0.0.0.1388759312099 to bundle example.fragment.win32.win32.x86_64 0.0.0.; No solution fou
nd because the problem is unsatisfiable.] -> [Help 1]
[ERROR]


It seems that since example.fragment.win32.win32.x86_64 fragment can't be installed which I guess makes sense because that fragment is being built and is in the reactor but not in local repository.


On Fri, Jan 3, 2014 at 7:38 PM, Mickael Istria <mistria@xxxxxxxxxx> wrote:
You should try to explicitly add the fragment as an extraDependency.
It seems to me that because of https://bugs.eclipse.org/bugs/show_bug.cgi?id=394636 , transitive platform-specific dependencies almost always get ignored. If you deal with multiple environments, you'll probably need to spend a hundred lines in your pom.xml to set up profiles. See related scenario: https://bugs.eclipse.org/bugs/show_bug.cgi?id=419147 .

--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user




--
Greg Amerson
Liferay Developer Tools
Liferay, Inc. www.liferay.com

Back to the top