Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Objectteams » How to build OT/ODTD and Equinox from GIT repository?
How to build OT/ODTD and Equinox from GIT repository? [message #1339774] Wed, 07 May 2014 20:54 Go to next message
Steve Mayer is currently offline Steve MayerFriend
Messages: 22
Registered: December 2012
Junior Member
Hi,

Gratulations on the progress regarding Java 1.8!

My current aim is that I would like to build object teams from the GIT repository for my experiments.

What is the needed setup and what are the steps needed to build OT from git? How can I build the Equinox Plugin?

My approach was:
- Install Eclipse Kepler 4.3.0
- Install corresponding OT
- I use Java 1.7 (are there any requirements on the jave version? I have Java OpenJDK 1.7.0_51 and regular 1.7.0_55 Java(TM) SE Runtime Environment).

Questions:
- what is the recommended way to install Maven? (perhaps I did an error there)
- do I have to use "EGit" or can I just use git on the command line to clone the OT git repository?
- how do I import and build OT/ODTD using maven?
- how do I import and build the Equinox Plugin using maven?

Further:
- is there a backup way to simply use maven on the command line, i.e., "mvn" on the command line? I.e., use that to build OT/OTDT and also the Equinox plugin?

Danke und viele Grüße aus Wien,
Stephan

PS: currently I get the following error message:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project org.eclipse.jdt:org.eclipse.jdt.core:3.10.0-SNAPSHOT (/home/stephan/Downloads/org.eclipse.objectteams/org.eclipse.jdt.core/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact eclipse.jdt.core:eclipse.jdt.core:pom:4.4.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 14, column 11 -> [Help 2]
[ERROR]

Picture of the ERROR:

index.php/fa/18037/0/
Re: How to build OT/ODTD and Equinox from GIT repository? [message #1339988 is a reply to message #1339774] Wed, 07 May 2014 23:03 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1535
Registered: July 2009
Senior Member
Hi Steve,

A small update first regarding OT/J & Java 8:
- Luna M7 contains a version of OTDT that passes all compiler tests incl. those for Java 8
- Running the resulting programs is disabled for some tests in 1.8 mode
- The announced alternative weaver is in place and shipped with the OTDT, but it still causes some regressions in tests, so it is recommended only for initial tests at this point. I hope to get it complete for Luna GA, so that we can re-anable all disabled runtime tests.

To your request:
- OTDT is not yet configured for building with Maven,
- The fact that in some projects you find a pom is simply due to these projects being forks from JDT
- The build we're using on the server is documented in http://wiki.eclipse.org/OTBuilding but I doubt that you really want to run that at home Smile
- I just realized we don't even publish a psf file for easy importing of all relevant projects, I'll fix this in a minute.

With that setup you'll be able to compile everything in the IDE and also exporting a p2 repository should work in interactive mode.

Would that be good enough for you?

cheers,
Stephan


Re: How to build OT/ODTD and Equinox from GIT repository? [message #1339997 is a reply to message #1339988] Wed, 07 May 2014 23:08 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1535
Registered: July 2009
Senior Member
one more thing: not sure if obvious: compiling all of the OTDT requires running the OTDT as your IDE Smile
Due to recent changes for work on master you should actually install the fresh OTDT 2.3 M7:
- download Eclipse SDK 4.4 M7 from http://download.eclipse.org/eclipse/downloads/drops4/S-4.4M7-201405010200/
- install OTDT from http://download.eclipse.org/objectteams/updates/ot2.3-m7

S.
Re: How to build OT/ODTD and Equinox from GIT repository? [message #1340055 is a reply to message #1339997] Wed, 07 May 2014 23:41 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1535
Registered: July 2009
Senior Member
I just updated https://wiki.eclipse.org/OTDevelopmentSetup and added links to the .psf files (see "Simple checkout").

HTH,
Stephan
Re: How to build OT/ODTD and Equinox from GIT repository? [message #1747030 is a reply to message #1340055] Tue, 08 November 2016 16:15 Go to previous messageGo to next message
Lars Schütze is currently offline Lars SchützeFriend
Messages: 38
Registered: March 2012
Location: Germany
Member

Hi Stephan,

I just installed a fresh Eclipse for Eclipse Committers Neon and the respective OTDT. I imported the two mentioned .psf files but I still have some errors. (see attached image). I am using Java 8 (1.8.0_111).

Maybe you can point me to what is wrong. The OTDevelopmentSetup Wiki page says that everything should be fine now which isn't.

Regards,
Lars
Re: How to build OT/ODTD and Equinox from GIT repository? [message #1747039 is a reply to message #1747030] Tue, 08 November 2016 18:53 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1535
Registered: July 2009
Senior Member
Lars Schuetze wrote on Tue, 08 November 2016 17:15
I just installed a fresh Eclipse for Eclipse Committers Neon and the respective OTDT. I imported the two mentioned .psf files but I still have some errors. (see attached image).


This most likely is a matter of not exactly matching versions of your IDE vs. the sources you've checked out. You may want to check by switching to branch maintenance/OTDT_2.5.x which should hopefully be compilable in OTDT Neon.

I'll do some quick experiments and will be back with more definite answers, soon,
Stephan

Re: How to build OT/ODTD and Equinox from GIT repository? [message #1747042 is a reply to message #1747039] Tue, 08 November 2016 19:26 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1535
Registered: July 2009
Senior Member
Confirmed: I got all projects from otdt.psf to compile without "significant" errors in both configurations:

  • using OTDT Neon and the branch maintenance/OTDT_2.5.x from git
  • using OTDT Oxygen M3 and branch master from git

Two errors are still shown:
An API baseline has not been set for the current workspace.
Execution environment references were not checked for 'org.eclipse.jdt.core' because no environment descriptions are installed.


These can be ignored for now.

I still need to check the state of affairs regarding otdt-all-tests.psf.

Stephan
Re: How to build OT/ODTD and Equinox from GIT repository? [message #1747045 is a reply to message #1747042] Tue, 08 November 2016 19:55 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1535
Registered: July 2009
Senior Member
otdt-all-tests.psf also "basically" works, if versions of IDE and sources match.
I found that a few test projects, which use OT/J for their own implementation, didn't properly configure the weaving scheme (should be OTDRE), which caused trouble in a workspace build. Will fix that.
If you manually switch these projects to OTDRE you should be able to get past most compile errors.
Three errors re "Access Restriction" remain in project o.e.o.otdt.apt. I'll look into those soonish, too.

best,
Stephan
Re: How to build OT/ODTD and Equinox from GIT repository? [message #1747072 is a reply to message #1747045] Wed, 09 November 2016 08:55 Go to previous messageGo to next message
Lars Schütze is currently offline Lars SchützeFriend
Messages: 38
Registered: March 2012
Location: Germany
Member

Thank you very much. Now I have switched all referenced git repositories from Eclipse into R_4_6 maintenance, too and installed the "API Execution Tools Environment Descriptions" and set the baseline to the current installation and all errors are gone.
Re: How to build OT/ODTD and Equinox from GIT repository? [message #1747099 is a reply to message #1747072] Wed, 09 November 2016 12:45 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1535
Registered: July 2009
Senior Member
Lars Schuetze wrote on Wed, 09 November 2016 09:55
Thank you very much. Now I have switched all referenced git repositories from Eclipse into R_4_6 maintenance, too and installed the "API Execution Tools Environment Descriptions" and set the baseline to the current installation and all errors are gone.


Great, thanks for confirming.
Previous Topic:Lifting and Roles - Graph Product Line example
Next Topic:Exported Product does not run ObjectTeams
Goto Forum:
  


Current Time: Tue Jan 16 19:35:15 GMT 2018

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

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