Advertisement
Guest User

Untitled

a guest
Apr 25th, 2018
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.03 KB | None | 0 0
  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"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5.  
  6. <groupId>com.clomez.react</groupId>
  7. <artifactId>test</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10.  
  11. <name>test</name>
  12. <description>Demo project for Spring Boot</description>
  13.  
  14. <parent>
  15. <groupId>org.springframework.boot</groupId>
  16. <artifactId>spring-boot-starter-parent</artifactId>
  17. <version>2.0.1.RELEASE</version>
  18. <relativePath/> <!-- lookup parent from repository -->
  19. </parent>
  20.  
  21. <properties>
  22. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  23. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  24. <java.version>1.8</java.version>
  25. </properties>
  26.  
  27. <dependencies>
  28.  
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-web</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-data-rest</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-data-jpa</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.h2database</groupId>
  43. <artifactId>h2</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-test</artifactId>
  48. <scope>test</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-jdbc</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>mysql</groupId>
  56. <artifactId>mysql-connector-java</artifactId>
  57. <scope>runtime</scope>
  58. </dependency>
  59. </dependencies>
  60.  
  61. <build>
  62. <plugins>
  63. <plugin>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-maven-plugin</artifactId>
  66. </plugin>
  67.  
  68.  
  69. <plugin>
  70. <groupId>com.github.eirslett</groupId>
  71. <artifactId>frontend-maven-plugin</artifactId>
  72. <version>1.2</version>
  73. <executions>
  74. <execution>
  75. <id>Install Node and Yarn</id>
  76. <goals>
  77. <goal>install-node-and-yarn</goal>
  78. </goals>
  79. </execution>
  80.  
  81. <execution>
  82. <id>yarn install</id>
  83. <goals>
  84. <goal>yarn</goal>
  85. </goals>
  86. <configuration>
  87. <arguments>install</arguments>
  88. </configuration>
  89. </execution>
  90.  
  91. <execution>
  92. <id>Frontend production build</id>
  93. <goals>
  94. <goal>yarn</goal>
  95. </goals>
  96. <configuration>
  97. <arguments>run build</arguments>
  98. </configuration>
  99. </execution>
  100. </executions>
  101. <configuration>
  102. <nodeVersion>v7.2.0</nodeVersion>
  103. <yarnVersion>v0.18.0</yarnVersion>
  104. <installDirectory>.mvn</installDirectory>
  105. <workingDirectory>src/main/client</workingDirectory>
  106. </configuration>
  107. </plugin>
  108.  
  109.  
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-resources-plugin</artifactId>
  113. <executions>
  114. <execution>
  115. <id>Copy frontend build to target</id>
  116. <phase>process-resources</phase>
  117. <goals>
  118. <goal>copy-resources</goal>
  119. </goals>
  120. <configuration>
  121. <outputDirectory>${basedir}/target/classes/resources</outputDirectory>
  122. <resources>
  123. <resource>
  124. <directory>${basedir}/build</directory>
  125. <filtering>true</filtering>
  126. </resource>
  127. </resources>
  128. </configuration>
  129. </execution>
  130. </executions>
  131. </plugin>
  132. </plugins>
  133. </build>
  134.  
  135. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement