Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Odd behaviour with pomDependencies=consider and a features's dependencies

Do you get build failure in the feature project or some other project
that requires the feature? The latter is explained in [1]. The former
will require small standalone reproducible test case.


[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-29 9:10 AM, Andreas Sewe wrote:
Hi all,

I am trying to build (with both Tycho 0.17 & 0.18) a feature that
contains a bundle available as a Maven-style dependency only [1]:

In my feature.xml:

   <plugin
         id="org.apache.camel.camel-test"
         download-size="0"
         install-size="0"
         version="0.0.0"
         unpack="false"/>

In my feature's pom.xml:

   <plugin>
     <groupId>org.eclipse.tycho</groupId>
     <artifactId>target-platform-configuration</artifactId>
     <version>${tycho-version}</version>
     <configuration>
       <pomDependencies>consider</pomDependencies>
     </configuration>
   </plugin>

   and

   <dependencies>
     <dependency>
       <groupId>org.apache.camel</groupId>
       <artifactId>camel-test</artifactId>
       <version>2.10.2</version>
     </dependency>
   </dependencies>

Unfortunately, Tycho fails with a "Unable to satisfy dependency [...] to
org.apache.camel.camel-test 0.0.0" message. Any suggestions what I might
be doing wrong?

The really odd thing (and also the workaround I am using right now ;-)
is that when I list the dependency in the reactors's root POM (the
parent POM of the feature), then Tycho considers the POM dependency.
Should I file a bug about this?

Best wishes,

Andreas

[1]
<http://wiki.eclipse.org/Tycho/How_Tos/Dependency_on_pom-first_artifacts>



Back to the top