杭州市委办项管
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

162 行
5.3KB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>project-management</artifactId>
  7. <groupId>com.ningdatech</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>syn-data-task</artifactId>
  12. <properties>
  13. <maven.compiler.source>8</maven.compiler.source>
  14. <maven.compiler.target>8</maven.compiler.target>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>com.google.guava</groupId>
  19. <artifactId>guava</artifactId>
  20. </dependency>
  21. <dependency>
  22. <groupId>cn.hutool</groupId>
  23. <artifactId>hutool-all</artifactId>
  24. <version>5.8.5</version>
  25. </dependency>
  26. <!-- mysql -->
  27. <dependency>
  28. <groupId>mysql</groupId>
  29. <artifactId>mysql-connector-java</artifactId>
  30. </dependency>
  31. <!--lombok-->
  32. <dependency>
  33. <groupId>org.projectlombok</groupId>
  34. <artifactId>lombok</artifactId>
  35. </dependency>
  36. <!-- mybatis plus-->
  37. <dependency>
  38. <groupId>com.baomidou</groupId>
  39. <artifactId>mybatis-plus-boot-starter</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.apache.commons</groupId>
  43. <artifactId>commons-lang3</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.alibaba</groupId>
  47. <artifactId>fastjson</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.apache.tomcat.embed</groupId>
  51. <artifactId>tomcat-embed-core</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-web</artifactId>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.springframework.boot</groupId>
  59. <artifactId>spring-boot-starter-jdbc</artifactId>
  60. </dependency>
  61. <!--实现springboot的热加载-->
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-devtools</artifactId>
  65. <optional>true</optional>
  66. <scope>true</scope>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.springframework.boot</groupId>
  70. <artifactId>spring-boot-starter-aop</artifactId>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.ningdatech</groupId>
  74. <artifactId>nd-swagger2-starter</artifactId>
  75. <exclusions>
  76. <exclusion>
  77. <groupId>org.slf4j</groupId>
  78. <artifactId>slf4j-log4j12</artifactId>
  79. </exclusion>
  80. </exclusions>
  81. </dependency>
  82. </dependencies>
  83. <!-- 打包 -->
  84. <!--配置环境的profile-->
  85. <profiles>
  86. <profile>
  87. <id>dev</id>
  88. <properties>
  89. <!--使用${environment}获取值-->
  90. <environment>dev</environment>
  91. </properties>
  92. </profile>
  93. <profile>
  94. <id>test</id>
  95. <properties>
  96. <environment>test</environment>
  97. </properties>
  98. </profile>
  99. <profile>
  100. <id>pre</id>
  101. <properties>
  102. <environment>pre</environment>
  103. </properties>
  104. </profile>
  105. <profile>
  106. <id>prod</id>
  107. <properties>
  108. <environment>prod</environment>
  109. </properties>
  110. </profile>
  111. </profiles>
  112. <build>
  113. <resources>
  114. <resource>
  115. <directory>src/main/resources</directory>
  116. <includes>
  117. <include>**/*</include>
  118. </includes>
  119. </resource>
  120. <resource>
  121. <directory>src/main/java</directory>
  122. <includes>
  123. <include>**/*.xml</include>
  124. </includes>
  125. </resource>
  126. <resource>
  127. <directory>src/main/lib</directory>
  128. <targetPath>BOOT-INF/lib/</targetPath>
  129. <includes>
  130. <include>**/*.jar</include>
  131. </includes>
  132. </resource>
  133. <resource>
  134. <directory>src/main/resources</directory>
  135. <targetPath>BOOT-INF/classes/</targetPath>
  136. </resource>
  137. </resources>
  138. <finalName>${project.artifactId}</finalName>
  139. <plugins>
  140. <plugin>
  141. <groupId>org.springframework.boot</groupId>
  142. <artifactId>spring-boot-maven-plugin</artifactId>
  143. <version>2.6.8</version>
  144. <configuration>
  145. <includeSystemScope>true</includeSystemScope>
  146. </configuration>
  147. <executions>
  148. <execution>
  149. <goals>
  150. <goal>repackage</goal>
  151. </goals>
  152. </execution>
  153. </executions>
  154. </plugin>
  155. </plugins>
  156. </build>
  157. </project>