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

I think this question is answered here: http://stackoverflow.com/questions/12476451/dependencies-from-pom-xml-not-considered-by-eclipse-in-tycho-project

 

Regards

Tobias

 

From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Artem Grebenkin
Sent: Donnerstag, 16. Mai 2013 09:58
To: Tycho user list
Subject: Re: [tycho-user] POM-first and eclipse

 

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:

<?xml version="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:

 

<?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/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.

 

 

 

--

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 mailing list

 


Back to the top