You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Pe...@ubs.com on 2006/08/17 17:04:47 UTC

[m2] Maven Antrun Multiple Executions


    [0]  You cannot have two plugin executions with the same (or
missing) <id/>
elements.
Offending execution

Id: 'default'
Plugin:'org.apache.maven.plugins:maven-antrun-plugin'


How do I configure the id for each execution XML fragment?


--
Peter Pilgrim
UBS Investment Bank, 
PTS Portal / IT FIRC OPS LDN,
100 Liverpool Street, London EC2M 2RH, United Kingdom
:: Java EE / E-Commerce / Enterprise Integration / Development ::

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] Maven Antrun Multiple Executions

Posted by Denis Cabasson <de...@insee.fr>.
I don't know if you can call a plugin execution based on its id (this would
sound a sensible thing to do), but what I know you can do is call the phase
your plugin is bound to. Generally, if you phase is carefully chosen, that
whould be enough: executing the plugin outside of a given phase means your
build isn't completly predictable.

Denis


Andrius Šabanas wrote:
> 
> Denis Cabasson wrote:
>> <exections>
>>   <execution>
>>     <id>0</id>
>>     <phase>....</phase>
>>     <configuration>...</configuration>
>>   </execution>
>>   <execution>
>>     <id>1</id>
>>     ...
>>   </execution>
>> </executions>
>> 
>> Denis.
> 
> Hello,
> 
> Is it possible to independently launch a single plugin execution from 
> the command like, for example: "mvn antrun:run", and specify an 
> execution id somehow?
> 
> Andrius
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-m2--Maven-Antrun-Multiple-Executions-tf2121980.html#a5854945
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] Maven Antrun Multiple Executions

Posted by Andrius Šabanas <an...@pivotcapital.com>.
Denis Cabasson wrote:
> <exections>
>   <execution>
>     <id>0</id>
>     <phase>....</phase>
>     <configuration>...</configuration>
>   </execution>
>   <execution>
>     <id>1</id>
>     ...
>   </execution>
> </executions>
> 
> Denis.

Hello,

Is it possible to independently launch a single plugin execution from 
the command like, for example: "mvn antrun:run", and specify an 
execution id somehow?

Andrius

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: [m2] Maven Antrun Multiple Executions

Posted by Denis Cabasson <de...@insee.fr>.
<exections>
  <execution>
    <id>0</id>
    <phase>....</phase>
    <configuration>...</configuration>
  </execution>
  <execution>
    <id>1</id>
    ...
  </execution>
</executions>

Denis.



Peter.Pilgrim wrote:
> 
> 
> 
>     [0]  You cannot have two plugin executions with the same (or
> missing) <id/>
> elements.
> Offending execution
> 
> Id: 'default'
> Plugin:'org.apache.maven.plugins:maven-antrun-plugin'
> 
> 
> How do I configure the id for each execution XML fragment?
> 
> 
> --
> Peter Pilgrim
> UBS Investment Bank, 
> PTS Portal / IT FIRC OPS LDN,
> 100 Liverpool Street, London EC2M 2RH, United Kingdom
> :: Java EE / E-Commerce / Enterprise Integration / Development ::
> 
> Visit our website at http://www.ubs.com
> 
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
> 
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission.  If
> verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/-m2--Maven-Antrun-Multiple-Executions-tf2121980.html#a5853952
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org