Hi there,

I am using maven 2 and I am running into an issue with phase.
I want a ant goal to scp the war file to a remote server. However, I
want the goal to be independent of build cycle. Following is the code.
If I uncomment the <phase> element, "mvn install" will execute the goal
as expected. If I comment the <phase> element out and run "mvn
antrun:run", I expect it to execute the scp task but it does not. Anyone
knows why? 


<plugin>
        
<groupId>org.apache.maven.plugins</groupId>
        
<artifactId>maven-antrun-plugin</artifactId>
                                <executions>

                                        <execution>
        
<id>jboss-remote-hotdeploy</id>
                                                <!--
phase>integration-test</phase -->
                                                <goals>
                                                        <goal>run</goal>
                                                </goals>
                                                <configuration>
                                                        <tasks>
                                                                <scp
...... />
                                                        </tasks>
                                                </configuration>
                                        </execution>

                                </executions>
                                <dependencies>
                                        <dependency>
                                                <groupId>ant</groupId>
        
<artifactId>ant-optional</artifactId>
        
<version>1.5.3-1</version>
                                        </dependency>
                                        <dependency>
        
<groupId>org.apache.ant</groupId>
        
<artifactId>ant-jsch</artifactId>
                                                <version>1.7.1</version>
                                        </dependency>
                                </dependencies>
                        </plugin>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to