pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  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>jar</packaging>
  10. <url>http://www.open-groupe.com</url>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>1.3.3.RELEASE</version>
  15. </parent>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <jasmine.version>2.4.1</jasmine.version>
  19. <jasmine-ajax.version>3.2.0</jasmine-ajax.version>
  20. <bootstrap.version>3.3.6</bootstrap.version>
  21. <jquery.version>2.2.1</jquery.version>
  22. <react.version>0.14.7</react.version>
  23. <marked.version>0.3.2-1</marked.version>
  24. <marked-lib.version>0.3.2</marked-lib.version>
  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. <!-- Security -->
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-security</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.thymeleaf.extras</groupId>
  44. <artifactId>thymeleaf-extras-springsecurity4</artifactId>
  45. </dependency>
  46. <!-- Persistence -->
  47. <dependency>
  48. <groupId>org.springframework</groupId>
  49. <artifactId>spring-jdbc</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.springframework</groupId>
  53. <artifactId>spring-tx</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework</groupId>
  57. <artifactId>spring-orm</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.hibernate</groupId>
  61. <artifactId>hibernate-entitymanager</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.hsqldb</groupId>
  65. <artifactId>hsqldb</artifactId>
  66. </dependency>
  67. <!-- Testing -->
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-test</artifactId>
  71. <scope>test</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.jayway.jsonpath</groupId>
  75. <artifactId>json-path</artifactId>
  76. <scope>test</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.jayway.jsonpath</groupId>
  80. <artifactId>json-path-assert</artifactId>
  81. <scope>test</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.webjars</groupId>
  85. <artifactId>jasmine</artifactId>
  86. <version>${jasmine.version}</version>
  87. <scope>test</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.webjars</groupId>
  91. <artifactId>jquery-mockjax</artifactId>
  92. <version>1.5.3</version>
  93. <scope>test</scope>
  94. </dependency>
  95. <!-- Monitoring -->
  96. <dependency>
  97. <groupId>org.springframework.boot</groupId>
  98. <artifactId>spring-boot-starter-actuator</artifactId>
  99. </dependency>
  100. <!-- Hot swapping for dev purposes -->
  101. <dependency>
  102. <groupId>org.springframework.boot</groupId>
  103. <artifactId>spring-boot-devtools</artifactId>
  104. <optional>true</optional>
  105. </dependency>
  106. <!-- Webjars -->
  107. <dependency>
  108. <groupId>org.webjars</groupId>
  109. <artifactId>bootstrap</artifactId>
  110. <version>${bootstrap.version}</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.webjars</groupId>
  114. <artifactId>jquery</artifactId>
  115. <version>${jquery.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.webjars</groupId>
  119. <artifactId>react</artifactId>
  120. <version>${react.version}</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>org.webjars</groupId>
  124. <artifactId>marked</artifactId>
  125. <version>${marked.version}</version>
  126. </dependency>
  127. </dependencies>
  128. <build>
  129. <resources>
  130. <resource>
  131. <directory>${project.basedir}/src/main/resources</directory>
  132. </resource>
  133. </resources>
  134. <plugins>
  135. <plugin>
  136. <groupId>org.springframework.boot</groupId>
  137. <artifactId>spring-boot-maven-plugin</artifactId>
  138. </plugin>
  139. <plugin>
  140. <groupId>com.fizzed</groupId>
  141. <artifactId>fizzed-watcher-maven-plugin</artifactId>
  142. <version>1.0.6</version>
  143. <configuration>
  144. <watches>
  145. <watch>
  146. <excludes>
  147. <exclude>src/main/resources/static/js/bundle</exclude>
  148. <exclude>src/main/resources/static/js/jsx</exclude>
  149. </excludes>
  150. <recursive>false</recursive>
  151. <directory>src/main/resources/static/js</directory>
  152. </watch>
  153. <watch>
  154. <exclude>src/main/resources/static/css/bundle</exclude>
  155. <recursive>false</recursive>
  156. <directory>src/main/resources/static/css</directory>
  157. </watch>
  158. <watch>
  159. <directory>src/main/wro</directory>
  160. </watch>
  161. </watches>
  162. <goals>
  163. <goal>process-resources</goal>
  164. </goals>
  165. </configuration>
  166. </plugin>
  167. <!-- Resource optimization -->
  168. <plugin>
  169. <artifactId>maven-resources-plugin</artifactId>
  170. <executions>
  171. <execution>
  172. <!-- Serves *only* to filter the wro.xml so it can get an absolute
  173. path for the project -->
  174. <id>copy-resources</id>
  175. <phase>validate</phase>
  176. <goals>
  177. <goal>copy-resources</goal>
  178. </goals>
  179. <configuration>
  180. <outputDirectory>${basedir}/target/wro</outputDirectory>
  181. <resources>
  182. <resource>
  183. <directory>src/main/wro</directory>
  184. <filtering>true</filtering>
  185. </resource>
  186. </resources>
  187. </configuration>
  188. </execution>
  189. </executions>
  190. </plugin>
  191. <plugin>
  192. <groupId>uk.co.codezen</groupId>
  193. <artifactId>react-jsxtransformer-maven-plugin</artifactId>
  194. <version>1.0</version>
  195. <executions>
  196. <execution>
  197. <id>Compile resources</id>
  198. <phase>process-resources</phase>
  199. <goals>
  200. <goal>compile</goal>
  201. </goals>
  202. <configuration>
  203. <extension>jsx</extension>
  204. <sourcePath>
  205. ${project.basedir}/src/main/resources/static/js
  206. </sourcePath>
  207. <targetPath>
  208. ${project.build.directory}/classes/static/js
  209. </targetPath>
  210. </configuration>
  211. </execution>
  212. <execution>
  213. <id>Compile test resources</id>
  214. <phase>process-test-resources</phase>
  215. <goals>
  216. <goal>compile</goal>
  217. </goals>
  218. <configuration>
  219. <extension>jsx</extension>
  220. <sourcePath>
  221. ${project.basedir}/src/test/resources/static/js
  222. </sourcePath>
  223. <targetPath>
  224. ${project.basedir}/src/test/resources/static/js/compiled
  225. </targetPath>
  226. </configuration>
  227. </execution>
  228. </executions>
  229. </plugin>
  230. <plugin>
  231. <groupId>ro.isdc.wro4j</groupId>
  232. <artifactId>wro4j-maven-plugin</artifactId>
  233. <version>1.7.9</version>
  234. <executions>
  235. <execution>
  236. <phase>process-resources</phase>
  237. <goals>
  238. <goal>run</goal>
  239. </goals>
  240. </execution>
  241. </executions>
  242. <configuration>
  243. <wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory>
  244. <cssDestinationFolder>${project.build.directory}/classes/static/css</cssDestinationFolder>
  245. <jsDestinationFolder>${project.build.directory}/classes/static/js</jsDestinationFolder>
  246. <wroFile>${project.build.directory}/wro/wro.xml</wroFile>
  247. <extraConfigFile>${project.basedir}/src/main/wro/wro.properties</extraConfigFile>
  248. </configuration>
  249. </plugin>
  250. <!-- Testing -->
  251. <plugin>
  252. <groupId>com.github.klieber</groupId>
  253. <artifactId>phantomjs-maven-plugin</artifactId>
  254. <version>0.7</version>
  255. <executions>
  256. <execution>
  257. <goals>
  258. <goal>install</goal>
  259. </goals>
  260. </execution>
  261. </executions>
  262. <configuration>
  263. <version>2.1.1</version>
  264. <skip>false</skip>
  265. </configuration>
  266. </plugin>
  267. <plugin>
  268. <groupId>com.github.searls</groupId>
  269. <artifactId>jasmine-maven-plugin</artifactId>
  270. <version>2.1</version>
  271. <executions>
  272. <execution>
  273. <goals>
  274. <goal>test</goal>
  275. </goals>
  276. </execution>
  277. </executions>
  278. <configuration>
  279. <webDriverClassName>org.openqa.selenium.phantomjs.PhantomJSDriver</webDriverClassName>
  280. <webDriverCapabilities>
  281. <capability>
  282. <name>phantomjs.binary.path</name>
  283. <value>${phantomjs.binary}</value>
  284. </capability>
  285. </webDriverCapabilities>
  286. <preloadSources>
  287. <preloadSource>/webjars/jquery.js</preloadSource>
  288. <preloadSource>/webjars/react-with-addons.js</preloadSource>
  289. <preloadSource>/webjars/react-dom.js</preloadSource>
  290. <preloadSource>/webjars/jquery.mockjax.js</preloadSource>
  291. <preloadSource>${project.basedir}/src/test/resources/jasmine/config.js</preloadSource>
  292. </preloadSources>
  293. <jsSrcDir>${project.build.directory}/classes/static/js</jsSrcDir>
  294. <sourceIncludes>
  295. <include>**/*.js</include>
  296. </sourceIncludes>
  297. <sourceExcludes>
  298. <exclude>**/react-bootstrap.js</exclude>
  299. <exclude>**/app.render.js</exclude>
  300. </sourceExcludes>
  301. <jsTestSrcDir>${project.basedir}/src/test/resources/static/js</jsTestSrcDir>
  302. <specIncludes>
  303. <include>**/*.spec.js</include>
  304. </specIncludes>
  305. <customRunnerTemplate>${project.basedir}/src/test/resources/jasmine/ReactJsSpecRunner.htmltemplate</customRunnerTemplate>
  306. </configuration>
  307. </plugin>
  308. <!-- Deployment -->
  309. <plugin>
  310. <groupId>org.cloudfoundry</groupId>
  311. <artifactId>cf-maven-plugin</artifactId>
  312. <version>1.1.3</version>
  313. <!-- <configuration>
  314. <server>bluemix</server>
  315. <target>https://api.eu-gb.bluemix.net </target>
  316. <org>open-groupe.com</org>
  317. <space>dev</space>
  318. <appname>TOFILL</appname>
  319. <url>TOFILL</url>
  320. <buildpack>https://github.com/cloudfoundry/java-buildpack.git</buildpack>
  321. <memory>512</memory>
  322. <diskQuota>1024</diskQuota>
  323. <instances>1</instances>
  324. </configuration> -->
  325. </plugin>
  326. </plugins>
  327. <pluginManagement>
  328. <plugins>
  329. <plugin>
  330. <groupId>org.eclipse.m2e</groupId>
  331. <artifactId>lifecycle-mapping</artifactId>
  332. <version>1.0.0</version>
  333. <configuration>
  334. <lifecycleMappingMetadata>
  335. <pluginExecutions>
  336. <pluginExecution>
  337. <pluginExecutionFilter>
  338. <groupId>ro.isdc.wro4j</groupId>
  339. <artifactId>wro4j-maven-plugin</artifactId>
  340. <versionRange>[1.7.9,)</versionRange>
  341. <goals>
  342. <goal>jshint</goal>
  343. <goal>run</goal>
  344. </goals>
  345. </pluginExecutionFilter>
  346. <action>
  347. <ignore></ignore>
  348. </action>
  349. </pluginExecution>
  350. <pluginExecution>
  351. <pluginExecutionFilter>
  352. <groupId>uk.co.codezen</groupId>
  353. <artifactId>react-jsxtransformer-maven-plugin</artifactId>
  354. <versionRange>[1.0,)</versionRange>
  355. <goals>
  356. <goal>compile</goal>
  357. </goals>
  358. </pluginExecutionFilter>
  359. <action>
  360. <ignore></ignore>
  361. </action>
  362. </pluginExecution>
  363. <pluginExecution>
  364. <pluginExecutionFilter>
  365. <groupId>com.github.klieber</groupId>
  366. <artifactId>phantomjs-maven-plugin</artifactId>
  367. <versionRange>[0.7,)</versionRange>
  368. <goals>
  369. <goal>install</goal>
  370. </goals>
  371. </pluginExecutionFilter>
  372. <action>
  373. <ignore></ignore>
  374. </action>
  375. </pluginExecution>
  376. </pluginExecutions>
  377. </lifecycleMappingMetadata>
  378. </configuration>
  379. </plugin>
  380. </plugins>
  381. </pluginManagement>
  382. </build>
  383. </project>