If I understand Maven correclty (I'm quite a newbie),
there can only be one plugin of the same groupId /
artifactId in the plugins element.
If you have multiple execution elements you should put
them together in .
So your pom.xml should rather loog like :
4.0.0
com.axway
SimpleMavenProject
t does not work...
-Message d'origine-
De : Adrian Gonzalez [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 17 octobre 2007 10:29
À : Maven Users List
Objet : RE : Configuration not working for multiple calls of same plugin
If I understand Maven correclty (I'm quite a newbie), there can
Veyret Stephane wrote on Wednesday, October 17, 2007 10:10 AM:
> Hi,
>
> I got into a very strange problem. I think this is an issue,
> but I would like to have your opinion first.
>
> In the following pom.xml file, I have got 2 calls to the
> maven-jar-plugin. I need to do that, because there a
d this is the first time it does not
> work...
>
> -Message d'origine-
> De : Adrian Gonzalez [mailto:[EMAIL PROTECTED]
> Envoyé : mercredi 17 octobre 2007 10:29
> À : Maven Users List
> Objet : RE : Configuration not working for multiple
> calls of same plugin
>
>
Veyret Stephane wrote on Wednesday, October 17, 2007 10:40 AM:
> Hi Adrian,
>
> Thank you for your answer.
>
> Actually, I can't do what you suggest for I need to execute
> other plugins between jar building and jar signing. Anyway, I
> often need to separate 2 plugin executions, I've never seen
nvoyé : mercredi 17 octobre 2007 11:12
À : Maven Users List
Objet : RE : Configuration not working for multiple calls of same plugin
As Joerg says, just merging the two execution in the same executions element,
and including a phase element ?
ear-eclipse-manifest
generate-resources
...
an
Veyret Stephane wrote on Wednesday, October 17, 2007 11:25 AM:
> Thanks all for suggestions. The problem is that there is not
> an infinite number of phases in a standard lifecycle, and I
> cannot take another phase than the default one (packaging)
> for these. Other phases are already used for ot
> OK. This one is true. But IIRC there is always a pre- and post-phase also. So
> try to use post-package to sign
> the jar.
Yes, I'll try this. But the question is: do you think this is a bug, especially
knowing that the pom generated by help:effective-pom works correctly!
Veyret Stephane wrote on Wednesday, October 17, 2007 1:42 PM:
>> OK. This one is true. But IIRC there is always a pre- and
> post-phase also. So try to use post-package to sign
>> the jar.
>
> Yes, I'll try this. But the question is: do you think this is
> a bug, especially knowing that the pom g
> What do you mean by "the effective-pom works correctly"? How does it look
> like? Two different entries for the
> plugin, one for each phase/configuration ??
It creates the same pom than in my example, except that everything that is in
the profiles zone is also copied outside.
> IMHO you've h
10 matches
Mail list logo