cargo-sample-maven2-jboss7x-sharedclasspath-test
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-sample-maven2-jboss7x-sharedclasspath-test</artifactId> <version>1.4.0</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Codehaus CARGO, copyright 2004-2011 Vincent Massol. ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-samples-maven2</artifactId> <version>1.4.0</version> </parent> <artifactId>cargo-sample-maven2-jboss7x-sharedclasspath-test</artifactId> <name>Cargo Samples - Maven 2 - JBoss 7 shared classpath test</name> <packaging>jar</packaging> <description>Sample application that exercises the Cargo Maven2 plugin with a JBoss 7.x container and shared classpath</description> <dependencies> <dependency> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-sample-java</artifactId> <version>${cargo.core.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.codehaus.cargo</groupId> <artifactId>classpath-war</artifactId> <version>${cargo.resources.version}</version> <type>war</type> </dependency> <dependency> <groupId>org.codehaus.cargo</groupId> <artifactId>simple-jar</artifactId> <version>${cargo.resources.version}</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.codehaus.cargo</groupId> <artifactId>cargo-maven2-plugin</artifactId> <version>${project.version}</version> <configuration> <container> <containerId>jboss71x</containerId> <artifactInstaller> <groupId>org.jboss.as</groupId> <artifactId>jboss-as-dist</artifactId> <version>7.1.1.Final</version> </artifactInstaller> <dependencies> <dependency> <groupId>org.codehaus.cargo</groupId> <artifactId>simple-jar</artifactId> <classpath>shared</classpath> </dependency> </dependencies> </container> <configuration> <home>${project.build.directory}/jboss-base</home> <properties> <cargo.servlet.port>${cargo.samples.servlet.port}</cargo.servlet.port> <cargo.rmi.port>${cargo.samples.rmi.port}</cargo.rmi.port> <cargo.jboss.management.port>${cargo.samples.jboss.management.port}</cargo.jboss.management.port> </properties> </configuration> <deployables> <deployable> <groupId>org.codehaus.cargo</groupId> <artifactId>classpath-war</artifactId> <type>war</type> <properties> <context>/classpath-test</context> </properties> </deployable> </deployables> </configuration> <executions> <execution> <id>start</id> <phase>pre-integration-test</phase> <goals> <goal>start</goal> </goals> </execution> <execution> <id>stop</id> <phase>post-integration-test</phase> <goals> <goal>stop</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> <executions> <execution> <id>surefire-it</id> <phase>integration-test</phase> <goals> <goal>test</goal> </goals> <configuration> <skip>${maven.test.skip}</skip> <systemProperties> <property> <name>http.port</name> <value>${cargo.samples.servlet.port}</value> </property> </systemProperties> </configuration> </execution> </executions> </plugin> </plugins> </build> </project>