Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Pack by default, sign in a profile

Hi,

AFAIK the execution order of plugins in Maven is specified by using the lifecycle.

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

If the plugins are bound to the same phase, the are executed in the same order in which they are defined in the pom.

As it seems that you want to have two different executions, IMHO you need to specify two profiles. One which is activated by default, and the other one with the signing if activated. I don't know any other way to skip a plugin execution by configuration. It is possible to skip the execution completely, which is necessary on inheritance for example. But that doesn't seem to be your requirement.

Greez,
Dirk




On Fri, Sep 6, 2013 at 9:28 AM, Mickael Istria <mistria@xxxxxxxxxx> wrote:
Hi all,

I'm trying to set up a pom in a way that the jar files get packed in any case, and I can sign them with a profile.
So what I'd like to do is, by default:
* pack200a
* pack200b
and when using a profile
* pack200a
* sign
* pack200b

However, I don't know a way to trigger signing execution just between pack200a and pack200b. So it seems to me that I'll need to deal with a couple of profiles if I want to achieve it.
Is there a nicer solution?

Cheers,
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

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



Back to the top