<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.10</version>
<configuration>
<container>
<containerId>jetty9x</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.runtime.args>force=true</cargo.runtime.args>
<cargo.hostname>localhost</cargo.hostname>
<cargo.servlet.port>${servlet.port}</cargo.servlet.port>
<cargo.remote.username>admin</cargo.remote.username>
<cargo.remote.password>admin</cargo.remote.password>
</properties>
</configuration>
<deployables>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<properties>
<context>/sipt-rs</context>
</properties>
<pingTimeout>300000</pingTimeout>
</deployable>
</deployables>
</configuration>
<executions>
<execution>
<id>redeploy-war-with-cargo</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deployer-redeploy</goal>
</goals>
</execution>
</executions>
</plugin>
The above plug-in look for the cargo-jetty-7-and-onwards-deployer-1.4.11.war in side jetty/web-apps folder and before that it identifies the jetty running on the specified host and port , later the binding with plug in and jetty happens via cargo war.
Once the binding is over, plug in will deploy the application war into the identified jetty. Later you can run the web/rest test cases from your java module.
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<version>1.4.10</version>
<configuration>
<container>
<containerId>jetty9x</containerId>
<type>remote</type>
</container>
<configuration>
<type>runtime</type>
<properties>
<cargo.runtime.args>force=true</cargo.runtime.args>
<cargo.hostname>localhost</cargo.hostname>
<cargo.servlet.port>${servlet.port}</cargo.servlet.port>
<cargo.remote.username>admin</cargo.remote.username>
<cargo.remote.password>admin</cargo.remote.password>
</properties>
</configuration>
<deployables>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<properties>
<context>/sipt-rs</context>
</properties>
<pingTimeout>300000</pingTimeout>
</deployable>
</deployables>
</configuration>
<executions>
<execution>
<id>redeploy-war-with-cargo</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deployer-redeploy</goal>
</goals>
</execution>
</executions>
</plugin>
The above plug-in look for the cargo-jetty-7-and-onwards-deployer-1.4.11.war in side jetty/web-apps folder and before that it identifies the jetty running on the specified host and port , later the binding with plug in and jetty happens via cargo war.
Once the binding is over, plug in will deploy the application war into the identified jetty. Later you can run the web/rest test cases from your java module.
No comments:
Post a Comment