Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "WTP/Build/CBI Build"

< WTP‎ | Build
(Build WTP with CBI)
(Build WTP with CBI)
Line 13: Line 13:
  
 
== Build WTP with CBI ==
 
== 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:
 +
 +
<pre>
 +
<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>
 +
</toolchains>
 +
</pre>
 +
 +
=== Build ===
  
 
To build WTP simply navigate to the directory where you cloned the repo and run:
 
To build WTP simply navigate to the directory where you cloned the repo and run:

Revision as of 11:12, 29 October 2013

WTP CBI Build

Git clone the repo

The repo for WTP's aggregator can be found here:

   http://git.eclipse.org/c/webtools/webtools.releng.aggregator.git/

You can git 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>
</toolchains>

Build

To build WTP simply navigate to the directory where you cloned the repo and run:

    mvn clean verify -Pbree-libs

Back to the top