2
0

pom.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.scytl.products.ov.channel.kt</groupId>
  6. <artifactId>key-translation</artifactId>
  7. <version>2.1.7</version>
  8. </parent>
  9. <groupId>com.scytl.products.ov.channel.kt.ui</groupId>
  10. <artifactId>kt-ws-rest</artifactId>
  11. <packaging>war</packaging>
  12. <name>Online Voting - Key Translation - 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.kt.services</groupId>
  28. <artifactId>key-translation-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. <!-- TEST dependencies -->
  37. <dependency>
  38. <groupId>org.glassfish.jersey.test-framework</groupId>
  39. <artifactId>jersey-test-framework-core</artifactId>
  40. <version>${jersey-test-framework-core.version}</version>
  41. <scope>test</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.glassfish.jersey.test-framework.providers</groupId>
  45. <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
  46. <version>${jersey-test-framework-core.version}</version>
  47. <scope>test</scope>
  48. <exclusions>
  49. <exclusion>
  50. <artifactId>resteasy-client</artifactId>
  51. <groupId>org.jboss.resteasy</groupId>
  52. </exclusion>
  53. </exclusions>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.glassfish.jersey.media</groupId>
  57. <artifactId>jersey-media-json-jackson</artifactId>
  58. <version>${jersey-test-framework-core.version}</version>
  59. <scope>test</scope>
  60. <exclusions>
  61. <exclusion>
  62. <artifactId>resteasy-client</artifactId>
  63. <groupId>org.jboss.resteasy</groupId>
  64. </exclusion>
  65. </exclusions>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.scytl.products.ov.channel.commons</groupId>
  69. <artifactId>ov-commons-integration-tests</artifactId>
  70. <version>${project.version}</version>
  71. <scope>test</scope>
  72. <exclusions>
  73. <exclusion>
  74. <artifactId>resteasy-client</artifactId>
  75. <groupId>org.jboss.resteasy</groupId>
  76. </exclusion>
  77. </exclusions>
  78. </dependency>
  79. </dependencies>
  80. <build>
  81. <finalName>${project.artifactId}</finalName>
  82. </build>
  83. <!-- The profile below can be used if the HTML API files should be generated -->
  84. <!-- It includes the installation of node, npm and raml2html -->
  85. <profiles>
  86. <profile>
  87. <id>generate-all-html-apis</id>
  88. <build>
  89. <finalName>${project.artifactId}</finalName>
  90. <plugins>
  91. <plugin>
  92. <groupId>com.github.eirslett</groupId>
  93. <artifactId>frontend-maven-plugin</artifactId>
  94. <version>${frontend-maven-plugin.version}</version>
  95. <!-- install local installation of node and npm in the target directory -->
  96. <configuration>
  97. <installDirectory>target</installDirectory>
  98. </configuration>
  99. <executions>
  100. <execution>
  101. <id>install node and npm</id>
  102. <goals>
  103. <goal>install-node-and-npm</goal>
  104. </goals>
  105. <configuration>
  106. <nodeVersion>${node.version}</nodeVersion>
  107. <npmVersion>${npm.version}</npmVersion>
  108. <nodeDownloadRoot>
  109. https://nexus.scytl.net/service/local/repositories/applications/content/org/nodejs/node/
  110. </nodeDownloadRoot>
  111. <npmDownloadRoot>
  112. https://nexus.scytl.net/service/local/repositories/applications/content/com/github/npm/npm/
  113. </npmDownloadRoot>
  114. </configuration>
  115. </execution>
  116. </executions>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.codehaus.mojo</groupId>
  120. <artifactId>exec-maven-plugin</artifactId>
  121. <executions>
  122. <!-- Install raml2html -->
  123. <execution>
  124. <id>id0</id>
  125. <phase>package</phase>
  126. <goals>
  127. <goal>exec</goal>
  128. </goals>
  129. <configuration>
  130. <executable>npm</executable>
  131. <commandlineArgs>install --prefix ./target/node/node_modules/npm-${npm.version}
  132. raml2html
  133. </commandlineArgs>
  134. </configuration>
  135. </execution>
  136. <!-- Generate API file -->
  137. <execution>
  138. <id>id1</id>
  139. <phase>package</phase>
  140. <goals>
  141. <goal>exec</goal>
  142. </goals>
  143. <configuration>
  144. <executable>target/node/node_modules/npm-${npm.version}/node_modules/raml2html/bin/raml2html</executable>
  145. <commandlineArgs>-i src/main/resources/api.raml -o target/api.html</commandlineArgs>
  146. </configuration>
  147. </execution>
  148. </executions>
  149. </plugin>
  150. </plugins>
  151. </build>
  152. </profile>
  153. </profiles>
  154. </project>