Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2019-07-16 15:11:49 -0400
committerJonah Graham2019-07-17 09:17:20 -0400
commit8b95d7cdfca58f7fd2009e707670db0cccbf4a6d (patch)
tree7335432c2648ea01f1d1ab10fd6cbeb05b8661c5
parent4fe53bb05731260770eb8ba15cf63f73849be023 (diff)
downloadorg.eclipse.cdt-cdt_9_8.tar.gz
org.eclipse.cdt-cdt_9_8.tar.xz
org.eclipse.cdt-cdt_9_8.zip
Bug 548526: Enable individual mvn projects to be builtcdt_9_8
Although a little profile "magic" is needed, by adding -DuseSimrelRepo to the command line to enable and disable the correct profiles individual mvn projects can be built against the simrelRepo. This enables, for example, the ability to build the standalone debugger against the simrel repo without having to change how normal builds are done by using: mvn verify -DuseSimrelRepo -f debug/org.eclipse.cdt.debug.application.product A simrel p2 site can also be provided with -Dsimrel-site=<url> Change-Id: I45a636c3c1042bc2fbb6eea5129c6553027e92df
-rw-r--r--pom.xml61
1 files changed, 53 insertions, 8 deletions
diff --git a/pom.xml b/pom.xml
index a8bda741ab..3be1eb3ecd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,6 +21,7 @@
<cbi-plugins.version>1.1.5</cbi-plugins.version>
<sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
<cdt-site>http://ci.eclipse.org/cdt/job/cdt-master/lastSuccessfulBuild/artifact/releng/org.eclipse.cdt.repo/target/repository</cdt-site>
+ <simrel-site>https://download.eclipse.org/releases/2019-06</simrel-site>
<repo-path>tools/cdt/builds/master/nightly</repo-path>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.jacoco.reportPath>${project.basedir}/../../target/jacoco.exec</sonar.jacoco.reportPath>
@@ -295,6 +296,14 @@
<doclint>none</doclint>
</properties>
</profile>
+ <!--
+ Individual p2 repos can be turned on and off to allow building CDT, or parts of CDT against
+ different target platforms easily.
+ For example, you can:
+ - test CDT against a pre-built CDT by using the cdtRepo profile.
+ - build the standalone rcp debugger against the latest simrel
+ mvn verify -DuseSimrelRepo -f debug/org.eclipse.cdt.debug.application.product
+ -->
<profile>
<id>cdtRepo</id>
<repositories>
@@ -305,6 +314,50 @@
</repository>
</repositories>
</profile>
+ <!-- See comment above cdtRepo profile -->
+ <profile>
+ <id>simrelRepo</id>
+ <activation>
+ <property>
+ <name>useSimrelRepo</name>
+ </property>
+ </activation>
+ <repositories>
+ <repository>
+ <id>simrel.repo</id>
+ <url>${simrel-site}</url>
+ <layout>p2</layout>
+ </repository>
+ </repositories>
+ </profile>
+ <!-- See comment above cdtRepo profile -->
+ <profile>
+ <id>defaultCdtTarget</id>
+ <activation>
+ <property>
+ <name>!useSimrelRepo</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <version>${tycho-version}</version>
+ <configuration>
+ <target>
+ <artifact>
+ <groupId>org.eclipse.cdt</groupId>
+ <artifactId>org.eclipse.cdt.target</artifactId>
+ <classifier>${target-platform}</classifier>
+ <version>1.0.0</version>
+ </artifact>
+ </target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
<profile>
<id>macosx</id>
<activation>
@@ -567,14 +620,6 @@
<arch>x86_64</arch>
</environment>
</environments>
- <target>
- <artifact>
- <groupId>org.eclipse.cdt</groupId>
- <artifactId>org.eclipse.cdt.target</artifactId>
- <classifier>${target-platform}</classifier>
- <version>1.0.0</version>
- </artifact>
- </target>
</configuration>
</plugin>
<plugin>

Back to the top