Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] Multi-project dependencies problem

Hello,

 

We are currently mavenizing our RCP (e3) application with tycho.

Our project consists of about 15 plugin projects.

As it was not  developed in a modular way, it consists mainly of one feature containing all the code.

We have two questions:

 

1.       We’ve created an Aggregator project (which is the parent of all pom files), a repository project containing our product file, a feature project containing our unique feature and a target project containing our target definition file. After a eclipse:eclipse goal we get a lot of referenced librairies above the one defined in the pom.xml which seem to duplicate with the Plugin Librairies.

2.       One project is failing maven’s compilation because maven doesn’t seem to find the referenced library for logging which has been downloaded and added to the .classpath after the eclipse:eclipse goal, no errors are shown in Eclipse but maven still fails.

 

We are running a mvn clean install per project in order to understand the failure.

Any help would be greatly appreciated.

 

Here’s our parent’s pom file:

 

<?xml version="1.0" encoding="UTF-8"?>

<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>Myosotis</groupId>

                <artifactId>MyosotisAggregator</artifactId>

                <version>1.0.0-SNAPSHOT</version>

                <packaging>pom</packaging>

 

                <prerequisites>

                               <maven>3.0</maven>

                </prerequisites>

                <properties>

                               <tycho-version>0.17.0</tycho-version>

                               <tycho-groupid>org.eclipse.tycho</tycho-groupid>

                </properties>

 

                <repositories>

                               <repository>

                                               <id>eclipse-juno</id>

                                               <layout>p2</layout>

                                               <url>http://download.eclipse.org/releases/juno</url>

                               </repository>

                </repositories>

 

                <build>

                               <plugins>

                                               <plugin>

                                                               <groupId>${tycho-groupid}</groupId>

                                                               <artifactId>tycho-compiler-plugin</artifactId>

                                                               <version>${tycho-version}</version>

                                                               <configuration>

                                                                              <source>1.6</source>

                                                                              <target>1.6</target>

                                                                              <encoding>UTF-8</encoding>

                                                               </configuration>

                                               </plugin>

 

                                               <plugin>

                                                               <groupId>${tycho-groupid}</groupId>

                                                               <artifactId>tycho-maven-plugin</artifactId>

                                                               <version>${tycho-version}</version>

                                                               <extensions>true</extensions>

                                               </plugin>

 

                                               <plugin>

                                                               <groupId>org.eclipse.tycho</groupId>

                                                               <artifactId>target-platform-configuration</artifactId>

                                                               <version>${tycho-version}</version>

                                                               <configuration>

                                                                              <target>

                                                                                              <artifact>

                                                                                                              <groupId>Myosotis</groupId>

                                                                                                              <artifactId>MyosotisTarget</artifactId>

                                                                                                              <version>1.0.0-SNAPSHOT</version>

                                                                                                              <classifier>Myosotis</classifier>

                                                                                              </artifact>

                                                                              </target>

                                                                              <resolver>p2</resolver>

                                                                              <pomDependencies>consider</pomDependencies>

                                                                              <environments>

                                                                                              <environment>

                                                                                                              <os>linux</os>

                                                                                                              <ws>gtk</ws>

                                                                                                              <arch>x86</arch>

                                                                                              </environment>

                                                                                              <environment>

                                                                                                              <os>win32</os>

                                                                                                              <ws>win32</ws>

                                                                                                              <arch>x86</arch>

                                                                                              </environment>

                                                                                              <environment>

                                                                                                              <os>linux</os>

                                                                                                              <ws>gtk</ws>

                                                                                                              <arch>x86_64</arch>

                                                                                              </environment>

                                                                                              <environment>

                                                                                                              <os>win32</os>

                                                                                                              <ws>win32</ws>

                                                                                                              <arch>x86_64</arch>

                                                                                              </environment>

                                                                              </environments>

                                                               </configuration>

                                               </plugin>

 

                               </plugins>

                </build>

 

                <dependencyManagement>

                               <dependencies>

                                               <dependency>

                                                               <groupId>org.apache.directory.studio</groupId>

                                                               <artifactId>org.apache.commons.logging</artifactId>

                                                               <version>1.1.1</version>

                                               </dependency>

                                               <dependency>

                                                               <groupId>org.apache.directory.studio</groupId>

                                                               <artifactId>org.apache.logging.log4j</artifactId>

                                                               <version>1.2.17</version>

                                               </dependency>

                                               <dependency>

                                                               <groupId>com.sun.xml.bind</groupId>

                                                               <artifactId>jaxb-impl</artifactId>

                                                               <version>2.2.7-b58</version>

                                               </dependency>

                                               <dependency>

                                                               <groupId>com.jgoodies</groupId>

                                                               <artifactId>looks</artifactId>

                                                               <version>2.2.0</version>

                                               </dependency>

                                               <dependency>

                                                               <groupId>batik</groupId>

                                                               <artifactId>batik-parser</artifactId>

                                                               <version>1.6-1</version>

                                               </dependency>

                                               <dependency>

                                                               <groupId>org.jdom</groupId>

                                                               <artifactId>jdom</artifactId>

                                                               <version>1.1</version>

                                               </dependency>

                                               <dependency>

                                                               <groupId>batik</groupId>

                                                               <artifactId>batik-dom</artifactId>

                                                               <version>1.6-1</version>

                                               </dependency>

                               </dependencies>

                </dependencyManagement>

 

                <modules>

                               <module>../MyosotisTarget</module>

                               <module>../MyosotisRepository</module>

                               <module>../MyosotisFeature</module>

                               <module>…. </module>

                </modules>

</project>

 

Tanguy Mezzano


Back to the top