pom.xml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. <?xml version="1.0" encoding="UTF-8"?>
  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/xsd/maven-4.0.0.xsd" xml:space="preserve">
  3. <!-- Copyright 2016-2018 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.authservice</groupId>
  17. <artifactId>authservice</artifactId>
  18. <version>1.1.0-SNAPSHOT</version>
  19. </parent>
  20. <artifactId>authservice.web.users.frontend</artifactId>
  21. <name>Authentication webapp user admin frontend</name>
  22. <properties>
  23. <karaf-feature-name>authservice-user-management-frontend</karaf-feature-name>
  24. </properties>
  25. <dependencies>
  26. <dependency>
  27. <groupId>no.priv.bang.authservice</groupId>
  28. <artifactId>authservice.web.users.api</artifactId>
  29. <version>${project.version}</version>
  30. <scope>provided</scope>
  31. </dependency>
  32. <dependency>
  33. <groupId>org.osgi</groupId>
  34. <artifactId>org.osgi.core</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.osgi</groupId>
  38. <artifactId>org.osgi.service.component.annotations</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.osgi</groupId>
  42. <artifactId>org.osgi.service.log</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.osgi</groupId>
  46. <artifactId>org.osgi.service.jdbc</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>junit</groupId>
  50. <artifactId>junit</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.assertj</groupId>
  54. <artifactId>assertj-core</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.mockito</groupId>
  58. <artifactId>mockito-core</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.mockrunner</groupId>
  62. <artifactId>mockrunner-servlet</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>no.priv.bang.osgi.service.adapters</groupId>
  66. <artifactId>service-mocks</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.ops4j.pax.web</groupId>
  70. <artifactId>pax-web-api</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>javax.servlet</groupId>
  74. <artifactId>javax.servlet-api</artifactId>
  75. <scope>provided</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.ops4j.pax.web</groupId>
  79. <artifactId>pax-web-runtime</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.ops4j.pax.web</groupId>
  83. <artifactId>pax-web-extender-whiteboard</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.slf4j</groupId>
  87. <artifactId>slf4j-simple</artifactId>
  88. </dependency>
  89. </dependencies>
  90. <build>
  91. <plugins>
  92. <plugin>
  93. <groupId>com.github.eirslett</groupId>
  94. <artifactId>frontend-maven-plugin</artifactId>
  95. <version>1.6</version>
  96. <configuration>
  97. <nodeVersion>v10.4.0</nodeVersion>
  98. <workingDirectory>src/main/frontend</workingDirectory>
  99. <installDirectory>target</installDirectory>
  100. </configuration>
  101. <executions>
  102. <execution>
  103. <id>install node and npm</id>
  104. <goals>
  105. <goal>install-node-and-npm</goal>
  106. </goals>
  107. </execution>
  108. <execution>
  109. <id>npm install</id>
  110. <goals>
  111. <goal>npm</goal>
  112. </goals>
  113. </execution>
  114. <execution>
  115. <id>webpack build</id>
  116. <goals>
  117. <goal>webpack</goal>
  118. </goals>
  119. </execution>
  120. </executions>
  121. </plugin>
  122. <plugin>
  123. <artifactId>maven-clean-plugin</artifactId>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.apache.felix</groupId>
  127. <artifactId>maven-bundle-plugin</artifactId>
  128. <extensions>true</extensions>
  129. <configuration>
  130. <instructions>
  131. <Export-Package>!*</Export-Package>
  132. <Include-Resource>
  133. /=target/classes/,
  134. /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,
  135. /open-iconic/font/fonts/open-iconic.woff=target/dependency/META-INF/resources/webjars/open-iconic/${open-iconic.version}/font/fonts/open-iconic.woff
  136. </Include-Resource>
  137. <_removeheaders>
  138. Include-Resource,
  139. Private-Package,
  140. Embed-Dependency,
  141. Embed-Transitive
  142. </_removeheaders>
  143. </instructions>
  144. </configuration>
  145. <executions>
  146. <execution>
  147. <id>bundle</id>
  148. <goals>
  149. <goal>bundle</goal>
  150. </goals>
  151. </execution>
  152. </executions>
  153. </plugin>
  154. <plugin>
  155. <groupId>org.apache.karaf.tooling</groupId>
  156. <artifactId>karaf-maven-plugin</artifactId>
  157. <configuration>
  158. <primaryFeatureName>${karaf-feature-name}</primaryFeatureName>
  159. <includeTransitiveDependency>true</includeTransitiveDependency>
  160. </configuration>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-dependency-plugin</artifactId>
  165. <executions>
  166. <execution>
  167. <id>unpack</id>
  168. <phase>validate</phase>
  169. <goals>
  170. <goal>unpack</goal>
  171. </goals>
  172. <configuration>
  173. <artifactItems>
  174. <artifactItem>
  175. <groupId>org.webjars.bower</groupId>
  176. <artifactId>open-iconic</artifactId>
  177. </artifactItem>
  178. </artifactItems>
  179. </configuration>
  180. </execution>
  181. </executions>
  182. </plugin>
  183. </plugins>
  184. </build>
  185. </project>