Thanks Henrik, this sounds like exactly what I need.
Could you expand a little on what you mean by a "derived parent pom"? This is like having it as a child of the main product pom?
Best regards, Justin
Hi,
If your unwanted dependency is an optional dependency, would it
help to disable optional dependencies in
target-platform-configuration?
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>target-platform-configuration</artifactId>
<configuration>
<dependency-resolution>
<optionalDependencies>ignore</optionalDependencies>
....
Tycho-surefire won't pick up org.eclipse.ui.ide then. If you need
specific optional dependencies, these can be declared separately
in same plugin like
<extraRequirements>
<requirement>
<type>eclipse-plugin</type>
<id>org.eclipse.swt</id>
<versionRange>0.0.0</versionRange>
</requirement>
We ignore optional dependencies in parent pom. Then we defined a
derived parent pom for test fragments which then adds
optional/fragment bundles for tests via extraRequirements again.
Kind regards
Henrik
Am 04.03.2016 um 13:16 schrieb Justin Dolezy:
Thanks for that Tom, however doesn’t seem to work
for me. It complains the feature could not be found,
unsurprising as the reactor order didn’t changed and the feature
is the second to last module, before the actual product..
It’s also listing unsatisfied dependencies from
o.e.ui.ide.application, o.e.compare, etc to o.e.ui.ide which is
suspicious as I’d have thought it shouldn’t start the IDE
workbench when configured with my product & application.
I came across this old StackOverflow post which is
pretty much what I want to do but presumably the problem still
exists?
Clutching at straws I also tried adding o.e.ui.ide
via <dependencies> instead to try to override the target
platform filter, but unsurprisingly didn’t work either as it
can’t add in what it no longer knows about.
Seems like I’ll need to post-process the build
output to remove o.e.ui.ide, not pretty!
Regards,
Justin
The tycho-surefire docs indicate
it’s possible to run a different
application/product to the IDE workbench but I
can’t find any concrete examples. Running my own
product to host the tests would be another
potential catch 22 although easily resolved by
running the test fragments at the end of the
reactor I suppose.
We do something like this,
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-surefire-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<testSuite>com.foo.bar.tests</testSuite>
<testClass>${testSuite}</testClass>
<includes>
<include>**/*Test.java</include>
</includes>
<useUIHarness>true</useUIHarness>
<useUIThread>false</useUIThread>
<product>com.foo.product</product>
<application>com.foo.application</application>
<dependencies>
<dependency>
<type>p2-installable-unit</type>
<artifactId>com.foo.feature</artifactId>
<version>0.0.0</version>
</dependency>
</dependencies>
</configuration>
</plugin>
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
--
Entimo AG
Stralauer Platz 33 - 34 | 10243 Berlin | Germany
Tel: +49.30.52 00 24 133 | Fax: +49.30.52 00 24 101
hst@xxxxxxxxxx | http://www.entimo.com/
Vorstand: Jürgen Spieler (Vors.), Marianne Neumann
Aufsichtratsvorsitzender: Erika Tannenbaum
Sitz der Gesellschaft: Berlin, Germany | Handelsregister: HRB Berlin-Charlottenburg 85073
_______________________________________________ tycho-user mailing list tycho-user@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/tycho-user
|