pom.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xml:space="preserve">
  3. <!-- Copyright 2019 Steinar Bang -->
  4. <!-- -->
  5. <!-- Licensed under the Apache License, Version 2.0 (the "License"); -->
  6. <!-- you may not use this file except in compliance with the License. -->
  7. <!-- You may obtain a copy of the License at -->
  8. <!-- http://www.apache.org/licenses/LICENSE-2.0 -->
  9. <!-- Unless required by applicable law or agreed to in writing, -->
  10. <!-- software distributed under the License is distributed on an "AS IS" BASIS, -->
  11. <!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -->
  12. <!-- See the License for the specific language governing permissions and limitations -->
  13. <!-- under the License. -->
  14. <modelVersion>4.0.0</modelVersion>
  15. <parent>
  16. <groupId>no.priv.bang.handlereg</groupId>
  17. <artifactId>handlereg</artifactId>
  18. <version>1.0.0-SNAPSHOT</version>
  19. </parent>
  20. <artifactId>handlereg.web.frontend</artifactId>
  21. <name>Handleregistrering web frontend</name>
  22. <properties>
  23. <karaf-feature-name>handlereg-web-frontend</karaf-feature-name>
  24. </properties>
  25. <dependencies>
  26. <dependency>
  27. <groupId>no.priv.bang.handlereg</groupId>
  28. <artifactId>handlereg.web.api</artifactId>
  29. <version>${project.version}</version>
  30. <type>xml</type>
  31. <classifier>features</classifier>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.ops4j.pax.web</groupId>
  35. <artifactId>pax-web-api</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>javax.servlet</groupId>
  39. <artifactId>javax.servlet-api</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.ops4j.pax.web</groupId>
  43. <artifactId>pax-web-extender-whiteboard</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.junit.jupiter</groupId>
  47. <artifactId>junit-jupiter-api</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.junit.jupiter</groupId>
  51. <artifactId>junit-jupiter-engine</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.junit.vintage</groupId>
  55. <artifactId>junit-vintage-engine</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.assertj</groupId>
  59. <artifactId>assertj-core</artifactId>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.mockito</groupId>
  63. <artifactId>mockito-core</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>com.mockrunner</groupId>
  67. <artifactId>mockrunner-servlet</artifactId>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.slf4j</groupId>
  71. <artifactId>slf4j-simple</artifactId>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.osgi</groupId>
  75. <artifactId>org.osgi.core</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.osgi</groupId>
  79. <artifactId>org.osgi.service.component.annotations</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.osgi</groupId>
  83. <artifactId>org.osgi.service.log</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  87. <artifactId>service-mocks</artifactId>
  88. </dependency>
  89. <dependency>
  90. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  91. <artifactId>logservice</artifactId>
  92. </dependency>
  93. <dependency>
  94. <groupId>no.priv.bang.servlet</groupId>
  95. <artifactId>servlet.frontend</artifactId>
  96. </dependency>
  97. </dependencies>
  98. <build>
  99. <plugins>
  100. <plugin>
  101. <groupId>com.github.eirslett</groupId>
  102. <artifactId>frontend-maven-plugin</artifactId>
  103. <version>1.9.1</version>
  104. <configuration>
  105. <nodeVersion>v12.16.1</nodeVersion>
  106. <workingDirectory>src/main/frontend</workingDirectory>
  107. <installDirectory>target</installDirectory>
  108. </configuration>
  109. <executions>
  110. <execution>
  111. <id>install node and npm</id>
  112. <goals>
  113. <goal>install-node-and-npm</goal>
  114. </goals>
  115. </execution>
  116. <execution>
  117. <id>npm install</id>
  118. <goals>
  119. <goal>npm</goal>
  120. </goals>
  121. </execution>
  122. <execution>
  123. <id>webpack build</id>
  124. <goals>
  125. <goal>webpack</goal>
  126. </goals>
  127. </execution>
  128. </executions>
  129. </plugin>
  130. <plugin>
  131. <groupId>org.apache.felix</groupId>
  132. <artifactId>maven-bundle-plugin</artifactId>
  133. <extensions>true</extensions>
  134. <configuration>
  135. <instructions>
  136. <Export-Package>!*</Export-Package>
  137. <Include-Resource>
  138. /=target/classes/,
  139. /open-iconic/font/css/open-iconic-bootstrap.min.css=target/dependency/META-INF/resources/webjars/open-iconic/${open-iconic.version}/font/css/open-iconic-bootstrap.min.css,
  140. /open-iconic/font/fonts/open-iconic.woff=target/dependency/META-INF/resources/webjars/open-iconic/${open-iconic.version}/font/fonts/open-iconic.woff
  141. </Include-Resource>
  142. <_removeheaders>
  143. Include-Resource,
  144. Private-Package,
  145. Embed-Dependency,
  146. Embed-Transitive
  147. </_removeheaders>
  148. </instructions>
  149. </configuration>
  150. <executions>
  151. <execution>
  152. <id>bundle</id>
  153. <goals>
  154. <goal>bundle</goal>
  155. </goals>
  156. </execution>
  157. </executions>
  158. </plugin>
  159. <plugin>
  160. <groupId>org.apache.karaf.tooling</groupId>
  161. <artifactId>karaf-maven-plugin</artifactId>
  162. <configuration>
  163. <primaryFeatureName>${karaf-feature-name}</primaryFeatureName>
  164. <includeTransitiveDependency>true</includeTransitiveDependency>
  165. </configuration>
  166. </plugin>
  167. <plugin>
  168. <groupId>org.apache.maven.plugins</groupId>
  169. <artifactId>maven-clean-plugin</artifactId>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-dependency-plugin</artifactId>
  174. <executions>
  175. <execution>
  176. <id>unpack</id>
  177. <phase>validate</phase>
  178. <goals>
  179. <goal>unpack</goal>
  180. </goals>
  181. <configuration>
  182. <artifactItems>
  183. <artifactItem>
  184. <groupId>org.webjars.bower</groupId>
  185. <artifactId>open-iconic</artifactId>
  186. </artifactItem>
  187. </artifactItems>
  188. </configuration>
  189. </execution>
  190. </executions>
  191. </plugin>
  192. </plugins>
  193. </build>
  194. </project>