1

I have a problem integrating Eclipse JDT in a project.

I added the following dependency to sbt

libraryDependencies += "org.eclipse.jdt" % "core" % "3.3.0-v_771"

but I get the following missing dependencies:

[warn]  :: org.eclipse.equinox#app;[1.0.0,2.0.0): not found
[warn]  :: org.eclipse.equinox#common;[3.3.0,4.0.0): not found

Is there any repository or any sbt configuration I am missing?

3 Answers 3

1

Eclipse JDT jars are on Maven Central so adding new resolvers are not going to help here. (Besides it's now https://repo.eclipse.org).

According to org.eclipse.jdt/core, the latest release version is 3.2.0.666 so try this:

libraryDependencies += "org.eclipse.jdt" % "core" % "3.2.0.666"

note

I had to dig around a bit to see why 3.3.0-v_771 doesn't work. Somewhere along the dependencies org.eclipse.equinox#app;[1.0.0,2.0.0) is required. The only revision available according to org.eclipse.equinox/app is 1.0.0-v20070606.

Maven's Dependency Mediation and Conflict Resolution says:

if qualifier does not exist, it is newer than if it does

In other words, 1.0.0-v20070606 < 1.0.0, so it doesn't meet the criteria.

Sign up to request clarification or add additional context in comments.

Comments

0

The Maven - Eclipsepedia, told us that the Eclipse Maven Repository is http://maven.eclipse.org/nexus/ Please add it to your pom.

I hope this may help.

Comments

0

You might whant to use the latest version (3.12.2) of JDT core now.

libraryDependencies += "org.eclipse.jdt" % "org.eclipse.jdt.core" % "3.12.2"

This is a new approach to plublish the eclipse libs on maven central (simple version numbers, standard maven metadata for dependencies, source artifacts, 3rd party dependencies...). Please report if this is working for you or not.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.