pom.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.nokia</groupId>
  7. <artifactId>dingtalk_auto</artifactId>
  8. <version>2.0</version>
  9. <packaging>jar</packaging>
  10. <properties>
  11. <!-- 跳过测试代码 -->
  12. <skipTests>
  13. true</skipTests>
  14. <!-- 指定java的版本 -->
  15. <java.version>1.8</java.version>
  16. <!-- 文件拷贝时的编码 -->
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  19. <!-- 指定maven-compiler-plugin的配置属性开始 -->
  20. <!-- 编译时的编码 -->
  21. <maven.compiler.encoding>
  22. UTF-8</maven.compiler.encoding>
  23. <!-- 指定编译的版本 -->
  24. <maven.compiler.source>1.8</maven.compiler.source>
  25. <maven.compiler.target>1.8</maven.compiler.target>
  26. <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
  27. <!-- 指定maven-compiler-plugin的配置属性结束 -->
  28. </properties>
  29. <dependencies>
  30. <!-- com.nokia.common -->
  31. <dependency>
  32. <groupId>com.nokia</groupId>
  33. <artifactId>common</artifactId>
  34. <version>1.0</version>
  35. </dependency>
  36. <!-- starter-redis -->
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-data-redis</artifactId>
  40. </dependency>
  41. <!--starter-web-->
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-web</artifactId>
  45. </dependency>
  46. <!--lombok-->
  47. <dependency>
  48. <groupId>org.projectlombok</groupId>
  49. <artifactId>lombok</artifactId>
  50. <scope>provided</scope>
  51. </dependency>
  52. <!-- springboot-test -->
  53. <dependency>
  54. <groupId>org.springframework.boot</groupId>
  55. <artifactId>spring-boot-starter-test</artifactId>
  56. <scope>test</scope>
  57. </dependency>
  58. </dependencies>
  59. <dependencyManagement>
  60. <dependencies>
  61. <!-- 当不把spring-boot-parent
  62. 作为parent项目时,需要使用dependencyManagement引入spring-boot-dependencies管理依赖 -->
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-dependencies</artifactId>
  66. <version>2.6.14</version>
  67. <type>pom</type>
  68. <scope>import</scope>
  69. </dependency>
  70. </dependencies>
  71. </dependencyManagement>
  72. <build>
  73. <finalName>dingtalk_auto</finalName>
  74. <plugins>
  75. <plugin>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-maven-plugin</artifactId>
  78. <version>2.6.14</version>
  79. <executions>
  80. <execution>
  81. <goals>
  82. <goal>repackage</goal>
  83. </goals>
  84. </execution>
  85. </executions>
  86. <configuration>
  87. <classifier>exec</classifier>
  88. </configuration>
  89. </plugin>
  90. </plugins>
  91. </build>
  92. </project>