| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
|
| 3 |
<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"> |
| 4 |
<modelVersion>4.0.0</modelVersion> |
| 5 |
|
| 6 |
<groupId>org.eclipse.jetty.its</groupId> |
| 7 |
<artifactId>jetty-runner-ee9-it-test-demo-simple-webapp</artifactId> |
| 8 |
<version>1.0.0-SNAPSHOT</version> |
| 9 |
<packaging>war</packaging> |
| 10 |
|
| 11 |
<properties> |
| 12 |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 13 |
|
| 14 |
</properties> |
| 15 |
|
| 16 |
<dependencies> |
| 17 |
<dependency> |
| 18 |
<groupId>org.eclipse.jetty.ee9</groupId> |
| 19 |
<artifactId>jetty-ee9-runner</artifactId> |
| 20 |
<version>@project.version@</version> |
| 21 |
</dependency> |
| 22 |
<dependency> |
| 23 |
<groupId>org.eclipse.jetty.ee9</groupId> |
| 24 |
<artifactId>jetty-ee9-runner</artifactId> |
| 25 |
<version>@project.version@</version> |
| 26 |
<classifier>tests</classifier> |
| 27 |
<type>test-jar</type> |
| 28 |
<scope>test</scope> |
| 29 |
</dependency> |
| 30 |
<dependency> |
| 31 |
<groupId>org.eclipse.jetty.ee9.demos</groupId> |
| 32 |
<artifactId>jetty-ee9-demo-simple-webapp</artifactId> |
| 33 |
<version>@project.version@</version> |
| 34 |
<type>war</type> |
| 35 |
</dependency> |
| 36 |
<dependency> |
| 37 |
<groupId>org.eclipse.jetty</groupId> |
| 38 |
<artifactId>jetty-client</artifactId> |
| 39 |
<version>@project.version@</version> |
| 40 |
<scope>test</scope> |
| 41 |
</dependency> |
| 42 |
<dependency> |
| 43 |
<groupId>org.hamcrest</groupId> |
| 44 |
<artifactId>hamcrest-core</artifactId> |
| 45 |
<version>@hamcrest.version@</version> |
| 46 |
<scope>test</scope> |
| 47 |
</dependency> |
| 48 |
</dependencies> |
| 49 |
|
| 50 |
<build> |
| 51 |
|
| 52 |
<plugins> |
| 53 |
<plugin> |
| 54 |
<groupId>org.apache.maven.plugins</groupId> |
| 55 |
<artifactId>maven-dependency-plugin</artifactId> |
| 56 |
<version>@maven.dependency.plugin.version@</version> |
| 57 |
<executions> |
| 58 |
<execution> |
| 59 |
<id>copy-jetty-runner</id> |
| 60 |
<phase>generate-resources</phase> |
| 61 |
<goals> |
| 62 |
<goal>copy</goal> |
| 63 |
</goals> |
| 64 |
<configuration> |
| 65 |
<artifactItems> |
| 66 |
<artifactItem> |
| 67 |
<groupId>org.eclipse.jetty.ee9</groupId> |
| 68 |
<artifactId>jetty-ee9-runner</artifactId> |
| 69 |
<version>@project.version@</version> |
| 70 |
<type>jar</type> |
| 71 |
<overWrite>false</overWrite> |
| 72 |
<outputDirectory>${project.build.directory}/</outputDirectory> |
| 73 |
<destFileName>jetty-runner.jar</destFileName> |
| 74 |
</artifactItem> |
| 75 |
<artifactItem> |
| 76 |
<groupId>org.eclipse.jetty.ee9.demos</groupId> |
| 77 |
<artifactId>jetty-ee9-demo-simple-webapp</artifactId> |
| 78 |
<version>@project.version@</version> |
| 79 |
<type>war</type> |
| 80 |
<overWrite>false</overWrite> |
| 81 |
<outputDirectory>${project.build.directory}</outputDirectory> |
| 82 |
<destFileName>demo-simple-webapp.war</destFileName> |
| 83 |
</artifactItem> |
| 84 |
</artifactItems> |
| 85 |
<overWriteReleases>false</overWriteReleases> |
| 86 |
<overWriteSnapshots>true</overWriteSnapshots> |
| 87 |
</configuration> |
| 88 |
</execution> |
| 89 |
</executions> |
| 90 |
</plugin> |
| 91 |
<plugin> |
| 92 |
<groupId>org.codehaus.mojo</groupId> |
| 93 |
<artifactId>exec-maven-plugin</artifactId> |
| 94 |
<version>@maven.exec.plugin.version@</version> |
| 95 |
<executions> |
| 96 |
<execution> |
| 97 |
<goals> |
| 98 |
<goal>exec</goal> |
| 99 |
</goals> |
| 100 |
<phase>generate-test-resources</phase> |
| 101 |
<configuration> |
| 102 |
<outputFile>${project.build.directory}/jetty-runner.log</outputFile> |
| 103 |
<async>true</async> |
| 104 |
<executable>${java.home}/bin/java</executable> |
| 105 |
<arguments> |
| 106 |
<argument>-jar</argument> |
| 107 |
<argument>${project.build.directory}/jetty-runner.jar</argument> |
| 108 |
<argument>--out</argument> |
| 109 |
<argument>${project.build.directory}/jetty-runner.out</argument> |
| 110 |
<argument>--port</argument> |
| 111 |
<argument>0</argument> |
| 112 |
<argument>--path</argument> |
| 113 |
<argument>french-chocolate-rocks</argument> |
| 114 |
<argument>--server-uri-file</argument> |
| 115 |
<argument>${project.build.directory}/server-uri.txt</argument> |
| 116 |
<argument>${project.build.directory}/demo-simple-webapp.war</argument> |
| 117 |
</arguments> |
| 118 |
</configuration> |
| 119 |
</execution> |
| 120 |
</executions> |
| 121 |
</plugin> |
| 122 |
<plugin> |
| 123 |
<groupId>org.apache.maven.plugins</groupId> |
| 124 |
<artifactId>maven-surefire-plugin</artifactId> |
| 125 |
<version>@maven.surefire.plugin.version@</version> |
| 126 |
<configuration> |
| 127 |
<includes> |
| 128 |
<include>IntegrationTest*.java</include> |
| 129 |
</includes> |
| 130 |
<systemPropertyVariables> |
| 131 |
</systemPropertyVariables> |
| 132 |
<dependenciesToScan> |
| 133 |
<dependency>org.eclipse.jetty.ee9:jetty-ee9-runner</dependency> |
| 134 |
</dependenciesToScan> |
| 135 |
</configuration> |
| 136 |
</plugin> |
| 137 |
</plugins> |
| 138 |
</build> |
| 139 |
</project> |