Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

How To

Build an internal repository containing the plugin's from an Eclipse installation

This will create pom's for all the plugins from your Eclipse installation located at
/path/to/eclipse/install and deploy them to your internal repository external_free

mvn eclipse:make-artifacts \
  -DeclipseDir=/path/to/eclipse/install \
  -DdeployTo=external_free::default::scp://NUCLEUS/usr/local/www/default/maven2_repositories/external_free

The created pom.xml will also have dependencies on any plugins they require.

Add the Eclipse RCP artifacts to your internal repository

This will add the Eclipse RCP artifacts which you have downloaded and install them into your internal repository external_free so they can be shared.

Upload the eclipse-RCP-3.2-win32.zip

mvn deploy:deploy-file \
  -DrepositoryId=external_free \
  -Durl=scp://NUCLEUS/usr/local/www/default/maven2_repositories/external_free \
  -DgeneratePom=true \
  -Dpackaging=zip \
  -DgroupId=org.eclipse \
  -DartifactId=eclipse-RCP \
  -Dversion=3.2 \
  -Dclassifier=win32 \
  -Dfile=eclipse-RCP-3.2-win32.zip

Upload the eclipse-RCP-3.2-delta-pack.zip

mvn deploy:deploy-file \
  -DrepositoryId=external_free \
  -Durl=scp://NUCLEUS/usr/local/www/default/maven2_repositories/external_free \
  -DgeneratePom=true \
  -Dpackaging=zip \
  -DgroupId=org.eclipse \
  -DartifactId=eclipse-RCP \
  -Dversion=3.2 \
  -Dclassifier=delta-pack \
  -Dfile=eclipse-RCP-3.2-delta-pack.zip

Create an Eclipse RCP Target

Unpack the Eclipse RCP platform, delta pack and install any plugins that you need

  <build>
    <plugins>
      <plugin>
        <!-- Unpack the Eclipse RCP platform and delta pack -->
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <id>create-eclipse-target</id>
            <phase>validate</phase>
            <goals>
              <goal>unpack</goal>
            </goals>
            <configuration>
              <artifactItems>
                <artifactItem>
                  <groupId>org.eclipse</groupId>
                  <artifactId>eclipse-RCP</artifactId>
                  <version>3.2</version>
                  <classifier>win32</classifier>
                  <type>zip</type>
                </artifactItem>
                <artifactItem>
                  <groupId>org.eclipse</groupId>
                  <artifactId>eclipse-RCP</artifactId>
                  <version>3.2</version>
                  <classifier>delta-pack</classifier>
                  <type>zip</type>
                </artifactItem>
              </artifactItems>
              <outputDirectory>
                ${project.build.directory}
              </outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
      	<!-- Install all plugins that are dependencies of this pom -->
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <version>2.3-INTERNAL-r489210</version>
        <executions>
          <execution>
            <id>install-plugins</id>
            <phase>validate</phase>
            <goals>
              <goal>install-plugins</goal>
            </goals>
            <configuration>
              <eclipseDir>target/eclipse</eclipseDir>
            </configuration>
          </execution>
        </executions>
      </plugin>

Define as dependencies any plugins needed in the target platform

Add each plugin needed to be in the target platform as a dependency in the pom.xml file.

For example, suppose that org.eclipse.update.core_3.2.0.v20060605.jar needs to be included, then:

  <dependencies>
    <dependency>
      <groupId>org.eclipse.update</groupId>
      <artifactId>org.eclipse.update.core</artifactId>
      <version>3.2.0</version>
    </dependency>
  </dependencies>

This will also download all transitive dependent plugins.

  • No labels