Created
August 19, 2016 08:37
-
-
Save serpensalbus/f2ff0da3b28282661077aa23a1ae8aee to your computer and use it in GitHub Desktop.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<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>info.magnolia.project</groupId> | |
<artifactId>magnolia-cargo-demo</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<relativePath>../pom.xml</relativePath> | |
</parent> | |
<artifactId>magnolia-cargo-demo-webapp</artifactId> | |
<name>magnolia-cargo-demo: webapp</name> | |
<packaging>war</packaging> | |
<dependencies> | |
<dependency> | |
<groupId>info.magnolia</groupId> | |
<artifactId>magnolia-empty-webapp</artifactId> | |
<type>pom</type> | |
</dependency> | |
<dependency> | |
<groupId>info.magnolia</groupId> | |
<artifactId>magnolia-empty-webapp</artifactId> | |
<type>war</type> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-war-plugin</artifactId> | |
<configuration> | |
<!-- exclude jars copied "physically" from the webapp overlay - so we only get those resolved by Maven's dependency management --> | |
<dependentWarExcludes>WEB-INF/lib/*.jar</dependentWarExcludes> | |
</configuration> | |
</plugin> | |
<!-- Cargo with Tomcat 8 starts here --> | |
<plugin> | |
<groupId>org.codehaus.cargo</groupId> | |
<artifactId>cargo-maven2-plugin</artifactId> | |
<version>1.5.0</version> | |
<configuration> | |
<container> | |
<!-- https://codehaus-cargo.github.io/cargo/Maven2+Plugin+Reference+Guide.html#Maven2PluginReferenceGuide-container --> | |
<containerId>tomcat8x</containerId> | |
<zipUrlInstaller> | |
<url>http://repo1.maven.org/maven2/org/apache/tomcat/tomcat/8.5.4/tomcat-8.5.4.zip</url> | |
</zipUrlInstaller> | |
<!-- Instead of downloading the container, you can also reuse an existing installation by settings its directory: | |
<home>/Users/horsti/files/tomcats/apache-tomcat-8.5.4</home> --> | |
<output>${project.build.directory}/tomcat8x/container.log</output> | |
<!-- If true, then the file specified by <output> will not be erased across different runs --> | |
<append>false</append> | |
<!-- set this value if your web app is taking some time to start --> | |
<!--timeout>360000</timeout--> | |
</container> | |
<configuration> | |
<type>standalone</type> | |
<home>${project.build.directory}/tomcat8x</home> | |
<properties> | |
<cargo.servlet.port>8080</cargo.servlet.port> | |
<cargo.logging>high</cargo.logging> | |
<cargo.jvmargs>-XX:MaxPermSize=512m -Xms256m -Xmx3072m -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 -XX:+DisableExplicitGC -Xverify:none -Djava.awt.headless=true</cargo.jvmargs> | |
</properties> | |
</configuration> | |
<deployables> | |
<deployable> | |
<groupId>${project.groupId}</groupId> | |
<artifactId>${project.artifactId}</artifactId> | |
<type>war</type> | |
<properties> | |
<!-- set the context for your web app so the correct configuration is applied --> | |
<context>/dev</context> | |
</properties> | |
</deployable> | |
</deployables> | |
</configuration> | |
</plugin> | |
<!-- end of Cargo plugin configuration --> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment