clusterbench-ee6-web
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.jboss.test</groupId>
<artifactId>clusterbench-ee6-web</artifactId>
<version>3.0.0.Final</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2013 Radoslav Husár
~
~ 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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>clusterbench</artifactId>
<groupId>org.jboss.test</groupId>
<version>3.0.0.Final</version>
</parent>
<artifactId>clusterbench-ee6-web</artifactId>
<version>3.0.0.Final</version>
<packaging>war</packaging>
<name>${project.artifactId}</name>
<properties>
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.jboss.test</groupId>
<artifactId>clusterbench-ee6-ejb</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.infinispan</groupId>
<artifactId>infinispan-core</artifactId>
<version>5.1.8.Final</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArguments>
<endorseddirs>${endorsed.dir}</endorseddirs>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.2</version>
<executions>
<!-- Add the default execution as workaround for IDE to pick up the default configuration. -->
<execution>
<phase>package</phase>
<goals>
<goal>war</goal>
</goals>
<configuration>
<warSourceDirectory>${basedir}/src/main/webapp</warSourceDirectory>
<archive>
<manifestEntries>
<Dependencies>org.infinispan, org.jgroups</Dependencies>
</manifestEntries>
</archive>
</configuration>
</execution>
<!-- Build default configuration: session granularity and never passivates. -->
<execution>
<phase>package</phase>
<id>build-default-war</id>
<goals>
<goal>war</goal>
</goals>
<configuration>
<classifier>default</classifier>
<warSourceDirectory>${basedir}/src/main/webapp</warSourceDirectory>
<packagingExcludes>%regex[.*granular.*]</packagingExcludes>
<archive>
<manifestEntries>
<Dependencies>org.infinispan, org.jgroups</Dependencies>
</manifestEntries>
</archive>
</configuration>
</execution>
<!-- Build passivating configuration: session granularity but passivation enabled. -->
<execution>
<phase>package</phase>
<id>build-passivating-war</id>
<goals>
<goal>war</goal>
</goals>
<configuration>
<classifier>passivating</classifier>
<warSourceDirectory>${basedir}/src/main/webapp-passivating</warSourceDirectory>
<packagingExcludes>%regex[.*granular.*]</packagingExcludes>
<archive>
<manifestEntries>
<Dependencies>org.infinispan, org.jgroups</Dependencies>
</manifestEntries>
</archive>
</configuration>
</execution>
<!-- Build granular configuration: attribute granularity but never passivates. -->
<execution>
<phase>package</phase>
<id>build-granular-war</id>
<goals>
<goal>war</goal>
</goals>
<configuration>
<classifier>granular</classifier>
<warSourceDirectory>${basedir}/src/main/webapp-granular</warSourceDirectory>
<packagingExcludes>%regex[.*/(cdi|ejb|jsf|load|session).*]</packagingExcludes>
<archive>
<manifestEntries>
<Dependencies>org.infinispan, org.jgroups</Dependencies>
</manifestEntries>
</archive>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<outputDirectory>${endorsed.dir}</outputDirectory>
<silent>true</silent>
<artifactItems>
<artifactItem>
<groupId>javax</groupId>
<artifactId>javaee-endorsed-api</artifactId>
<version>6.0</version>
<type>jar</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>