pom.xml 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <relativePath>../</relativePath>
  6. <artifactId>moquette-parent</artifactId>
  7. <groupId>io.moquette</groupId>
  8. <version>0.11-SNAPSHOT</version>
  9. </parent>
  10. <artifactId>moquette-osgi-test</artifactId>
  11. <packaging>jar</packaging>
  12. <name>Moquette - OSGi test</name>
  13. <properties>
  14. <pax.exam.version>4.6.0</pax.exam.version>
  15. <url.version>1.4.0</url.version>
  16. </properties>
  17. <dependencies>
  18. <dependency>
  19. <groupId>io.moquette</groupId>
  20. <artifactId>moquette-broker</artifactId>
  21. <version>${project.version}</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>io.moquette</groupId>
  25. <artifactId>moquette-h2-storage</artifactId>
  26. <version>${project.version}</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>io.moquette</groupId>
  30. <artifactId>moquette-mapdb-storage</artifactId>
  31. <version>${project.version}</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>javax.servlet</groupId>
  35. <artifactId>javax.servlet-api</artifactId>
  36. <version>3.1.0</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.slf4j</groupId>
  40. <artifactId>slf4j-api</artifactId>
  41. <version>1.7.5</version>
  42. <scope>test</scope>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.slf4j</groupId>
  46. <artifactId>slf4j-log4j12</artifactId>
  47. <version>1.7.5</version>
  48. <scope>test</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.ops4j.pax.exam</groupId>
  52. <artifactId>pax-exam-container-native</artifactId>
  53. <version>${pax.exam.version}</version>
  54. <scope>test</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.ops4j.pax.exam</groupId>
  58. <artifactId>pax-exam-junit4</artifactId>
  59. <version>${pax.exam.version}</version>
  60. <scope>test</scope>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.ops4j.pax.exam</groupId>
  64. <artifactId>pax-exam-link-mvn</artifactId>
  65. <version>${pax.exam.version}</version>
  66. <scope>test</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.ops4j.pax.url</groupId>
  70. <artifactId>pax-url-aether</artifactId>
  71. <version>${url.version}</version>
  72. <scope>test</scope>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.apache.felix</groupId>
  76. <artifactId>org.apache.felix.framework</artifactId>
  77. <version>5.0.0</version>
  78. <scope>test</scope>
  79. </dependency>
  80. <dependency>
  81. <groupId>javax.inject</groupId>
  82. <artifactId>javax.inject</artifactId>
  83. <version>1</version>
  84. <scope>test</scope>
  85. </dependency>
  86. </dependencies>
  87. <build>
  88. <plugins>
  89. <plugin>
  90. <groupId>org.apache.maven.plugins</groupId>
  91. <artifactId>maven-antrun-plugin</artifactId>
  92. <version>1.7</version>
  93. <executions>
  94. <execution>
  95. <id>compile</id>
  96. <phase>compile</phase>
  97. <configuration>
  98. <target>
  99. <property name="compile_classpath" refid="maven.compile.classpath"/>
  100. <property name="runtime_classpath" refid="maven.runtime.classpath"/>
  101. <property name="test_classpath" refid="maven.test.classpath"/>
  102. <property name="plugin_classpath" refid="maven.plugin.classpath"/>
  103. <echo message="compile classpath: ${compile_classpath}"/>
  104. <echo message="runtime classpath: ${runtime_classpath}"/>
  105. <echo message="test classpath: ${test_classpath}"/>
  106. <echo message="plugin classpath: ${plugin_classpath}"/>
  107. </target>
  108. </configuration>
  109. <goals>
  110. <goal>run</goal>
  111. </goals>
  112. </execution>
  113. </executions>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.ops4j.pax.exam</groupId>
  117. <artifactId>exam-maven-plugin</artifactId>
  118. <version>${pax.exam.version}</version>
  119. <configuration>
  120. <configClass>io.moquette.test.osgi.MoquetteOsgiTest</configClass>
  121. </configuration>
  122. <executions>
  123. <execution>
  124. <goals>
  125. <goal>start-container</goal>
  126. <goal>stop-container</goal>
  127. </goals>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. <plugin>
  132. <groupId>org.apache.servicemix.tooling</groupId>
  133. <artifactId>depends-maven-plugin</artifactId>
  134. <version>1.2</version>
  135. <executions>
  136. <execution>
  137. <id>generate-depends-file</id>
  138. <phase>generate-resources</phase>
  139. <goals>
  140. <goal>generate-depends-file</goal>
  141. </goals>
  142. </execution>
  143. </executions>
  144. </plugin>
  145. <plugin>
  146. <groupId>org.apache.maven.plugins</groupId>
  147. <artifactId>maven-failsafe-plugin</artifactId>
  148. <version>2.12</version>
  149. <executions>
  150. <execution>
  151. <goals>
  152. <goal>integration-test</goal>
  153. </goals>
  154. </execution>
  155. </executions>
  156. <configuration>
  157. <forkMode>always</forkMode>
  158. <parallel>none</parallel>
  159. <threadCount>1</threadCount>
  160. </configuration>
  161. </plugin>
  162. </plugins>
  163. </build>
  164. </project>