pom.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. 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. <groupId>com.opengroupe.cloud.saas</groupId>
  5. <artifactId>catalog-ui</artifactId>
  6. <version>1.0.0-SNAPSHOT</version>
  7. <name>UI service project</name>
  8. <description>Default tools to build UI BFF</description>
  9. <packaging>${packaging.type}</packaging>
  10. <url>http://www.open-groupe.com</url>
  11. <scm>
  12. <developerConnection>scm:git:TOFILL</developerConnection>
  13. </scm>
  14. <parent>
  15. <groupId>org.springframework.boot</groupId>
  16. <artifactId>spring-boot-starter-parent</artifactId>
  17. <version>1.3.3.RELEASE</version>
  18. </parent>
  19. <properties>
  20. <java.version>1.8</java.version>
  21. <packaging.type>war</packaging.type>
  22. <maven.deploy.skip>true</maven.deploy.skip>
  23. <project.scm.id>jazzhub</project.scm.id>
  24. <docker.image.prefix>opensaas</docker.image.prefix>
  25. </properties>
  26. <dependencies>
  27. <!-- Spring Boot Core -->
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-web</artifactId>
  31. </dependency>
  32. <!-- View templating -->
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  36. </dependency>
  37. <!-- Monitoring -->
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-actuator</artifactId>
  41. </dependency>
  42. <!-- Hot swapping for dev purposes -->
  43. <dependency>
  44. <groupId>org.springframework.boot</groupId>
  45. <artifactId>spring-boot-devtools</artifactId>
  46. <optional>true</optional>
  47. </dependency>
  48. </dependencies>
  49. <build>
  50. <finalName>${project.artifactId}</finalName>
  51. <resources>
  52. <resource>
  53. <directory>${project.basedir}/src/main/resources</directory>
  54. </resource>
  55. </resources>
  56. <plugins>
  57. <plugin>
  58. <groupId>com.github.eirslett</groupId>
  59. <artifactId>frontend-maven-plugin</artifactId>
  60. <version>0.0.29</version>
  61. <configuration>
  62. <workingDirectory>${project.build.directory}</workingDirectory>
  63. </configuration>
  64. <executions>
  65. <execution>
  66. <id>install node and npm</id>
  67. <goals>
  68. <goal>install-node-and-npm</goal>
  69. </goals>
  70. <configuration>
  71. <nodeVersion>v5.6.0</nodeVersion>
  72. <npmVersion>3.7.1</npmVersion>
  73. </configuration>
  74. </execution>
  75. <execution>
  76. <id>npm install</id>
  77. <goals>
  78. <goal>npm</goal>
  79. </goals>
  80. <configuration>
  81. <arguments>install</arguments>
  82. </configuration>
  83. </execution>
  84. <execution>
  85. <goals>
  86. <goal>npm</goal>
  87. </goals>
  88. <phase>generate-resources</phase>
  89. <configuration>
  90. <arguments>run-script dev-build</arguments>
  91. </configuration>
  92. </execution>
  93. </executions>
  94. </plugin>
  95. <plugin>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-maven-plugin</artifactId>
  98. </plugin>
  99. <!-- Release -->
  100. <plugin>
  101. <groupId>org.apache.maven.plugins</groupId>
  102. <artifactId>maven-release-plugin</artifactId>
  103. <version>2.5.3</version>
  104. </plugin>
  105. <!-- Deployment -->
  106. <plugin>
  107. <groupId>org.cloudfoundry</groupId>
  108. <artifactId>cf-maven-plugin</artifactId>
  109. <version>1.1.3</version>
  110. <!-- <configuration>
  111. <server>bluemix</server>
  112. <target>https://api.eu-gb.bluemix.net </target>
  113. <org>open-groupe.com</org>
  114. <space>dev</space>
  115. <appname>TOFILL</appname>
  116. <url>TOFILL</url>
  117. <buildpack>https://github.com/cloudfoundry/java-buildpack.git</buildpack>
  118. <memory>512</memory>
  119. <diskQuota>1024</diskQuota>
  120. <instances>1</instances>
  121. </configuration> -->
  122. </plugin>
  123. </plugins>
  124. </build>
  125. <profiles>
  126. <profile>
  127. <id>docker</id>
  128. <properties>
  129. <packaging.type>jar</packaging.type>
  130. </properties>
  131. <build>
  132. <finalName>app</finalName>
  133. <plugins>
  134. <!-- Docker -->
  135. <plugin>
  136. <groupId>com.spotify</groupId>
  137. <artifactId>docker-maven-plugin</artifactId>
  138. <version>0.2.3</version>
  139. <configuration>
  140. <goal>package</goal>
  141. <imageName>${docker.image.prefix}/${project.artifactId}</imageName>
  142. <dockerDirectory>src/main/docker</dockerDirectory>
  143. <resources>
  144. <resource>
  145. <targetPath>/</targetPath>
  146. <directory>${project.build.directory}</directory>
  147. <include>${project.build.finalName}.jar</include>
  148. </resource>
  149. </resources>
  150. </configuration>
  151. <executions>
  152. <execution>
  153. <id>build-image</id>
  154. <phase>package</phase>
  155. <goals>
  156. <goal>build</goal>
  157. </goals>
  158. </execution>
  159. </executions>
  160. </plugin>
  161. </plugins>
  162. </build>
  163. </profile>
  164. <profile>
  165. <id>production</id>
  166. <build>
  167. <plugins>
  168. <plugin>
  169. <groupId>com.github.eirslett</groupId>
  170. <artifactId>frontend-maven-plugin</artifactId>
  171. <version>0.0.29</version>
  172. <configuration>
  173. <workingDirectory>${project.build.directory}</workingDirectory>
  174. </configuration>
  175. <executions>
  176. <execution>
  177. <goals>
  178. <goal>npm</goal>
  179. </goals>
  180. <phase>generate-resources</phase>
  181. <configuration>
  182. <arguments>run-script prod-build</arguments>
  183. </configuration>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. </plugins>
  188. </build>
  189. </profile>
  190. </profiles>
  191. </project>