Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] POM-first and eclipse

This limitation and a workaround are documented in [1]

[1] http://wiki.eclipse.org/Tycho/How_Tos/Dependency_on_pom-first_artifacts#Pom-first_dependencies_of_manifest-first_projects_are_not_fully_transitive

--
Regards,
Igor

On 2013-05-16 3:57 AM, Artem Grebenkin wrote:
Hi Igor,

thanks for reply. I have Tycho Project Configuration already installed.
As a starting point I'm using tycho.demo examples from this repository:
http://git.eclipse.org/gitroot/tycho/org.eclipse.tycho-demo.git, and
here is my configuration:

*Parent POM:*

<?xmlversion="1.0"encoding="UTF-8"?>

<project>

<modelVersion>4.0.0</modelVersion>


<prerequisites>

<maven>3.0</maven>

</prerequisites>

<groupId>tycho.demo.itp02</groupId>

<artifactId>itp02-parent</artifactId>

<version>1.0.0-SNAPSHOT</version>

<packaging>pom</packaging>


<properties>

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

</properties>

   <repositories>

<repository>

<id>helios</id>

<layout>p2</layout>

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

</repository>

   </repositories>

<modules>

<module>tycho.demo.itp02.bundle</module>

<module>tycho.demo.itp02.bundle.tests</module>

</modules>


<dependencies>

<dependency>

<groupId>tycho.demo.itp02</groupId>

<artifactId>pomfirst-bundle</artifactId>

<version>1.0.0-SNAPSHOT</version>

</dependency>

<dependency>

<groupId>tycho.demo.itp02</groupId>

<artifactId>pomfirst-thirdparty</artifactId>

<version>1.0.0-SNAPSHOT</version>

</dependency>

<dependency>

       <groupId>com.fasterxml.jackson.core</groupId>

       <artifactId>jackson-core</artifactId>

<version>2.2.1</version>

</dependency>

</dependencies>


<build>

<plugins>

<plugin>

<groupId>org.eclipse.tycho</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>

<pomDependencies>consider</pomDependencies>

</configuration>

</plugin>

</plugins>

</build>

</project>


*Child POM:*

<?xmlversion="1.0"encoding="UTF-8"?>

<projectxmlns="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>tycho.demo.itp02</groupId>

<artifactId>itp02-parent</artifactId>

<version>1.0.0-SNAPSHOT</version>

</parent>


<artifactId>tycho.demo.itp02.bundle.tests</artifactId>

<packaging>eclipse-test-plugin</packaging>

</project>


*Child MANIFEST:*


Manifest-Version: 1.0

Bundle-ManifestVersion: 2

Bundle-Name: bundle Plug-in

Bundle-SymbolicName: tycho.demo.itp02.bundle.tests

Bundle-Version: 1.0.0.qualifier

Require-Bundle: org.junit4;bundle-version="4.0.0",

  org.eclipse.core.runtime,

  com.fasterxml.jackson.core.jackson-core

Import-Package: tycho.demo.itp02.bundle


As you can see I have added only com.fasterxml.jackson.core to
dependencies node and to Require-Bundle in MANIFEST.MF. Eclipse marks
this line in MANIFEST red and shows: Bundle
'com.fasterxml.jackson.core.jackson-core' cannot be resolved. Am I doing
something wrong?

Thanks,
Artem.

On Wednesday, 15 May 2013 at 23:10 , Igor Fedorenko wrote:

Install m2e-tycho integration, it supports pom-first projects.


http://nexus.tesla.io:8081/nexus/content/sites/m2e.extras/m2eclipse-tycho/0.7.0/N/0.7.0.201302171659/

--
Regards,
Igor

On 2013-05-15 4:28 PM, Artem Grebenkin wrote:
Hi there,

POM-first is very nice approach to manage project dependencies and it
resolve all dependencies perfect while building the project. But
unfortunately Eclipse can't resolve dependencies introduced in POM, and
shows an error in MANIFEST file. Is there any workaround?

Regards,
Artem.


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx <mailto:tycho-user@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/tycho-user



_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top