...
- Install a basic Eclipse distribution in a properly named folder, e.g.
eclipse_4.2.1
oreclipse_4.3_modeling
. - Install additional features as described in Getting Eclipse.
- Install the delta pack necessary to build products for other platforms.
- Update
/home/java/eclipse
to point to the new installation. Copy the installation into a new directory and copy all plugins and features of the delta pack into its
plugins
andfeatures
folders.
Produce a P2 reference repository for the automatic Maven build to use. To do that, execute something similar to the following command in/home/java
:Code Block the following script with reasonable parameters
Code Block #!/bin/bash if [ $# -ne 3 ] then echo "Usage: $0 [ECLIPSE_INSTALLATION] [TARGET_DIR] [REPOSITORY_NAME]" else ECLIPSE_DIR=$1 # e.g. /home/java/eclipse-modeling-4.1.1/ TARGET_DIR=$2 # e.g. /home/java/public_html/repository/ REPO_NAME=$3 # e.g. luna411 CMD="java -jar <eclipse$ECLIPSE_directory>DIR/plugins/org.eclipse.equinox.launcher_*.jar \ -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher \ -metadataRepository file:/home/java/<repository_name>$TARGET_DIR/$REPO_NAME \ -artifactRepository file:/home/java/<repository_name>$TARGET_DIR/$REPO_NAME \ -source /home/java/<eclipse_directory>/$ECLIPSE_DIR \ -configs any.any.any -compress -publishArtifacts" echo $CMD eval $CMD fi
- Move the repository to our
kieler
user'spublic_html/repository/
directory. - Update the reference repository location in the parent POM files of the source code repositories. Also update the target platform definition files in the
config
repository.
Note on Windows
In case you want to setup the P2 repository on a Windows system, adapt the file paths as follows and take care to not append a file:\\ after the -source
argument.
...