Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "WTP/Build/CBI Build"
Line 4: | Line 4: | ||
* git installed and configured | * git installed and configured | ||
* maven installed and configured | * maven installed and configured | ||
− | * Java Virtual Machines 1.4, 1.5, 1.6 | + | * Java Virtual Machines 1.4, 1.5, 1.6, 1.7, and 1.8 |
== Git clone the repo == | == Git clone the repo == | ||
Line 63: | Line 63: | ||
<configuration> | <configuration> | ||
<jdkHome>/opt/oracle/jdk1.7.0_25/jre</jdkHome> | <jdkHome>/opt/oracle/jdk1.7.0_25/jre</jdkHome> | ||
+ | </configuration> | ||
+ | </toolchain> | ||
+ | <toolchain> | ||
+ | <type>jdk</type> | ||
+ | <provides> | ||
+ | <id>JavaSE-1.8</id> | ||
+ | </provides> | ||
+ | <configuration> | ||
+ | <jdkHome>/opt/oracle/jdk1.8.0_112/jre</jdkHome> | ||
</configuration> | </configuration> | ||
</toolchain> | </toolchain> | ||
Line 77: | Line 86: | ||
− | Note: Due to some current issues with JSF unit tests in WTP build. You need to tell Maven to ignore test failures by passing these parameters: '''-Dmaven.test.failure.ignore=true -Dmaven.test.error.ignore=true''' | + | Note: Due to some current [http://bugs.eclipse.org/431853 issues]with JSF unit tests in WTP build. You need to tell Maven to ignore test failures by passing these parameters: '''-Dmaven.test.failure.ignore=true -Dmaven.test.error.ignore=true''' |
===Individual Bundle Build=== | ===Individual Bundle Build=== | ||
It is possible to build individual bundles instead of the whole project, this specially useful for committers to test the compilation of their components without go thru the whole product build process. | It is possible to build individual bundles instead of the whole project, this specially useful for committers to test the compilation of their components without go thru the whole product build process. | ||
− | * Navigate to the component's directory you want to build (assuming you have | + | * Navigate to the component's directory you want to build (assuming you have cloned webtools.releng.aggregator.git and your changes are ready to go) |
* Launch the individual build command: | * Launch the individual build command: | ||
<pre> | <pre> |
Revision as of 10:30, 30 March 2017
Contents
WTP CBI Build
Pre-requisites
- git installed and configured
- maven installed and configured
- Java Virtual Machines 1.4, 1.5, 1.6, 1.7, and 1.8
Git clone the repo
The repo for WTP's aggregator can be viewed here:
http://git.eclipse.org/c/webtools/webtools.releng.aggregator.git/
You can clone the repo by running:
git clone --recursive git://git.eclipse.org/gitroot/webtools/webtools.releng.aggregator.git
Build WTP with CBI
Setup
In order to build WTP you are required to setup BREE libraries. This means configuring a toolchains.xml file in your ~/.m2/toolchains.xml file.
Specifically for J2SE-1.4 you will require a copy of IBMJava2-142-SR13FP10.
The one I'm using is as follows:
<toolchains> <toolchain> <type>jdk</type> <provides> <id>J2SE-1.4</id> </provides> <configuration> <jdkHome>/opt/ibm/IBMJava2-142-SR13FP10/jre</jdkHome> </configuration> </toolchain> <toolchain> <type>jdk</type> <provides> <id>J2SE-1.5</id> </provides> <configuration> <jdkHome>/opt/oracle/jdk1.5.0_22/jre</jdkHome> </configuration> </toolchain> <toolchain> <type>jdk</type> <provides> <id>JavaSE-1.6</id> </provides> <configuration> <jdkHome>/opt/oracle/jdk1.6.0_45/jre</jdkHome> </configuration> </toolchain> <toolchain> <type>jdk</type> <provides> <id>JavaSE-1.7</id> </provides> <configuration> <jdkHome>/opt/oracle/jdk1.7.0_25/jre</jdkHome> </configuration> </toolchain> <toolchain> <type>jdk</type> <provides> <id>JavaSE-1.8</id> </provides> <configuration> <jdkHome>/opt/oracle/jdk1.8.0_112/jre</jdkHome> </configuration> </toolchain> </toolchains>
Build
To build WTP simply navigate to the directory where you cloned the repo and run:
mvn clean verify -Pbree-libs
Note: Due to some current issueswith JSF unit tests in WTP build. You need to tell Maven to ignore test failures by passing these parameters: -Dmaven.test.failure.ignore=true -Dmaven.test.error.ignore=true
Individual Bundle Build
It is possible to build individual bundles instead of the whole project, this specially useful for committers to test the compilation of their components without go thru the whole product build process.
- Navigate to the component's directory you want to build (assuming you have cloned webtools.releng.aggregator.git and your changes are ready to go)
- Launch the individual build command:
mvn -Pbuild-individual-bundles clean verify
Modifying the Base Repository
The base repository is the place from where all the WTP dependencies for the individual build will be pulled, in case you want to test the build against a different base repository (by default, it is the latest Integration build which is refreshed together with each promotion):
- Navigate to webtools.releng.aggregator/wtp-parent/pom.xml.
- Look for <webtools.buildSite>
- Update with the P2 repository you want to use as base.
NOTE: It is expected that you use one of the online WTP P2 repositories, and those contain repository and repositoryunittests directories. So, if you want use a different one the <webtools.buildSite>, <webtools.repository> and <webtools.testsRepository> must be updated accordingly.
- Save the changes.