aboutsummaryrefslogtreecommitdiffstats
path: root/test/servlet-containers/tomcat85/pom.xml
blob: 8fcf76066b71028682aa92cc62d65850cd44f7cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px
<?xml version="1.0" encoding="UTF-8"?>
<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">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.vaadin</groupId>
        <artifactId>vaadin-servlet-containers-test</artifactId>
        <version>8.14-SNAPSHOT</version>
    </parent>
    <artifactId>vaadin-test-tomcat85-server</artifactId>
    <name>Vaadin Tomcat 8.5 Test</name>
    <packaging>war</packaging>
    <properties>
        <jetty.skip>true</jetty.skip>
        <tomcat.version>8.5.23</tomcat.version>
        <server.name>tomcat8.5</server.name>
    </properties>

    <dependencies>
        <!-- UI classes and tests from dependencies -->
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-test-server-ui</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-test-server-tests</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <!-- Server configuration -->
            <plugin>
                <groupId>org.codehaus.cargo</groupId>
                <artifactId>cargo-maven2-plugin</artifactId>
                <configuration>
                    <container>
                        <containerId>tomcat8x</containerId>
                        <artifactInstaller>
                            <groupId>org.apache.tomcat</groupId>
                            <artifactId>tomcat</artifactId>
                            <version>${tomcat.version}</version>
                        </artifactInstaller>
                    </container>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
<scanner.version>${scanner.version}</scanner.version> </systemProperties> <includes> <include>**/SonarScannerTestSuite.java</include> </includes> </configuration> </plugin> </plugins> </pluginManagement> </build> <profiles> <profile> <id>download-qa-artifacts</id> <activation> <property> <name>env.CI_BUILD_NUMBER</name> </property> </activation> <build> <plugins> <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>groovy-maven-plugin</artifactId> <version>2.0</version> <executions> <execution> <id>compute-qa-version</id> <phase>initialize</phase> <goals> <goal>execute</goal> </goals> <configuration> <source><![CDATA[ String pom = new File(project.basedir, '../pom.xml').getText('UTF-8') def matcher = pom =~ /(?s).*<version>(.*?)-SNAPSHOT<\/version>.*/ assert matcher.matches() def versionNoSnapshot = matcher[0][1] if (new StringTokenizer(versionNoSnapshot, ".").countTokens() == 2) { versionNoSnapshot += '.0' } project.properties['scanner.version'] = versionNoSnapshot + '.' + System.getenv()['CI_BUILD_NUMBER'] ]]> </source> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>3.0.2</version> <executions> <execution> <id>download-qa-scanner</id> <phase>initialize</phase> <goals> <goal>get</goal> </goals> <configuration> <artifact>org.sonarsource.scanner.cli:sonar-scanner-cli:${scanner.version}:zip</artifact> </configuration> </execution> <execution> <id>get-linux-scanner</id> <phase>initialize</phase> <goals> <goal>get</goal> </goals> <configuration> <artifact>org.sonarsource.scanner.cli:sonar-scanner-cli:${scanner.version}:zip:linux</artifact> </configuration> </execution> <execution> <id>get-windows-scanner</id> <phase>initialize</phase> <goals> <goal>get</goal> </goals> <configuration> <artifact>org.sonarsource.scanner.cli:sonar-scanner-cli:${scanner.version}:zip:windows</artifact> </configuration> </execution> <execution> <id>get-macosx-scanner</id> <phase>initialize</phase> <goals> <goal>get</goal> </goals> <configuration> <artifact>org.sonarsource.scanner.cli:sonar-scanner-cli:${scanner.version}:zip:macosx</artifact> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>