[eclipse-poky] [PATCH 13/23] Add org.yocto.sdk.feature.group maven support

Tim Orling timothy.t.orling at linux.intel.com
Thu Feb 8 23:17:47 PST 2018


Builds the SDK feature group
Adds the tycho-source-feature maven plugin which
automatically generates source feature groups

Signed-off-by: Tim Orling <timothy.t.orling at linux.intel.com>
---
 features/org.yocto.sdk/feature.xml |  3 ++-
 features/org.yocto.sdk/pom.xml     | 14 ++++++++++++++
 pom.xml                            | 21 +++++++++++++++++++++
 3 files changed, 37 insertions(+), 1 deletion(-)
 create mode 100755 features/org.yocto.sdk/pom.xml

diff --git a/features/org.yocto.sdk/feature.xml b/features/org.yocto.sdk/feature.xml
index f0f4e383c91..33185ada68a 100644
--- a/features/org.yocto.sdk/feature.xml
+++ b/features/org.yocto.sdk/feature.xml
@@ -32,10 +32,11 @@
       <update label="%updateSiteName" url="http://yoctoproject.org/downloads/eclipse-plugin/"/>
    </url>
 
+<!--
    <includes
          id="org.yocto.sdk.source"
          version="0.0.0"/>
-
+-->
    <requires>
       <import plugin="org.eclipse.core.runtime"/>
       <import plugin="org.eclipse.osgi"/>
diff --git a/features/org.yocto.sdk/pom.xml b/features/org.yocto.sdk/pom.xml
new file mode 100755
index 00000000000..34d307ce9af
--- /dev/null
+++ b/features/org.yocto.sdk/pom.xml
@@ -0,0 +1,14 @@
+<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/xsd/maven-4.0.0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>org.yocto.features</groupId>
+  <artifactId>org.yocto.sdk</artifactId>
+  <packaging>eclipse-feature</packaging>
+  <name>Yocto Project SDK (Feature)</name>
+  <description>Yocto Project SDK Toolchain feature group</description>
+  <parent>
+	<groupId>org.yocto</groupId>
+	<artifactId>poky-parent</artifactId>
+	<version>1.4.1-SNAPSHOT</version>
+	<relativePath>../../pom.xml</relativePath>
+  </parent>
+</project>
diff --git a/pom.xml b/pom.xml
index 389fa1fd66d..30f509be1d5 100755
--- a/pom.xml
+++ b/pom.xml
@@ -48,6 +48,7 @@
 		<module>plugins/org.yocto.remote.utils</module>
 		<module>plugins/org.yocto.sdk.remotetools</module>
 		<module>plugins/org.yocto.doc.user</module>
+		<module>features/org.yocto.sdk</module>
 <!--
 		<module>releng/org.yocto.sdk.target.ui.tests</module>
 -->
@@ -183,6 +184,26 @@
 							</execution>
 						</executions>
 					</plugin>
+					<!-- enable source feature generation -->
+					<plugin>
+						<groupId>org.eclipse.tycho.extras</groupId>
+						<artifactId>tycho-source-feature-plugin</artifactId>
+						<version>${tycho.extras.version}</version>
+						<executions>
+							<execution>
+								<id>source-feature</id>
+								<phase>package</phase>
+								<goals>
+									<goal>source-feature</goal>
+								</goals>
+							</execution>
+						</executions>
+						<configuration>
+							<excludes>
+							<!-- provide plug-ins not containing any source code -->
+							</excludes>
+						</configuration>
+					</plugin>
 					<plugin>
 						<groupId>org.eclipse.tycho</groupId>
 						<artifactId>tycho-p2-plugin</artifactId>
-- 
2.13.6




More information about the eclipse-yocto mailing list