maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Baptiste MATHUS ...@batmat.net>
Subject Re: Executing ant run after a plugin
Date Thu, 24 Feb 2011 18:21:25 GMT
Hi,
Imo, running this goal from the command line is nonsense. This will create a
property that's designed to be typically used inside other parts of the pom.
What are you trying to do?

BTW, if you run this goal from CLI, why don't you just add the next goal to
be run on the same command line?
Le 24 févr. 2011 16:23, "Rui Vilão" <rpvilao@gmail.com> a écrit :
> Hi,
>
> I'm using the buildnumber plugin and I want to execute a given antrun goal
> ONLY when I explicitly call that plugin from the console.
>
> So, imagine that I execute mvn buildnumber:create and in the pom I do
> something like:
>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <phase>WHAT DO I PUT HERE?!</phase>
> <execution>
> <goals>
> <goal>run</goal>
> </goals>
> <configuration>
> <tasks>
> <echo message="${version}.${buildNumber}" file="build"
> append="false"/>
> </tasks>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
> So I don't want to run this in a common life cycle. Install doesn't work
for
> me and the immediately after that one is deploy, that doesn't work either.
>
> Any thoughts?
>
> Thanks in advance,
>
> Rui

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message