|
| 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" |
| 3 | + 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 | + <parent> |
| 6 | + <groupId>com.vaadin</groupId> |
| 7 | + <artifactId>flow-tests</artifactId> |
| 8 | + <version>25.0-SNAPSHOT</version> |
| 9 | + </parent> |
| 10 | + <artifactId>test-router-custom-context-encoded-production</artifactId> |
| 11 | + <name>Flow Router on custom context with encoded chars test (Production Mode)</name> |
| 12 | + <packaging>war</packaging> |
| 13 | + |
| 14 | + <properties> |
| 15 | + <maven.deploy.skip>true</maven.deploy.skip> |
| 16 | + <jetty.skip>${maven.test.skip}</jetty.skip> |
| 17 | + <!-- |
| 18 | + Uses both URL encodable chars (e.g. space => %20) and chars that should be escaped |
| 19 | + in a regex ($ { *) to verify that the Flow client correctly computes location |
| 20 | + --> |
| 21 | + <jettyContextPath>/custom con$t{ext*rou}ter</jettyContextPath> |
| 22 | + </properties> |
| 23 | + |
| 24 | + <dependencies> |
| 25 | + <dependency> |
| 26 | + <groupId>com.vaadin</groupId> |
| 27 | + <artifactId>flow-test-resources</artifactId> |
| 28 | + <version>${project.version}</version> |
| 29 | + </dependency> |
| 30 | + <dependency> |
| 31 | + <groupId>com.vaadin</groupId> |
| 32 | + <artifactId>vaadin-dev-server</artifactId> |
| 33 | + <version>${project.version}</version> |
| 34 | + </dependency> |
| 35 | + <!-- |
| 36 | + Jetty Maven plugin automatically merges war dependencies with the current archive |
| 37 | + https://jetty.org/docs/jetty/12.1/programming-guide/maven-jetty/jetty-maven-plugin.html#using-overlaid-wars |
| 38 | + --> |
| 39 | + <dependency> |
| 40 | + <groupId>com.vaadin</groupId> |
| 41 | + <artifactId>test-router-custom-context</artifactId> |
| 42 | + <version>${project.version}</version> |
| 43 | + <type>war</type> |
| 44 | + </dependency> |
| 45 | + <!-- build-frontend needs WAR classes as JAR to scan for frontend resources --> |
| 46 | + <dependency> |
| 47 | + <groupId>com.vaadin</groupId> |
| 48 | + <artifactId>test-router-custom-context</artifactId> |
| 49 | + <version>${project.version}</version> |
| 50 | + <classifier>classes</classifier> |
| 51 | + <scope>provided</scope> |
| 52 | + </dependency> |
| 53 | + <dependency> |
| 54 | + <groupId>com.vaadin</groupId> |
| 55 | + <artifactId>test-router-custom-context</artifactId> |
| 56 | + <version>${project.version}</version> |
| 57 | + <classifier>tests</classifier> |
| 58 | + <type>test-jar</type> |
| 59 | + <scope>test</scope> |
| 60 | + </dependency> |
| 61 | + </dependencies> |
| 62 | + |
| 63 | + <build> |
| 64 | + <plugins> |
| 65 | + <!-- The Jetty plugin allows us to easily test the development |
| 66 | + build by running jetty:run --> |
| 67 | + <plugin> |
| 68 | + <groupId>org.eclipse.jetty.ee10</groupId> |
| 69 | + <artifactId>jetty-ee10-maven-plugin</artifactId> |
| 70 | + <version>${jetty.version}</version> |
| 71 | + <executions> |
| 72 | + <!-- start and stop jetty (running our app) when running |
| 73 | + integration tests --> |
| 74 | + <execution> |
| 75 | + <id>start-jetty</id> |
| 76 | + <phase>pre-integration-test</phase> |
| 77 | + <goals> |
| 78 | + <goal>start</goal> |
| 79 | + </goals> |
| 80 | + </execution> |
| 81 | + <execution> |
| 82 | + <id>stop-jetty</id> |
| 83 | + <phase>post-integration-test</phase> |
| 84 | + <goals> |
| 85 | + <goal>stop</goal> |
| 86 | + </goals> |
| 87 | + </execution> |
| 88 | + </executions> |
| 89 | + <configuration> |
| 90 | + <webApp> |
| 91 | + <contextPath>${jettyContextPath}</contextPath> |
| 92 | + </webApp> |
| 93 | + </configuration> |
| 94 | + </plugin> |
| 95 | + <plugin> |
| 96 | + <groupId>com.vaadin</groupId> |
| 97 | + <artifactId>flow-maven-plugin</artifactId> |
| 98 | + <executions> |
| 99 | + <execution> |
| 100 | + <phase>compile</phase> |
| 101 | + <goals> |
| 102 | + <goal>prepare-frontend</goal> |
| 103 | + <goal>build-frontend</goal> |
| 104 | + </goals> |
| 105 | + </execution> |
| 106 | + </executions> |
| 107 | + </plugin> |
| 108 | + <plugin> |
| 109 | + <groupId>org.apache.maven.plugins</groupId> |
| 110 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 111 | + <configuration> |
| 112 | + <systemPropertyVariables> |
| 113 | + <vaadin.test.jettyContextPath>${jettyContextPath}</vaadin.test.jettyContextPath> |
| 114 | + </systemPropertyVariables> |
| 115 | + <dependenciesToScan> |
| 116 | + <dependency>com.vaadin:test-router-custom-context:test-jar:tests</dependency> |
| 117 | + </dependenciesToScan> |
| 118 | + </configuration> |
| 119 | + </plugin> |
| 120 | + </plugins> |
| 121 | + </build> |
| 122 | + |
| 123 | + |
| 124 | +</project> |
0 commit comments