Created
March 8, 2011 12:55
-
-
Save batmat/860241 to your computer and use it in GitHub Desktop.
working pom for a dead-simple webapp I just created using the standard maven archetype. Managed to deploy onto JBoss EAP 5.1.0.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
<groupId>net.batmat</groupId> | |
<artifactId>testdeploywebapp</artifactId> | |
<packaging>war</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<name>testdeploywebapp Maven Webapp</name> | |
<url>http://maven.apache.org</url> | |
<dependencies> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>3.8.1</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<properties> | |
<jboss.version>6.0.0.Alpha9</jboss.version> | |
<cargo.plugin.version>1.0.6</cargo.plugin.version> | |
</properties> | |
<build> | |
<finalName>testdeploywebapp</finalName> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.cargo</groupId> | |
<artifactId>cargo-maven2-plugin</artifactId> | |
<version>${cargo.plugin.version}</version> | |
<configuration> | |
<container> | |
<!-- note jboss5x also works for eap --> | |
<containerId>jboss6x</containerId> | |
<type>remote</type> | |
</container> | |
<configuration> | |
<type>runtime</type> | |
<properties> | |
<cargo.logging>high</cargo.logging> | |
<cargo.servlet.port>8080</cargo.servlet.port> | |
<cargo.hostname>localhost</cargo.hostname> | |
<cargo.remote.username>admin</cargo.remote.username> | |
<cargo.remote.password>admin</cargo.remote.password> | |
</properties> | |
</configuration> | |
<deployer> | |
<type>remote</type> | |
<deployables> | |
<deployable> | |
<groupId>${project.groupId}</groupId> | |
<artifactId>${project.artifactId}</artifactId> | |
<type>war</type> | |
<properties> | |
<context>/${project.build.finalName}</context> | |
</properties> | |
<pingURL>http://localhost:8080/${project.build.finalName}/index.jsp</pingURL> | |
<pingTimeout>5000</pingTimeout> | |
</deployable> | |
</deployables> | |
</deployer> | |
</configuration> | |
<dependencies> | |
<dependency> | |
<groupId>org.codehaus.cargo</groupId> | |
<artifactId>cargo-core-tools-jboss-deployer-5.1-and-onwards</artifactId> | |
<version>${cargo.plugin.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.integration</groupId> | |
<artifactId>dontcare</artifactId> | |
<version>5.1.0.GA</version> | |
<scope>system</scope> | |
<systemPath>${env.JBOSSEAP_HOME}/client/jbossall-client.jar</systemPath> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.integration</groupId> | |
<artifactId>dontcare3</artifactId> | |
<version>5.1.0.GA</version> | |
<scope>system</scope> | |
<systemPath>${env.JBOSSEAP_HOME}/client/trove.jar</systemPath> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.integration</groupId> | |
<artifactId>dontcare4</artifactId> | |
<version>5.1.0.GA</version> | |
<scope>system</scope> | |
<systemPath>${env.JBOSSEAP_HOME}/client/javassist.jar</systemPath> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.integration</groupId> | |
<artifactId>dontcare5</artifactId> | |
<version>5.1.0.GA</version> | |
<scope>system</scope> | |
<systemPath>${env.JBOSSEAP_HOME}/common/lib/jboss-security-aspects.jar</systemPath> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.integration</groupId> | |
<artifactId>dontcare6</artifactId> | |
<version>5.1.0.GA</version> | |
<scope>system</scope> | |
<systemPath>${env.JBOSSEAP_HOME}/lib/jboss-managed.jar</systemPath> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.integration</groupId> | |
<artifactId>dontcare7</artifactId> | |
<version>5.1.0.GA</version> | |
<scope>system</scope> | |
<systemPath>${env.JBOSSEAP_HOME}/lib/jboss-metatype.jar</systemPath> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.integration</groupId> | |
<artifactId>dontcare8</artifactId> | |
<version>5.1.0.GA</version> | |
<scope>system</scope> | |
<systemPath>${env.JBOSSEAP_HOME}/lib/jboss-dependency.jar</systemPath> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment