/opennms-assemblies/http-remoting/pom.xml

https://github.com/ajakubo1/opennms · XML · 239 lines · 221 code · 4 blank · 14 comment · 0 complexity · aad878046b79534d47604e7dd6713330 MD5 · raw file

  1. <?xml version="1.0"?>
  2. <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/maven-v4_0_0.xsd">
  3. <parent>
  4. <groupId>org.opennms</groupId>
  5. <artifactId>org.opennms.assemblies</artifactId>
  6. <version>1.13.5-SNAPSHOT</version>
  7. </parent>
  8. <modelVersion>4.0.0</modelVersion>
  9. <groupId>org.opennms.assemblies</groupId>
  10. <artifactId>org.opennms.assemblies.http-remoting</artifactId>
  11. <packaging>war</packaging>
  12. <name>OpenNMS HTTP Remoting Backend</name>
  13. <!--
  14. On Windows and Linux, we should be able to build the opennms-remote-poller-windows EXE installer
  15. so include the installer EXE in the webapp on those platforms.
  16. If you edit the profile's <build>, make sure to change both profiles since they are identical.
  17. -->
  18. <profiles>
  19. <profile>
  20. <id>linux</id>
  21. <activation>
  22. <os>
  23. <name>Linux</name>
  24. </os>
  25. </activation>
  26. <build>
  27. <plugins>
  28. <plugin>
  29. <groupId>org.apache.maven.plugins</groupId>
  30. <artifactId>maven-dependency-plugin</artifactId>
  31. <executions>
  32. <execution>
  33. <id>copy</id>
  34. <goals>
  35. <goal>copy</goal>
  36. </goals>
  37. <configuration>
  38. <artifactItems>
  39. <artifactItem>
  40. <groupId>org.opennms.assemblies</groupId>
  41. <artifactId>opennms-remote-poller-windows</artifactId>
  42. <version>${project.version}</version>
  43. <type>exe</type>
  44. <overWrite>true</overWrite>
  45. </artifactItem>
  46. </artifactItems>
  47. </configuration>
  48. </execution>
  49. </executions>
  50. </plugin>
  51. </plugins>
  52. </build>
  53. </profile>
  54. <profile>
  55. <id>windows</id>
  56. <activation>
  57. <os>
  58. <family>windows</family>
  59. </os>
  60. </activation>
  61. <build>
  62. <plugins>
  63. <plugin>
  64. <groupId>org.apache.maven.plugins</groupId>
  65. <artifactId>maven-dependency-plugin</artifactId>
  66. <executions>
  67. <execution>
  68. <id>copy</id>
  69. <goals>
  70. <goal>copy</goal>
  71. </goals>
  72. <configuration>
  73. <artifactItems>
  74. <artifactItem>
  75. <groupId>org.opennms.assemblies</groupId>
  76. <artifactId>opennms-remote-poller-windows</artifactId>
  77. <version>${project.version}</version>
  78. <type>exe</type>
  79. <overWrite>true</overWrite>
  80. </artifactItem>
  81. </artifactItems>
  82. </configuration>
  83. </execution>
  84. </executions>
  85. </plugin>
  86. </plugins>
  87. </build>
  88. </profile>
  89. </profiles>
  90. <build>
  91. <resources>
  92. <resource>
  93. <directory>src/main/filtered</directory>
  94. <filtering>true</filtering>
  95. </resource>
  96. </resources>
  97. <plugins>
  98. <plugin>
  99. <artifactId>maven-deploy-plugin</artifactId>
  100. <configuration>
  101. <skip>true</skip>
  102. </configuration>
  103. </plugin>
  104. <plugin>
  105. <groupId>org.apache.maven.plugins</groupId>
  106. <artifactId>maven-dependency-plugin</artifactId>
  107. <executions>
  108. <execution>
  109. <id>unpack</id>
  110. <goals>
  111. <goal>unpack</goal>
  112. </goals>
  113. <configuration>
  114. <artifactItems>
  115. <artifactItem>org.opennms.features:org.opennms.features.remote-poller-jnlp:tar.gz:jnlp
  116. <groupId>org.opennms.features</groupId>
  117. <artifactId>org.opennms.features.remote-poller-jnlp</artifactId>
  118. <version>${project.version}</version>
  119. <classifier>jnlp</classifier>
  120. <type>tar.gz</type>
  121. <overWrite>true</overWrite>
  122. <outputDirectory>${project.build.directory}/dependency/webstart</outputDirectory>
  123. </artifactItem>
  124. </artifactItems>
  125. </configuration>
  126. </execution>
  127. </executions>
  128. </plugin>
  129. <!--
  130. Add the dependency directory to the list of webapp resources so that the
  131. installer EXE and JNLP files are included in the webapp.
  132. -->
  133. <plugin>
  134. <groupId>org.apache.maven.plugins</groupId>
  135. <artifactId>maven-war-plugin</artifactId>
  136. <configuration>
  137. <webResources>
  138. <resource>
  139. <directory>${project.build.directory}/dependency</directory>
  140. </resource>
  141. <resource>
  142. <directory>${project.build.directory}/classes</directory>
  143. </resource>
  144. </webResources>
  145. </configuration>
  146. </plugin>
  147. </plugins>
  148. </build>
  149. <dependencies>
  150. <!-- dependencies that should be included directly -->
  151. <dependency>
  152. <groupId>org.opennms.dependencies</groupId>
  153. <artifactId>jnlp-dependencies</artifactId>
  154. <type>pom</type>
  155. </dependency>
  156. <!-- Make sure that the Windows EXE installer builds before this assembly -->
  157. <dependency>
  158. <groupId>org.opennms.assemblies</groupId>
  159. <artifactId>opennms-remote-poller-windows</artifactId>
  160. <type>pom</type>
  161. <scope>provided</scope>
  162. </dependency>
  163. <!-- dependencies that should exist in $OPENNMS_HOME/lib -->
  164. <dependency>
  165. <groupId>org.opennms</groupId>
  166. <artifactId>opennms-services</artifactId>
  167. <scope>provided</scope>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.opennms.dependencies</groupId>
  171. <artifactId>spring-dependencies</artifactId>
  172. <type>pom</type>
  173. <scope>provided</scope>
  174. </dependency>
  175. <dependency>
  176. <groupId>org.opennms.dependencies</groupId>
  177. <artifactId>spring-security-dependencies</artifactId>
  178. <type>pom</type>
  179. <scope>provided</scope>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.opennms.dependencies</groupId>
  183. <artifactId>spring-web-dependencies</artifactId>
  184. <type>pom</type>
  185. <scope>provided</scope>
  186. </dependency>
  187. <dependency>
  188. <groupId>org.opennms.features</groupId>
  189. <artifactId>org.opennms.features.springframework-security</artifactId>
  190. <scope>provided</scope>
  191. </dependency>
  192. <!-- test dependencies -->
  193. <dependency>
  194. <groupId>org.opennms</groupId>
  195. <artifactId>opennms-test</artifactId>
  196. <scope>test</scope>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.opennms.tests</groupId>
  200. <artifactId>org.opennms.tests.mock-elements</artifactId>
  201. <scope>test</scope>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.opennms.core.test-api</groupId>
  205. <artifactId>org.opennms.core.test-api.db</artifactId>
  206. <scope>test</scope>
  207. </dependency>
  208. <dependency>
  209. <groupId>org.opennms.core.test-api</groupId>
  210. <artifactId>org.opennms.core.test-api.http</artifactId>
  211. <scope>test</scope>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.opennms.dependencies</groupId>
  215. <artifactId>spring-test-dependencies</artifactId>
  216. <type>pom</type>
  217. <scope>test</scope>
  218. </dependency>
  219. <dependency>
  220. <groupId>org.opennms</groupId>
  221. <artifactId>opennms-rrd-jrobin</artifactId>
  222. <scope>test</scope>
  223. </dependency>
  224. </dependencies>
  225. <repositories>
  226. <repository>
  227. <snapshots><enabled>false</enabled></snapshots>
  228. <releases><enabled>true</enabled></releases>
  229. <id>opennms-repo</id>
  230. <name>OpenNMS Repository</name>
  231. <url>http://maven.opennms.org/content/groups/opennms.org-release</url>
  232. </repository>
  233. </repositories>
  234. </project>