pom.xml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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.vw</groupId>
  6. <artifactId>voting-workflow</artifactId>
  7. <version>2.1.7</version>
  8. </parent>
  9. <groupId>com.scytl.products.ov.channel.vw.ui</groupId>
  10. <artifactId>vw-ws-rest</artifactId>
  11. <packaging>war</packaging>
  12. <name>Online Voting - Voting Workflow - Webservices</name>
  13. <dependencies>
  14. <!-- Local dependencies -->
  15. <dependency>
  16. <groupId>com.scytl.products.ov.channel.vw.services</groupId>
  17. <artifactId>voting-workflow-services</artifactId>
  18. <version>${project.version}</version>
  19. </dependency>
  20. <!-- OV CHANNEL COMMONS -->
  21. <dependency>
  22. <groupId>com.scytl.products.ov.channel.commons</groupId>
  23. <artifactId>ov-commons-infrastructure</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>org.apache.commons</groupId>
  27. <artifactId>commons-lang3</artifactId>
  28. </dependency>
  29. </dependencies>
  30. <build>
  31. <finalName>${project.artifactId}</finalName>
  32. <plugins>
  33. <plugin>
  34. <groupId>org.codehaus.cargo</groupId>
  35. <artifactId>cargo-maven2-plugin</artifactId>
  36. <version>1.4.6</version>
  37. <configuration>
  38. <container>
  39. <containerId>glassfish4x</containerId>
  40. <type>remote</type>
  41. </container>
  42. <configuration>
  43. <type>runtime</type>
  44. <properties>
  45. <cargo.runtime.args>force=true</cargo.runtime.args>
  46. <cargo.hostname>${cargo.hostname}</cargo.hostname>
  47. <cargo.remote.username>${cargo.username}</cargo.remote.username>
  48. <cargo.remote.password>${cargo.password}</cargo.remote.password>
  49. <cargo.remote.port>${cargo.port}</cargo.remote.port>
  50. <cargo.glassfish.domain.name>domain1</cargo.glassfish.domain.name>
  51. </properties>
  52. </configuration>
  53. <deployables>
  54. <deployable>
  55. <groupId>${project.groupId}</groupId>
  56. <artifactId>${project.artifactId}</artifactId>
  57. <type>war</type>
  58. <pingTimeout>120000</pingTimeout>
  59. </deployable>
  60. </deployables>
  61. </configuration>
  62. <dependencies>
  63. <dependency>
  64. <groupId>org.glassfish.deployment</groupId>
  65. <artifactId>deployment-client</artifactId>
  66. <version>3.2-b06</version>
  67. </dependency>
  68. </dependencies>
  69. </plugin>
  70. </plugins>
  71. </build>
  72. <!-- The profile below can be used if the HTML API files should be generated -->
  73. <!-- It includes the installation of node, npm and raml2html -->
  74. <profiles>
  75. <profile>
  76. <id>generate-all-html-apis</id>
  77. <build>
  78. <finalName>${project.artifactId}</finalName>
  79. <plugins>
  80. <plugin>
  81. <groupId>com.github.eirslett</groupId>
  82. <artifactId>frontend-maven-plugin</artifactId>
  83. <version>${frontend-maven-plugin.version}</version>
  84. <!-- install local installation of node and npm in the target directory -->
  85. <configuration>
  86. <installDirectory>target</installDirectory>
  87. </configuration>
  88. <executions>
  89. <execution>
  90. <id>install node and npm</id>
  91. <goals>
  92. <goal>install-node-and-npm</goal>
  93. </goals>
  94. <configuration>
  95. <nodeVersion>${node.version}</nodeVersion>
  96. <npmVersion>${npm.version}</npmVersion>
  97. <nodeDownloadRoot>https://nexus.scytl.net/service/local/repositories/applications/content/org/nodejs/node/</nodeDownloadRoot>
  98. <npmDownloadRoot>https://nexus.scytl.net/service/local/repositories/applications/content/com/github/npm/npm/</npmDownloadRoot>
  99. </configuration>
  100. </execution>
  101. </executions>
  102. </plugin>
  103. <plugin>
  104. <groupId>org.codehaus.mojo</groupId>
  105. <artifactId>exec-maven-plugin</artifactId>
  106. <executions>
  107. <!-- Install raml2html -->
  108. <execution>
  109. <id>id0</id>
  110. <phase>package</phase>
  111. <goals>
  112. <goal>exec</goal>
  113. </goals>
  114. <configuration>
  115. <executable>npm</executable>
  116. <commandlineArgs>install --prefix ./target/node/node_modules/npm-${npm.version} raml2html</commandlineArgs>
  117. </configuration>
  118. </execution>
  119. <!-- Generate API file -->
  120. <execution>
  121. <id>id1</id>
  122. <phase>package</phase>
  123. <goals>
  124. <goal>exec</goal>
  125. </goals>
  126. <configuration>
  127. <executable>target/node/node_modules/npm-${npm.version}/node_modules/raml2html/bin/raml2html</executable>
  128. <commandlineArgs>-i src/main/resources/api.raml -o target/api.html</commandlineArgs>
  129. </configuration>
  130. </execution>
  131. </executions>
  132. </plugin>
  133. </plugins>
  134. </build>
  135. </profile>
  136. </profiles>
  137. </project>