Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » maven dependency for jdt.core coming with 4.6
maven dependency for jdt.core coming with 4.6 [message #1739376] Sun, 31 July 2016 07:30 Go to next message
Tudor Girba is currently offline Tudor GirbaFriend
Messages: 3
Registered: July 2016
Junior Member
I am using JDT Core to visit Java programs for the purpose of producing a more elaborate model. At this point, I am using version 3.10, but I would like to move to the latest version.

I am using Maven, and I am now looking for a way to get a Maven dependency to org.eclipse.jdt.core. Right now, I am using:

<dependency>
	<groupId>org.eclipse.jdt</groupId>
	<artifactId>org.eclipse.jdt.core</artifactId>
	<version>3.10.0</version>
</dependency>


to get the version found on the central Maven repository.

Is there a Maven repository that I can use to get org.eclipse.jdt.core and all its dependencies coming with version 4.6?
Re: maven dependency for jdt.core coming with 4.6 [message #1739501 is a reply to message #1739376] Tue, 02 August 2016 13:39 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7675
Registered: July 2009
Senior Member
Hi

See https://bugs.eclipse.org/bugs/show_bug.cgi?id=497982

Whatever you find in Maven central is more likely to be confusing than
helpful.

Regards

Ed Willink

On 02/08/2016 14:10, Tudor Girba wrote:
> I am using JDT Core to visit Java programs for the purpose of producing
> a more elaborate model. At this point, I am using version 3.10, but I
> would like to move to the latest version.
>
> I am using Maven, and I am now looking for a way to get a Maven
> dependency to org.eclipse.jdt.core. Right now, I am using:
>
>
> <dependency>
> <groupId>org.eclipse.jdt</groupId>
> <artifactId>org.eclipse.jdt.core</artifactId>
> <version>3.10.0</version>
> </dependency>
>
>
> to get the version found on the central Maven repository.
>
> Is there a Maven repository that I can use to get org.eclipse.jdt.core
> and all its dependencies coming with version 4.6?


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Re: maven dependency for jdt.core coming with 4.6 [message #1739853 is a reply to message #1739501] Fri, 05 August 2016 04:43 Go to previous messageGo to next message
Tudor Girba is currently offline Tudor GirbaFriend
Messages: 3
Registered: July 2016
Junior Member
Hi Ed,

Thanks for the answer, but I am still not sure as to how to proceed.

Let me rephrase the question: What is the preferred way to include jdt.core as a Maven dependency in another project?

Cheers,
Tudor
Re: maven dependency for jdt.core coming with 4.6 [message #1739871 is a reply to message #1739853] Fri, 05 August 2016 08:20 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7675
Registered: July 2009
Senior Member
Hi

Sorry. I have never used Maven. I just keep my eyes/ears open to see
when/if I can/should do something.

It appears that there is no official Eclipse Maven, and that the
unofficial is of potentially negative value.

Since no one else has been more positive, my comments above may be accurate.

I can only suggest that you look to see whether you can find another
project that has solved a similar problem. You might try the TMF (Xtext)
newsgroup where I have seen many references to Maven and Gradle builds.

Otherwise I would treat Eclipse plugins as private libraries that you
provide yourself.

Regards

Ed Willink




On 05/08/2016 05:43, Tudor Girba wrote:
> Hi Ed,
>
> Thanks for the answer, but I am still not sure as to how to proceed.
>
> Let me rephrase the question: What is the preferred way to include
> jdt.core as a Maven dependency in another project?
>
> Cheers,
> Tudor
>


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Re: maven dependency for jdt.core coming with 4.6 [message #1739890 is a reply to message #1739871] Fri, 05 August 2016 13:01 Go to previous messageGo to next message
Tudor Girba is currently offline Tudor GirbaFriend
Messages: 3
Registered: July 2016
Junior Member
Thanks for the quick answer.

I did not mean to imply that you have to provide the answer for my question. Sorry if it came out like that.

Thanks for the suggestion of looking at other downstream projects. I took a look at XText. Interestingly, they also seem to depend on version 3.10:
https://github.com/eclipse/xtext-core/blob/master/org.eclipse.xtext.xtext.generator/build.gradle

So, at least it seems that I am not the only one that needs a Maven dependency. For reference, version 3.10 from Maven Central is actually working, and if XText can live with that version, I am also fine with it for now. It's just that it is a bit old, and I would prefer to be closer to the latest release.

Certainly, maintaining a local set of libraries with the latest release is also possible, but it is more difficult to put together given that the 4_6 tag of jdt.core does not contain the jars:
https://github.com/eclipse/eclipse.jdt.core/releases/tag/R4_6

What is the preferred way to get the jdt.core libraries and all needed dependencies?

[Updated on: Fri, 05 August 2016 13:02]

Report message to a moderator

Re: maven dependency for jdt.core coming with 4.6 [message #1739895 is a reply to message #1739890] Fri, 05 August 2016 13:35 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7675
Registered: July 2009
Senior Member
Hi

I would use the required version of Eclipse.
Write a trivial Java class in a trivial plugin to provoke the Manifest
to compute the dependencies.
Copy all the computed dependencies from the Eclipse plugins folder to
your private area.

Regards

Ed Willink


On 05/08/2016 14:01, Tudor Girba wrote:
> Thanks for the quick answer.
> I did not mean to imply that you have to provide the answer for my
> question :). Sorry if it came out like that.
> Thanks for the suggestion of looking at other downstream projects. I
> took a look at XText. Interestingly, they also seem to depend on version
> 3.10:
> https://github.com/eclipse/xtext-core/blob/master/org.eclipse.xtext.xtext.generator/build.gradle
>
>
> So, at least it seems that I am not the only one that needs a Maven
> dependency :). For reference, version 3.10 from Maven Central is
> actually working, and if XText can live with that version, I am also
> fine with it for now. It's just that it is a bit old, and I would prefer
> to be closer to the latest release.
>
> Certainly, maintaining a local set of libraries with the latest release
> is also possible, but it is more difficult to put together given that
> the 4_6 tag of jdt.core does not contain the jars:
> https://github.com/eclipse/eclipse.jdt.core/releases/tag/R4_6
>
> What is the preferred way to get the jdt.core libraries and all needed
> dependencies?


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Previous Topic:I want to develop a text editor use JDT UI
Next Topic:Neon-JDT Index poor performance
Goto Forum:
  


Current Time: Sun Oct 06 23:31:10 GMT 2024

Powered by FUDForum. Page generated in 0.04096 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top