pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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.1</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. <!-- poi -->
  31. <dependency>
  32. <groupId>org.apache.poi</groupId>
  33. <artifactId>poi</artifactId>
  34. <version>5.2.3</version>
  35. </dependency>
  36. <!-- poi 2007 -->
  37. <dependency>
  38. <groupId>org.apache.poi</groupId>
  39. <artifactId>poi-ooxml</artifactId>
  40. <version>5.2.3</version>
  41. </dependency>
  42. <!-- com.nokia.common -->
  43. <dependency>
  44. <groupId>com.nokia</groupId>
  45. <artifactId>common</artifactId>
  46. <version>1.0</version>
  47. </dependency>
  48. <!-- starter-redis -->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-data-redis</artifactId>
  52. </dependency>
  53. <!--starter-web-->
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-web</artifactId>
  57. </dependency>
  58. <!--lombok-->
  59. <dependency>
  60. <groupId>org.projectlombok</groupId>
  61. <artifactId>lombok</artifactId>
  62. <scope>provided</scope>
  63. </dependency>
  64. <!-- springboot-test -->
  65. <dependency>
  66. <groupId>org.springframework.boot</groupId>
  67. <artifactId>spring-boot-starter-test</artifactId>
  68. <scope>test</scope>
  69. </dependency>
  70. </dependencies>
  71. <dependencyManagement>
  72. <dependencies>
  73. <!-- 当不把spring-boot-parent
  74. 作为parent项目时,需要使用dependencyManagement引入spring-boot-dependencies管理依赖 -->
  75. <dependency>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-dependencies</artifactId>
  78. <version>2.6.14</version>
  79. <type>pom</type>
  80. <scope>import</scope>
  81. </dependency>
  82. </dependencies>
  83. </dependencyManagement>
  84. <build>
  85. <finalName>dingtalk_auto</finalName>
  86. <plugins>
  87. <plugin>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-maven-plugin</artifactId>
  90. <version>2.6.14</version>
  91. <executions>
  92. <execution>
  93. <goals>
  94. <goal>repackage</goal>
  95. </goals>
  96. </execution>
  97. </executions>
  98. <configuration>
  99. <classifier>exec</classifier>
  100. </configuration>
  101. </plugin>
  102. </plugins>
  103. </build>
  104. </project>