| 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.olamy</groupId> |
| 7 | <artifactId>beer</artifactId> |
| 8 | <version>1.0-SNAPSHOT</version> |
| 9 | </parent> |
| 10 | |
| 11 | <artifactId>beer-server</artifactId> |
| 12 | <packaging>war</packaging> |
| 13 | |
| 14 | <properties> |
| 15 | <jetty.port.file>${project.build.directory}/jetty-start-mojo.txt</jetty.port.file> |
| 16 | <jetty.deployMode>EMBED</jetty.deployMode> |
| 17 | </properties> |
| 18 | |
| 19 | <dependencies> |
| 20 | <dependency> |
| 21 | <groupId>${project.groupId}</groupId> |
| 22 | <artifactId>beer-shared</artifactId> |
| 23 | <version>${project.version}</version> |
| 24 | </dependency> |
| 25 | <dependency> |
| 26 | <groupId>com.google.gwt</groupId> |
| 27 | <artifactId>gwt-servlet</artifactId> |
| 28 | </dependency> |
| 29 | <dependency> |
| 30 | <groupId>org.eclipse.jetty.toolchain</groupId> |
| 31 | <artifactId>jetty-servlet-api</artifactId> |
| 32 | <scope>provided</scope> |
| 33 | </dependency> |
| 34 | |
| 35 | <dependency> |
| 36 | <groupId>org.eclipse.jetty</groupId> |
| 37 | <artifactId>jetty-client</artifactId> |
| 38 | <scope>test</scope> |
| 39 | </dependency> |
| 40 | <dependency> |
| 41 | <groupId>org.awaitility</groupId> |
| 42 | <artifactId>awaitility</artifactId> |
| 43 | <scope>test</scope> |
| 44 | </dependency> |
| 45 | <dependency> |
| 46 | <groupId>org.eclipse.jetty</groupId> |
| 47 | <artifactId>jetty-util</artifactId> |
| 48 | <scope>test</scope> |
| 49 | </dependency> |
| 50 | <dependency> |
| 51 | <groupId>org.eclipse.jetty</groupId> |
| 52 | <artifactId>jetty-http</artifactId> |
| 53 | <scope>test</scope> |
| 54 | </dependency> |
| 55 | <dependency> |
| 56 | <groupId>org.eclipse.jetty</groupId> |
| 57 | <artifactId>jetty-io</artifactId> |
| 58 | <scope>test</scope> |
| 59 | </dependency> |
| 60 | <dependency> |
| 61 | <groupId>org.junit.jupiter</groupId> |
| 62 | <artifactId>junit-jupiter-engine</artifactId> |
| 63 | <scope>test</scope> |
| 64 | </dependency> |
| 65 | <dependency> |
| 66 | <groupId>org.eclipse.jetty.ee8</groupId> |
| 67 | <artifactId>jetty-ee8-maven-plugin</artifactId> |
| 68 | <classifier>tests</classifier> |
| 69 | <type>test-jar</type> |
| 70 | <scope>test</scope> |
| 71 | </dependency> |
| 72 | </dependencies> |
| 73 | |
| 74 | <build> |
| 75 | <plugins> |
| 76 | <plugin> |
| 77 | <groupId>org.apache.maven.plugins</groupId> |
| 78 | <artifactId>maven-surefire-plugin</artifactId> |
| 79 | <configuration> |
| 80 | <includes> |
| 81 | <include>IntegrationTest*.java</include> |
| 82 | </includes> |
| 83 | <systemPropertyVariables> |
| 84 | <jetty.port.file>${jetty.port.file}</jetty.port.file> |
| 85 | <contentCheck>Please enter your name</contentCheck> |
| 86 | <maven.it.name>${project.groupId}:${project.artifactId}</maven.it.name> |
| 87 | </systemPropertyVariables> |
| 88 | <dependenciesToScan> |
| 89 | <dependency>org.eclipse.jetty.ee8:jetty-ee8-maven-plugin</dependency> |
| 90 | </dependenciesToScan> |
| 91 | </configuration> |
| 92 | </plugin> |
| 93 | <plugin> |
| 94 | <groupId>org.eclipse.jetty.ee8</groupId> |
| 95 | <artifactId>jetty-ee8-maven-plugin</artifactId> |
| 96 | <executions> |
| 97 | <execution> |
| 98 | <id>run</id> |
| 99 | <phase>test-compile</phase> |
| 100 | <goals> |
| 101 | <goal>start</goal> |
| 102 | </goals> |
| 103 | <configuration> |
| 104 | <systemProperties> |
| 105 | <jetty.port.file>${jetty.port.file}</jetty.port.file> |
| 106 | </systemProperties> |
| 107 | <contextXml>${basedir}/src/main/jettyconf/context.xml</contextXml> |
| 108 | <jettyXmls> |
| 109 | <jettyXml>${basedir}/src/config/jetty.xml</jettyXml> |
| 110 | </jettyXmls> |
| 111 | </configuration> |
| 112 | </execution> |
| 113 | </executions> |
| 114 | </plugin> |
| 115 | </plugins> |
| 116 | </build> |
| 117 | |
| 118 | </project> |