Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build test module of created project (kepler) #3

Closed
paulvi opened this issue Jul 27, 2013 · 3 comments
Closed

Can't build test module of created project (kepler) #3

paulvi opened this issue Jul 27, 2013 · 3 comments

Comments

@paulvi
Copy link

paulvi commented Jul 27, 2013

I created project with tycho.version=0.18.1 target=kepler,
then I ran mvn package and got error

[INFO] Cannot complete the request. Generating details.
[INFO] {osgi.ws=win32, osgi.os=win32, osgi.arch=x86, org.eclipse.update.install.features=true}
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: tycho-eclipse-plugin1.test 0.0.1.qualifier
[ERROR] Missing requirement: tycho-eclipse-plugin1.test 0.0.1.qualifier requires 'bundle org.junit4 4.5.0' but it could not be found
[ERROR] Internal error: java.lang.RuntimeException: "No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from tycho-eclipse-plugin1.test 0.0.1.qualifier to bundle org.junit4 4.5.0.", "No solution found because the problem is unsatisfiable."] -> [Help 1]

I tried to update MANIFEST.MF as below, it doesn't help:
Require-Bundle: org.eclipse.jdt.junit4.runtime;bundle-version="1.1.0", org.junit4;bundle-version="4.11.0"

I only succeeded when disabling/removing <module>tycho-eclipse-plugin1.test</module> in parent pom.xml

@paulvi
Copy link
Author

paulvi commented Jul 27, 2013

From What's New in Kepler (JDT) local help link
"
Only one JUnit (4.11)

The org.junit bundle has been updated to JUnit 4.11.
At the same time, our good old friend org.junit_3.8.2 has been retired, and the org.junit4 compatibility bundle has also been removed. Your Require-Bundle: entries should just point to org.junit;bundle-version="4.11.0" (or an earlier version, if you like).

Note that JUnit 4 still contains the JUnit 3 APIs. If you need org.junit_3.8.2 back for whatever reason, you can still get it from Orbit.
"

With this string build passes:
Require-Bundle: org.eclipse.jdt.junit4.runtime;bundle-version="1.1.0", org.junit;bundle-version="4.11.0"

paulvi added a commit to paulvi/tycho-eclipse-plugin-archetype that referenced this issue Jul 27, 2013
.test module) -> fixed by updating junit version
@paulvi
Copy link
Author

paulvi commented Aug 1, 2013

@fbricon

While finishing fix in PR #4 can make some time, it makes sense just update README :

For kepler update MANIFEST.MF as below in .test project
Require-Bundle: org.eclipse.jdt.junit4.runtime;bundle-version="1.1.0", org.junit;bundle-version="4.11.0"

@paulvi
Copy link
Author

paulvi commented Sep 24, 2013

Thank you, Fred

@paulvi paulvi changed the title Can't build created project (need to remove .test module) Can't build test module of created project (kepler) Aug 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant