In a parent I define some properties that are used in a lot of sub
modules in the maven-antrun-plugin. All these sub modules needs to
execute the exact same tasks so it could be nice to define this task
once in the parent.
But is it possible to define a "global" maven-antrun task in a parent
that can be optionally used in a sub module?
I have tried to move the maven-antrun-plugin to the parent's
pluginManagement and then define the tasks there. But I have another
sub module that don't need to to run this "global" task. But since its
inherited from the parent I am a bit stuck here.
Is it possible to define only a a task that can be inserted without
having to modify the maven-antrun-plugin for all sub modules??
Here is how its used in a sub module:
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>test</id>
<phase>deploy</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<!-- run a bunch of sshexec and scp tasks.
Could be
nice if we could do the following: -->
<my.task> run special task defined in parent </my.task>
</tasks>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-jsch</artifactId>
<version>${ant.jsch.version}</version>
</dependency>
</dependencies>
</plugin>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]