2009-03-24 17:07:27 -04:00
|
|
|
<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">
|
|
|
|
<parent>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>jetty-project</artifactId>
|
2012-09-10 13:59:04 -04:00
|
|
|
<version>7.6.7.v20120910</version>
|
2009-03-24 17:07:27 -04:00
|
|
|
</parent>
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
2009-05-25 21:16:27 -04:00
|
|
|
<artifactId>test-jetty-webapp</artifactId>
|
|
|
|
<name>Test :: Jetty Test Webapp</name>
|
2009-03-24 17:07:27 -04:00
|
|
|
<packaging>war</packaging>
|
|
|
|
<build>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>test</id>
|
|
|
|
<phase>test</phase>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<configuration>
|
|
|
|
<excludes>
|
|
|
|
<exclude>**/WebAppTest.java</exclude>
|
2011-01-28 13:58:47 -05:00
|
|
|
<exclude>**/Test*.java</exclude>
|
2009-03-24 17:07:27 -04:00
|
|
|
</excludes>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<phase>package</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>single</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
2011-05-17 09:41:15 -04:00
|
|
|
<descriptorRefs>
|
|
|
|
<descriptorRef>config</descriptorRef>
|
|
|
|
</descriptorRefs>
|
2009-03-24 17:07:27 -04:00
|
|
|
<descriptors>
|
2010-06-24 18:57:34 -04:00
|
|
|
<descriptor>src/main/assembly/web-bundle.xml</descriptor>
|
2009-03-24 17:07:27 -04:00
|
|
|
</descriptors>
|
2012-02-01 10:59:00 -05:00
|
|
|
<archive>
|
|
|
|
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
|
|
|
</archive>
|
2009-03-24 17:07:27 -04:00
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2010-06-24 18:57:34 -04:00
|
|
|
<!-- also make this webapp an osgi bundle -->
|
|
|
|
<plugin>
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<archive>
|
|
|
|
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
|
|
|
</archive>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.felix</groupId>
|
|
|
|
<artifactId>maven-bundle-plugin</artifactId>
|
|
|
|
<extensions>true</extensions>
|
|
|
|
<configuration>
|
2012-01-31 17:21:58 -05:00
|
|
|
<supportedProjectTypes>
|
|
|
|
<supportedProjectType>war</supportedProjectType>
|
|
|
|
</supportedProjectTypes>
|
|
|
|
</configuration>
|
2010-06-24 18:57:34 -04:00
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>bundle-manifest</id>
|
|
|
|
<phase>process-classes</phase>
|
|
|
|
<goals>
|
|
|
|
<goal>manifest</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<instructions>
|
2012-01-31 17:21:58 -05:00
|
|
|
<Bundle-SymbolicName>org.eclipse.jetty.test-jetty-webapp</Bundle-SymbolicName>
|
2010-09-15 14:36:53 -04:00
|
|
|
<Import-Package>javax.servlet,org.eclipse.jetty.servlets,*</Import-Package>
|
2010-06-24 18:57:34 -04:00
|
|
|
<Export-Package>!com.acme*</Export-Package>
|
2010-06-28 05:36:38 -04:00
|
|
|
<!-- the test webapp is configured via a jetty xml file
|
|
|
|
in order to add the security handler. -->
|
2010-06-24 18:57:34 -04:00
|
|
|
<Web-ContextPath>/</Web-ContextPath>
|
2010-06-28 05:36:38 -04:00
|
|
|
<!-- in fact the '.' must not be there
|
|
|
|
but Felix-BND has a bug:
|
|
|
|
http://www.mail-archive.com/users@felix.apache.org/msg04730.html
|
|
|
|
https://issues.apache.org/jira/browse/FELIX-1571
|
|
|
|
-->
|
|
|
|
<Bundle-ClassPath>.,WEB-INF/classes</Bundle-ClassPath>
|
2010-06-24 18:57:34 -04:00
|
|
|
<Bundle-RequiredExecutionEnvironment>J2SE-1.5</Bundle-RequiredExecutionEnvironment>
|
|
|
|
</instructions>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
2011-10-06 02:32:31 -04:00
|
|
|
<!--
|
2009-03-24 17:07:27 -04:00
|
|
|
<plugin>
|
2009-07-29 23:05:14 -04:00
|
|
|
<groupId>org.mortbay.jetty</groupId>
|
2009-03-24 17:07:27 -04:00
|
|
|
<artifactId>jetty-maven-plugin</artifactId>
|
2011-10-06 02:32:31 -04:00
|
|
|
<version>7.5.2-SNAPSHOT</version>
|
2009-03-24 17:07:27 -04:00
|
|
|
<configuration>
|
|
|
|
<stopPort>8087</stopPort>
|
|
|
|
<stopKey>foo</stopKey>
|
|
|
|
<scanIntervalSeconds>1</scanIntervalSeconds>
|
|
|
|
<systemProperties>
|
|
|
|
<systemProperty>
|
|
|
|
<name>fooprop</name>
|
|
|
|
<value>222</value>
|
|
|
|
</systemProperty>
|
|
|
|
</systemProperties>
|
|
|
|
<webAppConfig>
|
|
|
|
<contextPath>/test</contextPath>
|
|
|
|
<tempDirectory>${project.build.directory}/work</tempDirectory>
|
2009-07-01 23:52:29 -04:00
|
|
|
<sessionHandler implementation="org.eclipse.jetty.server.session.SessionHandler">
|
|
|
|
<sessionManager implementation="org.eclipse.jetty.server.session.HashSessionManager">
|
2009-03-24 17:07:27 -04:00
|
|
|
<storeDirectory>${basedir}/target/sessions</storeDirectory>
|
|
|
|
</sessionManager>
|
|
|
|
</sessionHandler>
|
|
|
|
</webAppConfig>
|
2009-07-01 23:52:29 -04:00
|
|
|
<loginServices>
|
|
|
|
<loginService implementation="org.eclipse.jetty.security.HashLoginService">
|
2009-03-24 17:07:27 -04:00
|
|
|
<name>Test Realm</name>
|
2010-05-18 08:37:46 -04:00
|
|
|
<config>src/main/config/etc/realm.properties</config>
|
2009-07-01 23:52:29 -04:00
|
|
|
</loginService>
|
|
|
|
</loginServices>
|
2009-03-24 17:07:27 -04:00
|
|
|
</configuration>
|
|
|
|
</plugin>
|
2009-07-29 23:05:14 -04:00
|
|
|
-->
|
2009-03-24 17:07:27 -04:00
|
|
|
<!-- uncomment to precompile jsps -->
|
|
|
|
<!--
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>jetty-jspc-maven-plugin</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>jspc</id>
|
|
|
|
<goals>
|
|
|
|
<goal>jspc</goal>
|
|
|
|
</goals>
|
|
|
|
<configuration>
|
|
|
|
<includes>**/*.foo</includes>
|
|
|
|
<excludes>**/*.fff</excludes>
|
|
|
|
</configuration>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
</plugin>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-war-plugin</artifactId>
|
|
|
|
<configuration>
|
|
|
|
<webXml>${basedir}/target/web.xml</webXml>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
-->
|
|
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>jetty-servlets</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
</dependency>
|
2011-11-30 00:27:30 -05:00
|
|
|
<dependency>
|
2012-01-31 17:21:58 -05:00
|
|
|
<groupId>org.eclipse.jetty.orbit</groupId>
|
|
|
|
<artifactId>javax.servlet</artifactId>
|
2011-11-30 00:27:30 -05:00
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2009-11-23 03:44:37 -05:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>jetty-websocket</artifactId>
|
|
|
|
<version>${project.version}</version>
|
2011-09-07 14:41:08 -04:00
|
|
|
<!--scope>provided</scope-->
|
2009-11-23 03:44:37 -05:00
|
|
|
</dependency>
|
2009-03-24 17:07:27 -04:00
|
|
|
<dependency>
|
2009-03-28 22:15:22 -04:00
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>jetty-webapp</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<scope>test</scope>
|
2009-03-24 17:07:27 -04:00
|
|
|
</dependency>
|
2009-04-21 19:13:50 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
2009-05-25 21:16:27 -04:00
|
|
|
<artifactId>test-jetty-servlet</artifactId>
|
2009-04-21 19:13:50 -04:00
|
|
|
<version>${project.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2009-04-22 01:18:40 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>jetty-jmx</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
2009-03-24 17:07:27 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>junit</groupId>
|
|
|
|
<artifactId>junit</artifactId>
|
|
|
|
<scope>test</scope>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.eclipse.jetty</groupId>
|
|
|
|
<artifactId>jetty-server</artifactId>
|
|
|
|
<version>${project.version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2010-04-20 04:49:19 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>javax.servlet.jsp</groupId>
|
|
|
|
<artifactId>jsp-api</artifactId>
|
|
|
|
<version>2.1</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2011-10-25 12:46:40 -04:00
|
|
|
<dependency>
|
|
|
|
<groupId>javax.servlet</groupId>
|
|
|
|
<artifactId>jstl</artifactId>
|
|
|
|
<version>1.2</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
2009-03-24 17:07:27 -04:00
|
|
|
</dependencies>
|
|
|
|
</project>
|