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.
Difference between revisions of "Equinox/p2/Build"
Mn.mn.com.ua (Talk | contribs) m (→Clean up) |
(416676 document for external users; remove notes about the process of making the build possible) |
||
Line 1: | Line 1: | ||
− | == | + | == Building p2 == |
+ | Clone the rt.equinox.p2 Git repository (see [http://projects.eclipse.org/projects/rt.equinox.p2/developer developer resources]) and execute the following command in the root of the source tree: | ||
<pre> | <pre> | ||
− | + | mvn clean verify -Pbuild-individual-bundles -DskipTests=false | |
− | + | ||
− | mvn | + | |
</pre> | </pre> | ||
− | + | === 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 [http://maven.apache.org/settings.html settings.xml]: | ||
+ | |||
<pre> | <pre> | ||
− | + | <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> | ||
</pre> | </pre> | ||
− | + | Either activate the above profile by adding <code>-Pcbi</code> to the Maven command, or by adding the following additional settings.xml configuration: | |
− | + | <pre> | |
− | + | <activeProfiles> | |
− | + | <activeProfile>cbi</activeProfile> | |
− | + | </activeProfiles> | |
− | + | </pre> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | == | + | == Further information == |
− | + | * The p2 build can be executed with <code>-Pbree-libs</code>. See [[Platform-releng/Platform_Build#Using_BREE_Libs|Using BREE Libs]] for details. | |
− | # | + | * CI build server: https://hudson.eclipse.org/p2/ |
Latest revision as of 12:45, 8 January 2015
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
- The p2 build can be executed with
-Pbree-libs
. See Using BREE Libs for details. - CI build server: https://hudson.eclipse.org/p2/