Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install a basic Eclipse distribution in a properly named folder, e.g. eclipse_4.2.1 or eclipse_4.3_modeling.
  2. Install additional features as described in Getting Eclipse.
  3. Install the delta pack necessary to build products for other platforms.
  4. Update /home/java/eclipse to point to the new installation.
  5. Copy the installation into a new directory and copy all plugins and features of the delta pack into its plugins and features folders.
    Produce a P2 reference repository for the automatic Maven build to use. To do that, execute the following script with reasonable parameters

    Code Block
    languagebash
    #!/bin/bash
    if ([ $# -lt 3 ] || [ $# -gt 4 ])
    then
      echo "Usage: $0 [ECLIPSE_INSTALLATION] [TARGET_DIR] [REPOSITORY_NAME] [SOURCE_DIR]?"
    else
      ECLIPSE_DIR=$1    # e.g. /home/java/eclipse-modeling-4.14.1/
      TARGET_DIR=$2     # e.g. /home/java/public_html/repository/
      REPO_NAME=$3      # e.g. luna411luna441
      if [ $# -eq 3 ]
      then
        SOURCE_DIR=$ECLIPSE_DIR
      else
        SOURCE_DIR=$4
      fi
      CMD="java -jar $ECLIPSE_DIR/plugins/org.eclipse.equinox.launcher_*.jar \
           -application org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher \
           -metadataRepository file:$TARGET_DIR/$REPO_NAME \
           -artifactRepository file:$TARGET_DIR/$REPO_NAME \
           -source $SOURCE_DIR \
           -configs any.any.any \
           -compress \
           -publishArtifacts"
      echo $CMD
      eval $CMD
    fi
  6. Move the repository to our kieler user's public_html/repository/ directory.
  7. Download the respective eclipse delta pack and create a P2 Repository for it as in 5. 
  8. Move the delta pack repository to public_html/repository/<eclipse_release>_delta/
  9. 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.

...