Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » How to compile and package the eclipse compiler?(eclipse compiler build process)
How to compile and package the eclipse compiler? [message #1837564] Tue, 02 February 2021 13:30 Go to next message
Jan Bittner is currently offline Jan BittnerFriend
Messages: 3
Registered: February 2021
Junior Member
Hey there,
this is my post, please let me know if i am not using the forum correctly.

I want to package the standalone eclipse compiler.
The following steps did work before, but don't work anymore on the current version.
git clone https://git.eclipse.org/c/jdt/eclipse.jdt.core.git/
cd org.eclipse.jdt.core
mvn package 


If i try it on the current version, i get
[FATAL] Non-resolvable parent POM for eclipse.jdt.core:eclipse.jdt.core:4.11.0-SNAPSHOT: Could not find artifact org.eclipse:eclipse-platform-parent:pom:4.11.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ eclipse.jdt.core:eclipse.jdt.core:4.11.0-SNAPSHOT, /home/jan/Repositories/eclipse.jdt.core/pom.xml, line 15, column 11
 @


Is this the right way to build the stand-alone compiler? If so, how can i resolve the artifact error? Are there any resources on the build process? Also, which one of the branches in the repository would be a wise choice?

Thank you very much for reading this post.
Re: How to compile and package the eclipse compiler? [message #1837678 is a reply to message #1837564] Thu, 04 February 2021 05:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33217
Registered: July 2009
Senior Member
I believe it's trying to point at this:

https://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/tree/eclipse-platform-parent/pom.xml


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to compile and package the eclipse compiler? [message #1837689 is a reply to message #1837564] Thu, 04 February 2021 09:08 Go to previous messageGo to next message
Sravan Kumar Lakkimsetti is currently offline Sravan Kumar LakkimsettiFriend
Messages: 15
Registered: February 2014
Junior Member
You can build using the following code

git clone https://git.eclipse.org/c/jdt/eclipse.jdt.core.git/
cd eclipse.jdt.core/org.eclipse.jdt.core
mvn clean verify -DskipTests=true -Pbuild-individual-bundles 


The ecj will be available as eclipse.jdt.core/org.eclipse.jdt.core/target/org.eclipse.jdt.core-*-SNAPSHOT-batch-compiler.jar
Re: How to compile and package the eclipse compiler? [message #1837775 is a reply to message #1837689] Sat, 06 February 2021 01:53 Go to previous messageGo to next message
Jan Bittner is currently offline Jan BittnerFriend
Messages: 3
Registered: February 2021
Junior Member
Thank you very much for the replies! The command works as desired. :)

Is this documented somewhere? I would like to have a reference for future updates and breaking changes in the build process.

[Updated on: Sat, 06 February 2021 05:07]

Report message to a moderator

Re: How to compile and package the eclipse compiler? [message #1837970 is a reply to message #1837775] Thu, 11 February 2021 13:23 Go to previous messageGo to next message
Mark Smith is currently offline Mark SmithFriend
Messages: 82
Registered: September 2020
Member
You will need to go to Project->Clean...,then build your project. This will work, even when your source code does not contain any main method to run as an executable program. The . class files will appear in the bin folder of your project, in your workspace.
Re: How to compile and package the eclipse compiler? [message #1837972 is a reply to message #1837970] Thu, 11 February 2021 13:46 Go to previous messageGo to next message
Jan Bittner is currently offline Jan BittnerFriend
Messages: 3
Registered: February 2021
Junior Member
Thanks for the reply! Though i don't think it answers the question.
Re: How to compile and package the eclipse compiler? [message #1856426 is a reply to message #1837564] Fri, 09 December 2022 08:20 Go to previous messageGo to next message
Arsen Davtyan is currently offline Arsen DavtyanFriend
Messages: 17
Registered: May 2022
Junior Member
Hello Ed Merks, I have the same problem as you answered in the question 13 years ago, I think it was right. But now this link is not working. Can you suggest another one or how to compile it all, if I have the same error at the moment? I really appreciate any help you can provide.
Re: How to compile and package the eclipse compiler? [message #1856428 is a reply to message #1856426] Fri, 09 December 2022 09:27 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33217
Registered: July 2009
Senior Member
That repo is moved to here:

https://github.com/eclipse-platform/eclipse.platform.releng.aggregator

Look here if you plan to dig further:

https://github.com/eclipse-platform/.github/blob/main/CONTRIBUTING.md#create-an-eclipse-development-environment

There's been quite a bit of work done recently to change how the compiler is packaged and delivered:

https://github.com/eclipse-jdt/


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to compile and package the eclipse compiler? [message #1856431 is a reply to message #1856428] Fri, 09 December 2022 10:47 Go to previous message
Arsen Davtyan is currently offline Arsen DavtyanFriend
Messages: 17
Registered: May 2022
Junior Member
Thank you Ed for your quick reply.
Thank you for your support.

[Updated on: Fri, 09 December 2022 11:20]

Report message to a moderator

Previous Topic:Export to runnable jar is missing projects
Next Topic:Eclipse 2.0.X Won't Run On Windows
Goto Forum:
  


Current Time: Tue Sep 24 02:18:39 GMT 2024

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

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

Back to the top