sticky-war
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>net.stickycode.parent</groupId>
<artifactId>sticky-war</artifactId>
<version>1.15</version>
</dependency><?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>net.stickycode.parent</groupId>
<artifactId>sticky-jar</artifactId>
<version>1.24</version>
</parent>
<artifactId>sticky-war</artifactId>
<version>1.15</version>
<packaging>pom</packaging>
<properties>
<sticky.deployment.port>90${sticky-deployment-id}</sticky.deployment.port>
<sticky.deployment.stopPort>91${sticky-deployment-id}</sticky.deployment.stopPort>
</properties>
<name>sticky-war-1</name>
<description>The definition of StickyCode war projects</description>
<inceptionYear>2009</inceptionYear>
<url>http://www.StickyCode.net/parent/sticky-war/</url>
<scm>
<connection>scm:svn:http://source.stickycode.net/tags/net.stickycode.parent/sticky-war-1.15</connection>
<developerConnection>scm:svn:http://source.stickycode.net/tags/net.stickycode.parent/sticky-war-1.15</developerConnection>
<url>scm:svn:http://source.stickycode.net/tags/net.stickycode.parent/sticky-war-1.15</url>
</scm>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
<configuration>
<archiveClasses>true</archiveClasses>
<classifier>application</classifier>
</configuration>
<executions>
<execution>
<id>package-war</id>
<goals>
<goal>war</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.7.v20120910</version>
<configuration>
<connectors>
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
<port>${sticky.deployment.port}</port>
<maxIdleTime>60000</maxIdleTime>
</connector>
</connectors>
<systemPropertiesFile>${basedir}/src/test/resources/configured.properties</systemPropertiesFile>
<stopPort>${sticky.deployment.stopPort}</stopPort>
<stopKey>STOP-${project.artifactId}</stopKey>
<war>${project.build.directory}/${project.artifactId}-${project.version}-application.war</war>
</configuration>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>deploy-war</goal>
</goals>
<configuration>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
</configuration>
</execution>
<execution>
<id>stop-jetty</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>webapp-interactive</id>
<build>
<plugins>
<plugin>
<groupId>net.stickycode.plugins</groupId>
<artifactId>sticky-wait-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<phase>integration-test</phase>
<goals>
<goal>wait</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>webapps</id>
<activation>
<file>
<exists>src/main/webapp</exists>
</file>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>validate-deployment-id</id>
<phase>validate</phase>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireProperty>
<property>sticky-deployment-id</property>
<message>You must specify a unique id for this project between 00 and 99</message>
<regex>[0-9]{2}</regex>
</requireProperty>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>