You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 5.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>vaadin-test-karaf</artifactId>
  7. <groupId>com.vaadin</groupId>
  8. <relativePath>..</relativePath>
  9. <version>8.1-SNAPSHOT</version>
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <artifactId>karaf-run</artifactId>
  13. <name>Vaadin Karaf Test Runner</name>
  14. <dependencies>
  15. <!--Vaadin dependencies should not be in a classpath-->
  16. <dependency>
  17. <groupId>com.vaadin</groupId>
  18. <artifactId>vaadin-server</artifactId>
  19. <version>${vaadin.version}</version>
  20. <scope>provided</scope>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.vaadin</groupId>
  24. <artifactId>vaadin-themes</artifactId>
  25. <version>${vaadin.version}</version>
  26. <scope>provided</scope>
  27. </dependency>
  28. </dependencies>
  29. <build>
  30. <plugins>
  31. <plugin>
  32. <groupId>org.codehaus.mojo</groupId>
  33. <artifactId>exec-maven-plugin</artifactId>
  34. <version>1.6.0</version>
  35. <executions>
  36. <execution>
  37. <phase>pre-integration-test</phase>
  38. <goals>
  39. <goal>exec</goal>
  40. </goals>
  41. <configuration>
  42. <executable>mvn</executable>
  43. <async>true</async>
  44. <asyncDestroyOnShutdown>true</asyncDestroyOnShutdown>
  45. <commandlineArgs>-f karaf-run-pom.xml karaf:run</commandlineArgs>
  46. </configuration>
  47. </execution>
  48. </executions>
  49. </plugin>
  50. <plugin>
  51. <groupId>org.apache.karaf.tooling</groupId>
  52. <artifactId>karaf-maven-plugin</artifactId>
  53. <version>4.0.8</version>
  54. <executions>
  55. <execution>
  56. <id>karaf-client-ctrl</id>
  57. <phase>pre-integration-test</phase>
  58. <goals>
  59. <goal>client</goal>
  60. </goals>
  61. <configuration>
  62. <delay>5</delay>
  63. <attempts>150</attempts>
  64. <commands>
  65. <!--Scheduled shutdown in 15 minutes-->
  66. <command>shutdown -f +10</command>
  67. <command>feature:install http</command>
  68. <command>feature:install http-whiteboard</command>
  69. <command>bundle:install -s mvn:org.jsoup/jsoup/1.8.3</command>
  70. <command>bundle:install -s mvn:com.vaadin.external/gentyref/1.2.0.vaadin1</command>
  71. <command>bundle:install -s mvn:com.vaadin/vaadin-shared/${vaadin.version}</command>
  72. <command>bundle:install -s mvn:com.vaadin/vaadin-server/${vaadin.version}</command>
  73. <command>bundle:install -s mvn:com.vaadin/vaadin-osgi-integration/${vaadin.version}</command>
  74. <command>bundle:install -s mvn:com.vaadin/vaadin-client-compiled/${vaadin.version}</command>
  75. <command>bundle:install -s mvn:com.vaadin/vaadin-themes/${vaadin.version}</command>
  76. <command>
  77. <![CDATA[bundle:install -s file:./../vaadin-karaf-bundle1/target/vaadin-karaf-bundle1-${project.version}.jar]]></command>
  78. <command>
  79. <![CDATA[bundle:install -s file:./../vaadin-karaf-bundle2/target/vaadin-karaf-bundle2-${project.version}.jar]]></command>
  80. </commands>
  81. </configuration>
  82. </execution>
  83. <execution>
  84. <id>karaf-client-shutdown</id>
  85. <phase>post-integration-test</phase>
  86. <goals>
  87. <goal>client</goal>
  88. </goals>
  89. <configuration>
  90. <delay>5</delay>
  91. <attempts>10</attempts>
  92. <commands>
  93. <command>system:shutdown -f</command>
  94. </commands>
  95. </configuration>
  96. </execution>
  97. </executions>
  98. </plugin>
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-failsafe-plugin</artifactId>
  102. <version>2.19.1</version>
  103. <executions>
  104. <execution>
  105. <goals>
  106. <goal>integration-test</goal>
  107. <goal>verify</goal>
  108. </goals>
  109. </execution>
  110. </executions>
  111. <configuration>
  112. <environmentVariables>
  113. <vaadin.version>${vaadin.version}</vaadin.version>
  114. </environmentVariables>
  115. </configuration>
  116. </plugin>
  117. </plugins>
  118. </build>
  119. </project>