pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <artifactId>spring-boot-starter-parent</artifactId>
  6. <groupId>org.springframework.boot</groupId>
  7. <version>2.6.9</version>
  8. </parent>
  9. <artifactId>alarm</artifactId>
  10. <version>1.3</version>
  11. <packaging>jar</packaging>
  12. <properties>
  13. <!-- 跳过测试代码 -->
  14. <skipTests>true</skipTests>
  15. <!-- 指定java的版本 -->
  16. <java.version>1.8</java.version>
  17. <!-- 文件拷贝时的编码 -->
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <!-- 指定maven-compiler-plugin的配置属性开始 -->
  21. <!-- 编译时的编码 -->
  22. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  23. <!-- 指定编译的版本 -->
  24. <maven.compiler.source>8</maven.compiler.source>
  25. <maven.compiler.target>8</maven.compiler.target>
  26. <maven.compiler.compilerVersion>8</maven.compiler.compilerVersion>
  27. <!-- 指定maven-compiler-plugin的配置属性结束 -->
  28. </properties>
  29. <dependencies>
  30. <!-- 本地依赖开始 -->
  31. <dependency>
  32. <groupId>com.hl.opnc</groupId>
  33. <artifactId>opnc-sdk</artifactId>
  34. <version>1.0.0-SNAPSHOT</version>
  35. <scope>system</scope>
  36. <systemPath>${project.basedir}/lib/opnc-sdk-1.0.0-SNAPSHOT.jar</systemPath>
  37. </dependency>
  38. <!-- opnc-sdk 依赖开始 -->
  39. <dependency>
  40. <groupId>org.apache.httpcomponents</groupId>
  41. <artifactId>httpclient</artifactId>
  42. <version>4.5.13</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.httpcomponents</groupId>
  46. <artifactId>httpmime</artifactId>
  47. <version>4.5</version>
  48. </dependency>
  49. <!-- opnc-sdk 依赖结束 -->
  50. <!-- 本地依赖结束 -->
  51. <!-- mybatis -->
  52. <dependency>
  53. <groupId>org.mybatis.spring.boot</groupId>
  54. <artifactId>mybatis-spring-boot-starter</artifactId>
  55. <version>2.2.2</version>
  56. </dependency>
  57. <!-- postgresql数据库和greenplum数据库驱动 -->
  58. <dependency>
  59. <groupId>org.postgresql</groupId>
  60. <artifactId>postgresql</artifactId>
  61. <scope>runtime</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.alibaba</groupId>
  65. <artifactId>fastjson</artifactId>
  66. <version>2.0.7.graal</version>
  67. </dependency>
  68. <!-- commons-csv -->
  69. <dependency>
  70. <groupId>org.apache.commons</groupId>
  71. <artifactId>commons-csv</artifactId>
  72. <version>1.9.0</version>
  73. </dependency>
  74. <!-- commons-beanutils -->
  75. <dependency>
  76. <groupId>commons-beanutils</groupId>
  77. <artifactId>commons-beanutils-core</artifactId>
  78. <version>1.8.3</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-starter-web</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-starter-test</artifactId>
  87. <scope>test</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.projectlombok</groupId>
  91. <artifactId>lombok</artifactId>
  92. <scope>provided</scope>
  93. <version>1.18.30</version>
  94. </dependency>
  95. </dependencies>
  96. <build>
  97. <!-- testSourceDirectory 测试代码的路径,有的ide是自动识别的 vscode需要通过pom进行配置 -->
  98. <testSourceDirectory>src/test</testSourceDirectory>
  99. <plugins>
  100. <plugin>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-maven-plugin</artifactId>
  103. <configuration>
  104. <!-- 把systemPath指定的依赖一起打包到BOOT-INF/lib -->
  105. <includeSystemScope>true</includeSystemScope>
  106. <!-- 打包1个带exec的可执行jar包和一个不带exec的可作为依赖的jar包 -->
  107. <classifier>exec</classifier>
  108. </configuration>
  109. </plugin>
  110. </plugins>
  111. </build>
  112. </project>