<?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> | |
<groupId>${groupId}</groupId> | |
<artifactId>${artifactId}</artifactId> | |
<packaging>war</packaging> | |
<name>My Portlet Application</name> | |
<version>${version}</version> | |
<properties> | |
<struts2.version>2.1.8.1</struts2.version> | |
</properties> | |
<dependencies> | |
<!-- Struts 2 --> | |
<dependency> | |
<groupId>org.apache.struts</groupId> | |
<artifactId>struts2-core</artifactId> | |
<version>${struts2.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.struts</groupId> | |
<artifactId>struts2-portlet-plugin</artifactId> | |
<version>${struts2.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.struts</groupId> | |
<artifactId>struts2-config-browser-plugin</artifactId> | |
<version>${struts2.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>javax.portlet</groupId> | |
<artifactId>portlet-api</artifactId> | |
<version>1.0</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>com.bekk.boss</groupId> | |
<artifactId>maven-jetty-pluto-embedded</artifactId> | |
<version>1.0.1</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>jetty</artifactId> | |
<version>6.1.21</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>jsp-2.1</artifactId> | |
<version>6.1.14</version> | |
<scope>provided</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<source>1.5</source> | |
<target>1.5</target> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>pluto-embedded</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.pluto</groupId> | |
<artifactId>maven-pluto-plugin</artifactId> | |
<version>1.1.6</version> | |
<executions> | |
<execution> | |
<phase>generate-resources</phase> | |
<goals> | |
<goal>assemble</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>maven-jetty-plugin</artifactId> | |
<version>6.1.21</version> | |
<configuration> | |
<webXml>${project.build.directory}/pluto-resources/web.xml</webXml> | |
<webAppConfig> | |
<contextPath>/${project.artifactId}</contextPath> | |
<defaultsDescriptor>/WEB-INF/jetty-pluto-web-default.xml</defaultsDescriptor> | |
</webAppConfig> | |
<systemProperties> | |
<systemProperty> | |
<name>org.apache.pluto.embedded.portletIds</name> | |
<value>HelloPortlet</value> | |
</systemProperty> | |
</systemProperties> | |
</configuration> | |
<dependencies> | |
<dependency> | |
<groupId>com.bekk.boss</groupId> | |
<artifactId>maven-jetty-pluto-embedded</artifactId> | |
<version>1.0.1</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |