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.4KB

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