pom.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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. <groupId>com.mokamrp</groupId>
  6. <artifactId>moka-private</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. <name>moka-private</name>
  9. <properties>
  10. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11. <redis.version>3.1.0</redis.version>
  12. <springboot.version>2.1.7.RELEASE</springboot.version>
  13. </properties>
  14. <dependencyManagement>
  15. <dependencies>
  16. <dependency>
  17. <groupId>org.springframework.boot</groupId>
  18. <artifactId>spring-boot-dependencies</artifactId>
  19. <version>2.1.7.RELEASE</version>
  20. <type>pom</type>
  21. <scope>import</scope>
  22. </dependency>
  23. </dependencies>
  24. </dependencyManagement>
  25. <dependencies>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-web</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>net.sourceforge.nekohtml</groupId>
  32. <artifactId>nekohtml</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>mysql</groupId>
  40. <artifactId>mysql-connector-java</artifactId>
  41. <scope>runtime</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.alibaba</groupId>
  45. <artifactId>fastjson</artifactId>
  46. <version>1.2.62</version>
  47. </dependency>
  48. <!-- https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter -->
  49. <dependency>
  50. <groupId>com.baomidou</groupId>
  51. <artifactId>mybatis-plus-boot-starter</artifactId>
  52. <version>2.3.3</version>
  53. </dependency>
  54. <!-- Apache velocity -->
  55. <dependency>
  56. <groupId>org.apache.velocity</groupId>
  57. <artifactId>velocity-engine-core</artifactId>
  58. <version>2.0</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.projectlombok</groupId>
  62. <artifactId>lombok</artifactId>
  63. </dependency>
  64. <dependency>
  65. <groupId>junit</groupId>
  66. <artifactId>junit</artifactId>
  67. <version>4.11</version>
  68. <scope>test</scope>
  69. </dependency>
  70. </dependencies>
  71. <build>
  72. <plugins>
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-surefire-plugin</artifactId>
  76. <version>2.18.1</version>
  77. <configuration>
  78. <skipTests>true</skipTests>
  79. </configuration>
  80. </plugin>
  81. <plugin>
  82. <groupId>org.apache.maven.plugins</groupId>
  83. <artifactId>maven-deploy-plugin</artifactId>
  84. <version>2.8.2</version>
  85. <configuration>
  86. <skip>true</skip>
  87. </configuration>
  88. </plugin>
  89. <plugin>
  90. <groupId>org.springframework.boot</groupId>
  91. <artifactId>spring-boot-maven-plugin</artifactId>
  92. <version>2.1.7.RELEASE</version>
  93. <configuration>
  94. <fork>true</fork>
  95. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  96. <includeSystemScope>true</includeSystemScope>
  97. </configuration>
  98. <executions>
  99. <execution>
  100. <goals>
  101. <goal>repackage</goal>
  102. </goals>
  103. </execution>
  104. </executions>
  105. </plugin>
  106. <!-- maven资源文件复制插件 -->
  107. <plugin>
  108. <groupId>org.apache.maven.plugins</groupId>
  109. <artifactId>maven-resources-plugin</artifactId>
  110. <version>2.7</version>
  111. <executions>
  112. <execution>
  113. <id>copy-config</id>
  114. <phase>package</phase>
  115. <goals>
  116. <goal>copy-resources</goal>
  117. </goals>
  118. <configuration>
  119. <outputDirectory>${project.build.directory}/</outputDirectory>
  120. <resources>
  121. <resource>
  122. <directory>src/main/resources</directory>
  123. <includes>
  124. <exclude>**/*.xml</exclude>
  125. <exclude>**/*.conf</exclude>
  126. <exclude>**/*.properties</exclude>
  127. </includes>
  128. <filtering>true</filtering>
  129. </resource>
  130. </resources>
  131. <encoding>UTF-8</encoding>
  132. </configuration>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-jar-plugin</artifactId>
  139. <version>2.4</version>
  140. <configuration>
  141. <finalName>moka-private</finalName>
  142. <excludes>
  143. <exclude>*.properties</exclude>
  144. </excludes>
  145. </configuration>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-compiler-plugin</artifactId>
  150. <configuration>
  151. <source>6</source>
  152. <target>6</target>
  153. </configuration>
  154. </plugin>
  155. </plugins>
  156. </build>
  157. </project>