pom.xml 12 KB

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