Hi Henrik,
Thanks for the answer.
Your solution is the one that I usually use,
but in my use case I would like to use the maven-invoker plugin [1]
and share a target platform between the integration tests (many modules).
So my tests modules all have the same parent but their parent isn't an aggregator.
Note, it works fine with this configuration in the parent:
<repositories>
<repository>
<id>eclipse-mars</id>
<layout>p2</layout>
<url>http://download.eclipse.org/releases/mars/</url>
</repository>
</repositories>
but the repository is contacted for each module.
I kind of hope to avoid that with a targetplatform.
Regards,
Benoit
1: http://maven.apache.org/plugins/maven-invoker-plugin/
De : tycho-user-***@eclipse.org [mailto:tycho-user-***@eclipse.org] De la part de Henrik Steudel
Envoyé : jeudi 2 mars 2017 11:33
À : Tycho user list <tycho-***@eclipse.org>
Objet : Re: [tycho-user] Shared target plaform for many independant module
Hi,
not entirely sure if I understood correctly, but I gather you used a combined parent and aggregator approach where you defined
<modules>
<module>../myModuleA</module>
<module>../myModuleB</module>
</module>
in your parent pom.
These module definitions can be refactored to an aggregator (packaging pom)
1) one aggregator which contains the multi-module Child A (+ parent P)
2) and another aggregator pom which contains Child B (+ parent P).
Target Platform configuration could still be defined in the parent pom, as you seem to be using the same parent P for both children. At least that's how I structured it: Target Platform in parent, modules in aggregator.
Consequently, you'll need to build the aggregator pom to build either multi-module project now.
Further details: https://maven.apache.org/pom.html#Aggregation
Maybe it helps
Henrik
Am 02.03.2017 um 10:07 schrieb MAGGI Benoit:
Hi everyone,
I usually share my target platform using a multi-module configuration
but now I want to share it between independent module.
Example:
- Parent P Module (Don't have any child module)
o Module Child A (have the parent P module as parent)
o Module Child B (have the parent P module as parent)
ð I want to use the same target platform when running maven clean install against Child A or Child B.
ð How to achieve that ?
I tried to add a target platform as sub module of parent and also played a little with dependencies without success.
I suppose that one solution would be to release the platform before.
ð Is there any module on Maven Central or Eclipse nexus that provide a minimal target platform?
Regards,
Benoit
_______________________________________________
tycho-user mailing list
tycho-***@eclipse.org<mailto:tycho-***@eclipse.org>
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
***@entimo.com<mailto:***@entimo.com> | http://www.entimo.com/
Vorstand: Jürgen Spieler (Vors.), Marianne Neumann
Aufsichtratsvorsitzender: Erika Tannenbaum
Sitz der Gesellschaft: Berlin, Germany | Handelsregister: HRB Berlin-Charlottenburg 85073