[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Invoke a participant before TychoMavenLifecycleParticipant - is it possible?

Hi,

try to declare your plugin/extension above the tycho plugin in your pom... first come first serve... at least this applies to the execution order of plugins...

Another way is to devlop a "Maven Core Extension" and but it under ${maven.home}/lib/ext/ (since Maven 3.0.3). If you do so, the AbstractMavenLifecycleParticipant#afterSessionStart(...) method will be invoked beside #afterProjectsRead(...) also. And both methods will be invoked before the TychoMavenLifecycleParticipant methods.

Regards,
Bernd



2012/3/6 Tom Bujok <tom.bujok@xxxxxxxxx>
Hi guys,

I am writing a maven plugin to customize my tycho build a bit.
The tricky part is that my plugin has to be invoked before any tycho plugin. I checked that you guys use the TychoMavenLifecycleParticipant to do all your project configuration before any other plugin is invoked.
Whenever I register my own AbstractMavenLifecycleParticipants it is invoked after the tycho's participant. Is there a way to hook-in at an earlier stage or use some plexus trickery to order the participants -  to make sure that my participant is invoked before any other participant?

Thanks in advance,
Tom Bujok


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user