Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 393926

Summary: [CBI] execute the maven build
Product: [Eclipse Project] Platform Reporter: Paul Webster <pwebster>
Component: RelengAssignee: Paul Webster <pwebster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 4.2.1   
Target Milestone: 4.2.2   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 372792, 393922    

Description Paul Webster CLA 2012-11-08 15:49:09 EST
http://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/tree/scripts/build.sh?h=R4_2_maintenance

The script contains a couple of steps to run a maven build on eclipse.org, but some minimum requirements:

set JAVA_HOME to an Oracle JDK (1.7 is fine)
set MAVEN_OPTS=-Xmx2048m

Run with:

mvn -X \
clean install \
-Peclipse-sign \
-Pbree-libs \
-Dmaven.test.skip=true \
-Dmaven.repo.local=<someLocalDir>

The -X is necessary to turn on the p2 comparator

someLocalDir could be in the buildDir if we don't mind re-downloading any of the maven/tycho/other plugins and bundles and make sure if we use snapshots we're getting the latest.