pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.scytl.products.ov.channel.au</groupId>
  6. <artifactId>authentication</artifactId>
  7. <version>2.1.7</version>
  8. </parent>
  9. <groupId>com.scytl.products.ov.channel.au.ui</groupId>
  10. <artifactId>au-ws-rest</artifactId>
  11. <packaging>war</packaging>
  12. <name>Online Voting - Authentication - Webservices</name>
  13. <dependencyManagement>
  14. <dependencies>
  15. <dependency>
  16. <groupId>com.scytl.products.ov.channel.commons</groupId>
  17. <artifactId>ov-commons-integration-tests</artifactId>
  18. <version>${project.version}</version>
  19. <scope>import</scope>
  20. <type>pom</type>
  21. </dependency>
  22. </dependencies>
  23. </dependencyManagement>
  24. <dependencies>
  25. <!-- Local dependencies -->
  26. <dependency>
  27. <groupId>com.scytl.products.ov.channel.au.services</groupId>
  28. <artifactId>authentication-services</artifactId>
  29. <version>${project.version}</version>
  30. </dependency>
  31. <!-- OV CHANNEL COMMONS -->
  32. <dependency>
  33. <groupId>com.scytl.products.ov.channel.commons</groupId>
  34. <artifactId>ov-commons-infrastructure</artifactId>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.scytl.products.ov.channel.commons.lib</groupId>
  38. <artifactId>ov-commons-lib</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.scytl.products.ov.channel.commons</groupId>
  42. <artifactId>ov-commons-logging</artifactId>
  43. </dependency>
  44. <!-- Tests -->
  45. <dependency>
  46. <groupId>org.jmockit</groupId>
  47. <artifactId>jmockit</artifactId>
  48. <version>${jmockit.version}</version>
  49. <scope>test</scope>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.glassfish.jersey.test-framework</groupId>
  53. <artifactId>jersey-test-framework-core</artifactId>
  54. <version>${jersey-test-framework-core.version}</version>
  55. <scope>test</scope>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.glassfish.jersey.test-framework.providers</groupId>
  59. <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
  60. <version>${jersey-test-framework-core.version}</version>
  61. <scope>test</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.glassfish.jersey.media</groupId>
  65. <artifactId>jersey-media-json-jackson</artifactId>
  66. <version>${jersey-test-framework-core.version}</version>
  67. <scope>test</scope>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.scytl.products.ov.channel.commons</groupId>
  71. <artifactId>ov-commons-integration-tests</artifactId>
  72. <version>${project.version}</version>
  73. <scope>test</scope>
  74. <exclusions>
  75. <exclusion>
  76. <artifactId>resteasy-client</artifactId>
  77. <groupId>org.jboss.resteasy</groupId>
  78. </exclusion>
  79. </exclusions>
  80. </dependency>
  81. </dependencies>
  82. <build>
  83. <finalName>${project.artifactId}</finalName>
  84. </build>
  85. <!-- The profile below can be used if the HTML API files should be generated -->
  86. <!-- It includes the installation of node, npm and raml2html -->
  87. <profiles>
  88. <profile>
  89. <id>skipTestRun</id>
  90. <activation>
  91. <property>
  92. <name>skipTests</name>
  93. <value>!true</value>
  94. </property>
  95. </activation>
  96. <dependencies>
  97. <dependency>
  98. <groupId>com.scytl.products.ov.channel.commons.lib</groupId>
  99. <artifactId>ov-commons-lib</artifactId>
  100. <type>test-jar</type>
  101. <scope>test</scope>
  102. </dependency>
  103. </dependencies>
  104. </profile>
  105. <profile>
  106. <id>generate-all-html-apis</id>
  107. <build>
  108. <finalName>${project.artifactId}</finalName>
  109. <plugins>
  110. <plugin>
  111. <groupId>com.github.eirslett</groupId>
  112. <artifactId>frontend-maven-plugin</artifactId>
  113. <version>${frontend-maven-plugin.version}</version>
  114. <!-- install local installation of node and npm in the target directory -->
  115. <configuration>
  116. <installDirectory>target</installDirectory>
  117. </configuration>
  118. <executions>
  119. <execution>
  120. <id>install node and npm</id>
  121. <goals>
  122. <goal>install-node-and-npm</goal>
  123. </goals>
  124. <configuration>
  125. <nodeVersion>${node.version}</nodeVersion>
  126. <npmVersion>${npm.version}</npmVersion>
  127. <nodeDownloadRoot>https://nexus.scytl.net/service/local/repositories/applications/content/org/nodejs/node/</nodeDownloadRoot>
  128. <npmDownloadRoot>https://nexus.scytl.net/service/local/repositories/applications/content/com/github/npm/npm/</npmDownloadRoot>
  129. </configuration>
  130. </execution>
  131. </executions>
  132. </plugin>
  133. <plugin>
  134. <groupId>org.codehaus.mojo</groupId>
  135. <artifactId>exec-maven-plugin</artifactId>
  136. <executions>
  137. <!-- Install raml2html -->
  138. <execution>
  139. <id>id0</id>
  140. <phase>package</phase>
  141. <goals>
  142. <goal>exec</goal>
  143. </goals>
  144. <configuration>
  145. <executable>npm</executable>
  146. <commandlineArgs>install --prefix ./target/node/node_modules/npm-${npm.version} raml2html</commandlineArgs>
  147. </configuration>
  148. </execution>
  149. <!-- Generate API file -->
  150. <execution>
  151. <id>id1</id>
  152. <phase>package</phase>
  153. <goals>
  154. <goal>exec</goal>
  155. </goals>
  156. <configuration>
  157. <executable>target/node/node_modules/npm-${npm.version}/node_modules/raml2html/bin/raml2html</executable>
  158. <commandlineArgs>-i src/main/resources/api.raml -o target/api.html</commandlineArgs>
  159. </configuration>
  160. </execution>
  161. </executions>
  162. </plugin>
  163. </plugins>
  164. </build>
  165. </profile>
  166. </profiles>
  167. </project>