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

Equinox/p2/Build

< Equinox‎ | p2

Building p2

Clone the rt.equinox.p2 Git repository (see developer resources) and execute the following command in the root of the source tree:

mvn clean verify -Pbuild-individual-bundles -DskipTests=false

Getting the eclipse-platform-parent

In case the build fails due to a "non-resolvable parent POM", the eclipse-platform-parent is not available from any of the Maven repositories in your build environment. You can make the eclipse-platform-parent and other required Maven artifacts available by adding the following configuration in your settings.xml:

<profiles>
   <profile>
      <id>cbi</id>
      <pluginRepositories>
         <pluginRepository>
            <id>eclipse.releases</id>
            <url>https://repo.eclipse.org/content/repositories/releases/</url>
            <snapshots>
               <enabled>false</enabled>
            </snapshots>
         </pluginRepository>
         <pluginRepository>
            <id>eclipse.snapshots</id>
            <url>https://repo.eclipse.org/content/repositories/snapshots/</url>
         </pluginRepository>
      </pluginRepositories>
      <repositories>
         <repository>
            <id>eclipse.releases</id>
            <url>https://repo.eclipse.org/content/repositories/releases/</url>
            <snapshots>
               <enabled>false</enabled>
            </snapshots>
         </repository>
         <repository>
            <id>eclipse.snapshots</id>
            <url>https://repo.eclipse.org/content/repositories/snapshots/</url>
         </repository>
      </repositories>
   </profile>
</profiles>

Either activate the above profile by adding -Pcbi to the Maven command, or by adding the following additional settings.xml configuration:

<activeProfiles>
   <activeProfile>cbi</activeProfile>
</activeProfiles>

Further information

Copyright © Eclipse Foundation, Inc. All Rights Reserved.