pom.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.sp</groupId>
  7. <artifactId>director</artifactId>
  8. <version>1.0.0</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.sp</groupId>
  12. <artifactId>task</artifactId>
  13. <version>1.0.0</version>
  14. <name>task</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. </properties>
  19. <dependencies>
  20. <dependency>
  21. <groupId>org.projectlombok</groupId>
  22. <artifactId>lombok</artifactId>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.springframework</groupId>
  26. <artifactId>spring-context</artifactId>
  27. <scope>compile</scope>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-web</artifactId>
  32. </dependency>
  33. <!-- 导入数据源 -->
  34. <dependency>
  35. <groupId>com.alibaba</groupId>
  36. <artifactId>druid-spring-boot-starter</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.sp</groupId>
  40. <artifactId>core</artifactId>
  41. <version>${director-version}</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.baomidou</groupId>
  45. <artifactId>mybatis-plus-boot-starter</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.commons</groupId>
  49. <artifactId>commons-pool2</artifactId>
  50. </dependency>
  51. </dependencies>
  52. <build>
  53. <finalName>director-task</finalName>
  54. <plugins>
  55. <!-- 配置Maven的JDK编译级别 -->
  56. <plugin>
  57. <groupId>org.apache.maven.plugins</groupId>
  58. <artifactId>maven-compiler-plugin</artifactId>
  59. <version>3.2</version>
  60. <configuration>
  61. <source>1.8</source>
  62. <target>1.8</target>
  63. <encoding>UTF-8</encoding>
  64. <compilerArgs>
  65. <arg>-parameters</arg>
  66. </compilerArgs>
  67. </configuration>
  68. </plugin>
  69. <plugin>
  70. <groupId>org.springframework.boot</groupId>
  71. <artifactId>spring-boot-maven-plugin</artifactId>
  72. <configuration>
  73. <includeSystemScope>true</includeSystemScope>
  74. </configuration>
  75. </plugin>
  76. <!-- 打包的时候跳过测试用例 -->
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-surefire-plugin</artifactId>
  80. <version>2.18.1</version>
  81. <configuration>
  82. <skipTests>true</skipTests>
  83. </configuration>
  84. </plugin>
  85. </plugins>
  86. <resources>
  87. <resource>
  88. <directory>src/main/java</directory>
  89. <includes>
  90. <include>**/*.xml</include>
  91. </includes>
  92. <filtering>true</filtering>
  93. </resource>
  94. <resource>
  95. <directory>src/main/resources</directory>
  96. <includes>
  97. <include>**/*.*</include>
  98. </includes>
  99. <filtering>true</filtering>
  100. </resource>
  101. </resources>
  102. </build>
  103. </project>