| <?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/xsd/maven-4.0.0.xsd"> |
| |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.maven.archetypes</groupId> |
| <artifactId>archetype-samples</artifactId> |
| <version>2.0-alpha-5-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>maven-webapp</artifactId> |
| <version>2.0-SNAPSHOT</version> |
| <packaging>war</packaging> |
| |
| <name>Maven Webapp Sample</name> |
| |
| <profiles> |
| <profile> |
| <id>jetty</id> |
| <build> |
| <defaultGoal>jetty:run</defaultGoal> |
| <plugins> |
| <plugin> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>maven-jetty-plugin</artifactId> |
| <configuration> |
| <connectors> |
| <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> |
| <port>15000</port> |
| <maxIdleTime>60000</maxIdleTime> |
| </connector> |
| </connectors> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>tomcat</id> |
| <build> |
| <defaultGoal>tomcat:run</defaultGoal> |
| <finalName>${pom.artifactId}</finalName> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>tomcat-maven-plugin</artifactId> |
| <configuration> |
| <port>15000</port> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| |
| </project> |