Skip to content

Commit

Permalink
Bug #459 Add a target file for Embed CDT
Browse files Browse the repository at this point in the history
Using a target file enables a way to share consistent plug-ins in
the runtime Eclipse instance across developers and ensures that
the target platform that Maven Tycho uses is the same as what is
used in Eclipse.

There is no requirement to use the target platform in the IDE, the
current method of installing all the dependencies in the development
Eclipse instance is ok.
  • Loading branch information
jonahgraham committed Jan 8, 2021
1 parent 50e30b8 commit eea32dd
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 15 deletions.
24 changes: 9 additions & 15 deletions parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,21 +63,6 @@
</license>
</licenses>

<repositories>
<repository>
<id>eclipse</id>
<layout>p2</layout>
<!-- Explicit reference to 2020-09 with CDT 10.0.0 -->
<!-- (Do a run without version and retain the most recent one) -->
<!-- <url>https://download.eclipse.org/releases/neon/201705151400/</url> -->
<url>https://download.eclipse.org/releases/2020-09/202009161000/</url>
</repository>
<repository>
<id>license-feature</id>
<url>http://download.eclipse.org/cbi/updates/license/</url>
<layout>p2</layout>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<!-- Eclipse provided plug-ins for signing JARs with Eclipse infra -->
Expand Down Expand Up @@ -145,6 +130,15 @@
<arch>x86_64</arch>
</environment>
</environments>

<!-- Use the same target file that can be used within Eclipse -->
<target>
<artifact>
<groupId>org.eclipse.embedcdt</groupId>
<artifactId>org.eclipse.embedcdt.target-platform</artifactId>
<version>6.1.0-SNAPSHOT</version>
</artifact>
</target>
</configuration>
</plugin>
<plugin>
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
<module>features/org.eclipse.embedcdt.doc.user-feature</module>

<module>repositories/org.eclipse.embedcdt-repository</module>
<module>target-platform</module>

<!-- Arm specific modules. -->
<module>branding/org.eclipse.embedcdt.managedbuild.cross.arm-branding</module>
Expand Down
15 changes: 15 additions & 0 deletions target-platform/org.eclipse.embedcdt.target-platform.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?pde version="3.8"?>
<target name="embedcdt">
<locations>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="https://download.eclipse.org/releases/2020-09/202009161000"/>
<unit id="org.eclipse.cdt.feature.group" version="0.0.0"/>
<unit id="org.eclipse.cdt.debug.gdbjtag.feature.group" version="0.0.0"/>
</location>
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
<repository location="http://download.eclipse.org/cbi/updates/license/"/>
<unit id="org.eclipse.license.feature.group" version="0.0.0"/>
</location>
</locations>
</target>
27 changes: 27 additions & 0 deletions target-platform/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!--
Copyright (c) 2021 Kichwa Coders Canada Inc.
This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.eclipse.embedcdt</groupId>
<artifactId>org.eclipse.embedcdt.parent</artifactId>
<version>6.1.0-SNAPSHOT</version>
<relativePath>../parent/pom.xml</relativePath>
</parent>

<groupId>org.eclipse.embedcdt</groupId>
<artifactId>org.eclipse.embedcdt.target-platform</artifactId>
<version>6.1.0-SNAPSHOT</version>
<packaging>eclipse-target-definition</packaging>

</project>

0 comments on commit eea32dd

Please sign in to comment.