Alright.. This is how the relevant parts of my pom, looks like:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>Ant: deleting EDepotServiceBindingImpl.java</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
<delete
file="${generated.source.server.dir}/dk/statsbiblioteket/v20051201/EDepotServiceBindingImpl.java"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<!-- Deploying webservice via axis adminservice servlet
, ant task xml must probably be further down than
jetty!
-->
<execution>
<id>Ant: Deploying service with axis-admin</id>
<phase>pre-integration-test</phase>
<configuration>
<tasks>
<!-- "import" custom task -->
<taskdef name="axis-admin"
classname="org.apache.axis.tools.ant.axis.AdminClientTask"
classpathref="maven.plugin.classpath">
</taskdef>
<echo message="Running axis-admin" />
<axis-admin
port="8080"
hostname="localhost"
failonerror="true"
servletpath="EDepotServicePort/services/AdminService"
debug="true"
xmlfile="${generated.source.server.dir}/dk/statsbiblioteket/v20051201/deploy.wsdd"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis-ant</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
</plugin>
As I understand, I should be able to execute my ant tasks, embedded in the
above executions, with 'mvn ant:run'... But the message <echo
message="Running axis-admin" /> is not shown in the output.. Seems lilke the
tasks are not run.
Roman Kournjaev wrote:
>
> I am sure you ll get a lot of feedback on that one. It has so much details
> about our problem.
>
> On Tue, May 26, 2009 at 2:09 PM, vpalle <[email protected]> wrote:
>
>>
>> When executing 'mvn antrun:run' my tasks are not run.. I have an echo
>> task,
>> but no output is shown.. When running the phases that the tasks are bound
>> to, they do get executed..
>> --
>> View this message in context:
>> http://www.nabble.com/maven%2C-ant%2C-antrun%3Arun-tp23720986p23720986.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
--
View this message in context:
http://www.nabble.com/maven%2C-ant%2C-antrun%3Arun-tp23720986p23721286.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]