|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- <?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">
- <parent>
- <artifactId>vaadin-test-karaf</artifactId>
- <groupId>com.vaadin</groupId>
- <version>8.12-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
-
- <artifactId>karaf-run</artifactId>
- <packaging>pom</packaging>
- <name>Vaadin Karaf Test Runner</name>
-
- <dependencies>
- <!--Vaadin dependencies should not be in a classpath-->
- <dependency>
- <groupId>com.vaadin</groupId>
- <artifactId>vaadin-server</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.vaadin</groupId>
- <artifactId>vaadin-themes</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>com.vaadin</groupId>
- <artifactId>vaadin-karaf-bundle1</artifactId>
- <version>${project.version}</version>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>com.vaadin</groupId>
- <artifactId>vaadin-karaf-bundle2</artifactId>
- <version>${project.version}</version>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
- <profiles>
- <profile>
- <id>windows</id>
- <activation>
- <os>
- <family>Windows</family>
- </os>
- </activation>
- <properties>
- <karaf.script>karaf.bat</karaf.script>
- </properties>
- </profile>
- </profiles>
-
- <properties>
- <karaf.script>karaf</karaf.script>
- <karaf.home>${project.basedir}/apache-karaf-${karaf.plugin.version}-minimal</karaf.home>
- </properties>
-
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-clean-plugin</artifactId>
- <executions>
- <execution><id>clean-karaf</id>
- <phase>pre-integration-test</phase>
- <goals><goal>clean</goal></goals>
- <configuration>
- <failOnError>false</failOnError>
- <excludeDefaultDirectories>true</excludeDefaultDirectories>
- <filesets>
- <fileset>
- <directory>${karaf.home}</directory>
- <includes>
- <include>lock</include>
- <include>karaf.pid</include>
- <include>instances/*</include>
- <include>data/*</include>
- <include>data/*</include>
- <include>data/*/**</include>
- </includes>
- </fileset>
- </filesets>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.6.0</version>
- <executions>
- <execution>
- <id>start-karaf-background</id>
- <phase>pre-integration-test</phase>
- <goals>
- <goal>exec</goal>
- </goals>
- <configuration>
- <executable>${karaf.home}/bin/${karaf.script}
- </executable>
- <async>true</async>
- <asyncDestroyOnShutdown>true</asyncDestroyOnShutdown>
- <commandlineArgs>server</commandlineArgs>
- <workingDirectory>${project.build.directory}</workingDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.karaf.tooling</groupId>
- <artifactId>karaf-maven-plugin</artifactId>
- <version>4.2.1</version>
- <executions>
- <execution>
- <id>karaf-client-ctrl</id>
- <phase>pre-integration-test</phase>
- <goals>
- <goal>client</goal>
- </goals>
- <configuration>
- <delay>5</delay>
- <attempts>150</attempts>
- <commands>
- <!--Scheduled shutdown in 15 minutes-->
- <command>shutdown -f +10</command>
- <command>feature:install http</command>
- <command>feature:install http-whiteboard</command>
- <command>bundle:install -s mvn:org.jsoup/jsoup/1.11.2</command>
- <command>bundle:install -s mvn:com.vaadin.external/gentyref/1.2.0.vaadin1</command>
- <command>bundle:install -s mvn:com.vaadin/vaadin-shared/${vaadin.version}</command>
- <command>bundle:install -s mvn:com.vaadin/vaadin-server/${vaadin.version}</command>
- <command>bundle:install -s mvn:com.vaadin/vaadin-osgi-integration/${vaadin.version}
- </command>
- <command>bundle:install -s mvn:com.vaadin/vaadin-client-compiled/${vaadin.version}
- </command>
- <command>bundle:install -s mvn:com.vaadin/vaadin-themes/${vaadin.version}</command>
- <command>
- <![CDATA[bundle:install -s file:./../../vaadin-karaf-bundle1/target/vaadin-karaf-bundle1-${project.version}.jar]]></command>
- <command>
- <![CDATA[bundle:install -s file:./../../vaadin-karaf-bundle2/target/vaadin-karaf-bundle2-${project.version}.jar]]></command>
- </commands>
- </configuration>
- </execution>
- <execution>
- <id>karaf-client-shutdown</id>
- <phase>post-integration-test</phase>
- <goals>
- <goal>client</goal>
- </goals>
- <configuration>
- <delay>5</delay>
- <attempts>10</attempts>
- <commands>
- <command>system:shutdown -f</command>
- </commands>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-failsafe-plugin</artifactId>
- <version>2.19.1</version>
- <executions>
- <execution>
- <goals>
- <goal>integration-test</goal>
- <goal>verify</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <environmentVariables>
- <vaadin.version>${vaadin.version}</vaadin.version>
- </environmentVariables>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
|