Hello Tycho Team,
Thanks for the prompt reply, but unfortunately that did not
solve our problem. I have added a few more tycho related plugins in the master
module, But we are still getting the same error as before. Please find a
detailed project layout as described below.
com.abc.package.master (Master Module)
|_category.xml
|__ pom.xml
1] Master pom.xml:
<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>
<groupId>com.abc.package.master</groupId>
<artifactId>master</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
<module>../com.abc.package.masterP2</module>
</modules>
<properties>
<tycho-version>0.24.0</tycho-version>
</properties>
<repositories>
<repository>
<id>xyz</id>
<url>P2-repo url</url>
<layout>p2</layout>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.0.22</version>
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.eclipse.tycho.extras</groupId>
<artifactId>tycho-source-feature-plugin</artifactId>
<version>${tychoExtrasVersion}</version>
<executions>
<execution>
<id>source-feature</id>
<phase>package</phase>
<goals>
<goal>source-feature</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-plugin</artifactId>
<version>${tychoVersion}</version>
<executions>
<execution>
<id>attached-p2-metadata</id>
<phase>package</phase>
<goals>
<goal>p2-metadata</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<archiveSite>true</archiveSite>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<version>${tycho-version}</version>
<configuration>
<resolver>p2</resolver>
<pomDependencies>consider</pomDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-repository-plugin</artifactId>
<version>0.24.0</version>
<configuration>
<includeAllDependencies>true</includeAllDependencies>
</configuration>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-publisher-plugin</artifactId>
<version>0.24.0</version>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-source-plugin</artifactId>
<version>${tychoVersion}</version>
<executions>
<execution>
<id>plugin-source</id>
<goals>
<goal>plugin-source</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>0.24.0</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-compiler-plugin</artifactId>
<version>${tychoVersion}</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.tycho</groupId>
<artifactId>maven-osgi-packaging-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<deployableFeature>true</deployableFeature>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
2] Category.xml
<?xml version="1.0"
encoding="UTF-8"?>
<site>
<bundle
id="com.abc.package.def.child1"><category
name="AllSources"/></bundle>
<bundle id="com.abc.package.def.child2"><category
name="AllSources"/></bundle>
<bundle
id="com.abc.package.masterp2"><category
name="AllSources"/></bundle>
</site>
com.daimler.epdm.masterp2 (Module for generating p2,
packaging type *eclipse-repository*)
|_ pom.xml
1] pom.xml
<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>
<parent>
<groupId>com.abc.package.master</groupId>
<artifactId>master</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>..\com.abc.package.master</relativePath>
</parent>
<groupId>com.abc.package.masterP2</groupId>
<artifactId>com.abc.package.masterP2</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>eclipse-repository</packaging>
*Here getting error: Project build error: Unknown packaging: eclipse-repository*
com.abc.package.def.child1
|_src
|_META-INF
| |_MANIFEST.MF (Information about Import packages,
Bundle Version, etc.)
|_pom.xml
1] pom.xml for Child1
<?xml version="1.0"
encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.abc.package.master</groupId>
<artifactId>master</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>..\com.abc.package.master</relativePath>
</parent>
<groupId>com.abc.package.def.child1</groupId>
<artifactId>com.abc.package.def.child1</artifactId>
<version>0.7.0</version>
<packaging>eclipse-plugin</packaging>
(*Here getting error: Project build error: Unknown packaging: eclipse-plugin*)
<dependencies>
<dependency>
Module Specific dependencies
</dependency>
<dependency>
Module specific dependencies
</dependency>
</dependencies>
</project>
com.abc.package.def.child2 (has similar structure as
child1)
Kindly let us know if we are missing some configuration or
plugin related to tycho, we need this to work and we are stuck at the same
issue since quite a while. Any help from your side would be appreciated.
Thanks and Regards,
-Vishal Poptani
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.