Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "CBI/Eclipse Platform Build"

< CBI
(New page: == Prerequisites == === SUN Java 1.6 === * SUN 1.6 JDK needs to be on PATH. * Verify correct version of java is used > igor@desktop:~$ java -version > java version "1.6.0_29" > Java(TM) ...)
 
m (EclipsePlatformCBIBuild moved to CBI/Eclipse Platform Build: Give CBI a place to live on the wiki)
(No difference)

Revision as of 14:05, 4 January 2012

Prerequisites

SUN Java 1.6

  • SUN 1.6 JDK needs to be on PATH.
  • Verify correct version of java is used

> igor@desktop:~$ java -version > java version "1.6.0_29" > Java(TM) SE Runtime Environment (build 1.6.0_29-b11) > Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02, mixed mode)

Maven 3.0.3

 create /opt/maven symlink so I can switch between different version
 easily
  • Do NOT use maven shipped with your linux distribution.
  • Verify correct maven version is used

> igor@desktop:~$ mvn -version > Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500) > Maven home: /opt/maven

"natives" p2 repository

This is a temporary workaround until we figure out how to build native binaries and bundles that wrap them

 mkdir -p /var/tmp/lts
 scp -r <userid>@build.eclipse.org:/home/data/users/cbi/natives \
   /var/tmp/lts/natives

cloning platform source tree

I setup single platform-aggregator git repository that references all required parts of the platform build is git submodules. The following command clones both the outer repository and all submodules

 git clone -b tycho-monolith-build --recurse-submodules \
  <userid>@dev.eclipse.org:/home/data/users/cbi/platform-aggregator.git

To update existing clone and all submodules

 git pull --recurse-submodules
 git submodule update

running the build

review maven settings.xml

To avoid getting hit by bug 365727 [1] and to make sure your local environment configuration does not interfere with LTS build, make sure build user account does not have maven settings.xml

> igor@desktop:~$ ls -l ~/.m2/settings.xml > ls: cannot access /home/igor/.m2/settings.xml: No such file or directory


give maven JVM more ram

 export MAVEN_OPTS=-Xmx512m


run the build

 mvn -f eclipse-parent/pom.xml \
   clean install \
   -Dmaven.repo.local=/var/tmp/lts/localrepo
 mvn clean install \
   -Dmaven.repo.local=/var/tmp/lts/localrepo -Dmaven.test.skip=true

With primed local repository, the build takes about 7 minutes on my 4+ years old linux desktop (core 2 duo @2.8GHz, SSD).

Packaged SDK zip files are located under

> TMP/org.eclipse.sdk.epp/target/products/

P2 repository

> TMP/org.eclipse.sdk.epp/target/repository


[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=365727

Back to the top