Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonah Graham2019-07-16 15:11:49 -0400
committerJonah Graham2019-07-24 19:13:44 -0400
commit055349a7348a4dc5791830f1f149ede063f980a0 (patch)
treea2634c00e96ded671c55c1a42ebc6cabf24666f7
parentf78158904b16abcb7731c5904a5750edb5bea5da (diff)
downloadorg.eclipse.cdt-055349a7348a4dc5791830f1f149ede063f980a0.tar.gz
org.eclipse.cdt-055349a7348a4dc5791830f1f149ede063f980a0.tar.xz
org.eclipse.cdt-055349a7348a4dc5791830f1f149ede063f980a0.zip
Bug 548526: Enable individual mvn projects to be built
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 7e9267f959..94f0bd983c 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-09</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>
@@ -299,6 +300,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>
@@ -309,6 +318,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>
@@ -571,14 +624,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