Gentlemen!
I found answer on my question.
For twice execution of same plugin goal need make like:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
* <id>one</id>*
<phase>generate-sources</phase>
<configuration>
<tasks>
<echo
message="generate-sources!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
*<id>two</id>*
<phase>package</phase>
<configuration>
<tasks>
* <echo
message="package!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"/>*
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
Anuerin Diaz wrote:
sorry, i forgot that i cleaned up the example in that previous posting
since i was asking about a different problem. dont bother visiting the
link, but im going to post the tip in the user miniguide wiki.
ciao!
On 11/29/05, Anuerin Diaz <[EMAIL PROTECTED]> wrote:
you can specify multiple execution elements under the executions tag,
giving each a different id and binding them at different phases. this
is not mentioned in the intro document but this should be of some
help:
http://www.mail-archive.com/[email protected]/msg28931.html
ciao!
On 11/29/05, Oles <[EMAIL PROTECTED]> wrote:
Gentelmen!
I needs twice to run ant tasks on two different phases.
I make:
<build>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<tasks>
<echo
message="generate-sources!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<phase>compile</phase>
<configuration>
<tasks>
<echo
message="compile!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
Maven wrote
Validation Messages:
[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'
Reason: Failed to validate POM
What will you advise?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
"Programming, an artform that fights back"
Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do
--
"Programming, an artform that fights back"
Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]