| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<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"> |
| 3 |
<modelVersion>4.0.0</modelVersion> |
| 4 |
|
| 5 |
<parent> |
| 6 |
<groupId>org.eclipse.jetty.ee8.its.jetty-start-mojo-it</groupId> |
| 7 |
<artifactId>jetty-simple-project</artifactId> |
| 8 |
<version>0.0.1-SNAPSHOT</version> |
| 9 |
</parent> |
| 10 |
|
| 11 |
<artifactId>jetty-simple-webapp</artifactId> |
| 12 |
<packaging>war</packaging> |
| 13 |
|
| 14 |
<name>EE8 :: Simple :: WebApp</name> |
| 15 |
|
| 16 |
<properties> |
| 17 |
<jetty.port.file>${project.build.directory}/jetty-start-port.txt</jetty.port.file> |
| 18 |
</properties> |
| 19 |
|
| 20 |
<dependencies> |
| 21 |
|
| 22 |
<dependency> |
| 23 |
<groupId>org.eclipse.jetty.ee8.its.jetty-start-mojo-it</groupId> |
| 24 |
<artifactId>jetty-simple-base</artifactId> |
| 25 |
</dependency> |
| 26 |
|
| 27 |
<dependency> |
| 28 |
<groupId>org.eclipse.jetty.ee8</groupId> |
| 29 |
<artifactId>jetty-ee8-servlet</artifactId> |
| 30 |
<scope>provided</scope> |
| 31 |
</dependency> |
| 32 |
|
| 33 |
<dependency> |
| 34 |
<groupId>org.eclipse.jetty.ee8</groupId> |
| 35 |
<artifactId>jetty-ee8-maven-plugin</artifactId> |
| 36 |
<classifier>tests</classifier> |
| 37 |
<type>test-jar</type> |
| 38 |
<scope>test</scope> |
| 39 |
</dependency> |
| 40 |
|
| 41 |
<dependency> |
| 42 |
<groupId>org.junit.jupiter</groupId> |
| 43 |
<artifactId>junit-jupiter-engine</artifactId> |
| 44 |
<scope>test</scope> |
| 45 |
</dependency> |
| 46 |
|
| 47 |
<dependency> |
| 48 |
<groupId>org.eclipse.jetty</groupId> |
| 49 |
<artifactId>jetty-client</artifactId> |
| 50 |
<scope>test</scope> |
| 51 |
</dependency> |
| 52 |
<dependency> |
| 53 |
<groupId>org.awaitility</groupId> |
| 54 |
<artifactId>awaitility</artifactId> |
| 55 |
<scope>test</scope> |
| 56 |
</dependency> |
| 57 |
</dependencies> |
| 58 |
|
| 59 |
<build> |
| 60 |
|
| 61 |
<pluginManagement> |
| 62 |
<plugins> |
| 63 |
<plugin> |
| 64 |
<groupId>org.apache.maven.plugins</groupId> |
| 65 |
<artifactId>maven-war-plugin</artifactId> |
| 66 |
<configuration> |
| 67 |
<failOnMissingWebXml>false</failOnMissingWebXml> |
| 68 |
</configuration> |
| 69 |
</plugin> |
| 70 |
</plugins> |
| 71 |
</pluginManagement> |
| 72 |
<plugins> |
| 73 |
<plugin> |
| 74 |
<groupId>org.apache.maven.plugins</groupId> |
| 75 |
<artifactId>maven-dependency-plugin</artifactId> |
| 76 |
<executions> |
| 77 |
<execution> |
| 78 |
<id>copy-random-dependency</id> |
| 79 |
<phase>generate-resources</phase> |
| 80 |
<goals> |
| 81 |
<goal>copy</goal> |
| 82 |
</goals> |
| 83 |
<configuration> |
| 84 |
<artifactItems> |
| 85 |
<artifactItem> |
| 86 |
<groupId>org.junit.jupiter</groupId> |
| 87 |
<artifactId>junit-jupiter-engine</artifactId> |
| 88 |
<version>@junit.version@</version> |
| 89 |
<type>jar</type> |
| 90 |
<outputDirectory>${project.build.directory}/dependency</outputDirectory> |
| 91 |
<destFileName>junit-jupiter-engine.jar</destFileName> |
| 92 |
</artifactItem> |
| 93 |
</artifactItems> |
| 94 |
</configuration> |
| 95 |
</execution> |
| 96 |
</executions> |
| 97 |
</plugin> |
| 98 |
<plugin> |
| 99 |
<groupId>org.apache.maven.plugins</groupId> |
| 100 |
<artifactId>maven-surefire-plugin</artifactId> |
| 101 |
<configuration> |
| 102 |
<includes> |
| 103 |
<include>IntegrationTest*.java</include> |
| 104 |
</includes> |
| 105 |
<systemPropertyVariables> |
| 106 |
<jetty.port.file>${jetty.port.file}</jetty.port.file> |
| 107 |
<context.path>/setbycontextxml</context.path> |
| 108 |
<pingServlet>true</pingServlet> |
| 109 |
<helloServlet>true</helloServlet> |
| 110 |
<contentCheck>Counter accessed 1 times.</contentCheck> |
| 111 |
<pathToCheck>/jsp/bean1.jsp</pathToCheck> |
| 112 |
<maven.it.name>${project.groupId}:${project.artifactId}</maven.it.name> |
| 113 |
</systemPropertyVariables> |
| 114 |
<dependenciesToScan> |
| 115 |
<dependency>org.eclipse.jetty.ee8:jetty-ee8-maven-plugin</dependency> |
| 116 |
</dependenciesToScan> |
| 117 |
</configuration> |
| 118 |
</plugin> |
| 119 |
<plugin> |
| 120 |
<groupId>org.eclipse.jetty.ee8</groupId> |
| 121 |
<artifactId>jetty-ee8-maven-plugin</artifactId> |
| 122 |
<executions> |
| 123 |
<execution> |
| 124 |
<id>start-jetty</id> |
| 125 |
<phase>test-compile</phase> |
| 126 |
<goals> |
| 127 |
<goal>start</goal> |
| 128 |
</goals> |
| 129 |
<configuration> |
| 130 |
<webApp> |
| 131 |
<extraClasspath>${project.build.directory}/dependency/junit-jupiter-engine.jar</extraClasspath> |
| 132 |
</webApp> |
| 133 |
<contextXml>${basedir}/src/config/context.xml</contextXml> |
| 134 |
<systemProperties> |
| 135 |
<jetty.port.file>${jetty.port.file}</jetty.port.file> |
| 136 |
<jetty.deployMode>EMBED</jetty.deployMode> |
| 137 |
</systemProperties> |
| 138 |
<jettyXmls> |
| 139 |
<jettyXml>${basedir}/src/config/jetty.xml</jettyXml> |
| 140 |
</jettyXmls> |
| 141 |
<loginServices> |
| 142 |
<loginService implementation="org.eclipse.jetty.security.HashLoginService"> |
| 143 |
<name>Test Realm</name> |
| 144 |
<config implementation="org.eclipse.jetty.maven.MavenResource"> |
| 145 |
<resourceAsString>${basedir}/src/config/realm.properties</resourceAsString> |
| 146 |
</config> |
| 147 |
</loginService> |
| 148 |
</loginServices> |
| 149 |
</configuration> |
| 150 |
</execution> |
| 151 |
</executions> |
| 152 |
</plugin> |
| 153 |
</plugins> |
| 154 |
</build> |
| 155 |
|
| 156 |
</project> |