Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Add built feature to surefire dependencies

Matthias, this works, thank you. I had tried before but in my main pom, and then I got circular dependencies errors, so you really have to do it in the test plugin's pom only.

Thanks again,
Felix

On Wed, Dec 9, 2020 at 1:37 PM Matthias Sohn <matthias.sohn@xxxxxxxxx> wrote:
On Wed, Dec 9, 2020 at 1:30 PM Felix Dorner <felix.dorner@xxxxxxxxx> wrote:
I have a tycho build that is building a feature 'my.feature'.  I also have a test that, in order to pass, the feature must be installed in the test runtime. Since the surefire runtime is by default only the test bundle plus its transitive dependencies, I have to add the feature somewhere to include it in the test runtime explicitly. I try to use the tycho surefire <dependency> configuration:

   <dependency>
                 <artifactId>my.feature</artifactId>
                 <type>eclipse-feature</type>
               </dependency>

But this fails:

[ERROR] Cannot resolve project dependencies:
[ERROR]   You requested to install 'org.eclipse.equinox.p2.iu; my.feature.feature.group 0.0.0' but it could not be found
[ERROR]

So I'm lost... how can I add the feature to the test runtime? I use tycho-surefire-plugin 1.7.0

we do that in Egit by configuring a target platform for the test, e.g.

-Matthias

 
Thanks for help.
Felix

--
Linux. The choice of a GNU generation.
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tycho-user


--
Linux. The choice of a GNU generation.

Back to the top