2
0

pom.xml 6.7 KB

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