pom.xml 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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>AppInterface_jian</groupId>
  7. <artifactId>AppInterface_jian</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <packaging>war</packaging>
  10. <properties>
  11. <java.version>1.8</java.version>
  12. </properties>
  13. <parent>
  14. <groupId>org.springframework.boot</groupId>
  15. <artifactId>spring-boot-starter-parent</artifactId>
  16. <version>2.6.5</version>
  17. </parent>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter-web</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>com.alibaba</groupId>
  25. <artifactId>fastjson</artifactId>
  26. <version>1.2.13</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.apache.httpcomponents</groupId>
  30. <artifactId>httpcore</artifactId>
  31. <version>4.4.10</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.apache.httpcomponents</groupId>
  35. <artifactId>httpclient</artifactId>
  36. <version>4.5.6</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>io.springfox</groupId>
  40. <artifactId>springfox-swagger2</artifactId>
  41. <version>2.5.0</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>io.springfox</groupId>
  45. <artifactId>springfox-swagger-ui</artifactId>
  46. <version>2.5.0</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>commons-io</groupId>
  50. <artifactId>commons-io</artifactId>
  51. <version>2.4</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>ceshi</groupId>
  55. <artifactId>UserAgentUtils</artifactId>
  56. <version>1.13</version>
  57. <scope>system</scope>
  58. <systemPath>${basedir}/src/main/resources/lib/UserAgentUtils-1.13.jar</systemPath>
  59. </dependency>
  60. </dependencies>
  61. <build>
  62. <plugins>
  63. <plugin>
  64. <groupId>org.apache.maven.plugins</groupId>
  65. <artifactId>maven-compiler-plugin</artifactId>
  66. <version>3.8.1</version>
  67. <configuration>
  68. <failOnError>true</failOnError>
  69. <verbose>true</verbose>
  70. <fork>true</fork>
  71. <compilerArgument>-nowarn</compilerArgument>
  72. <source>${java.version}</source>
  73. <target>${java.version}</target>
  74. <encoding>UTF-8</encoding>
  75. </configuration>
  76. </plugin>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-war-plugin</artifactId> --> 这个是需要引入的打war包的jar
  80. <configuration>
  81. <webResources>
  82. <resource>
  83. <directory>${basedir}/src/main/resources/lib</directory> --> 这个是需要打的jar地址
  84. <targetPath>WEB-INF/lib/</targetPath> --> 这个是打的jar放的地址一般都是这个
  85. <includes>
  86. <include>**/*.jar</include> --> 路径下所有jar全部打包过去
  87. </includes>
  88. </resource>
  89. </webResources>
  90. </configuration>
  91. </plugin>
  92. </plugins>
  93. </build>
  94. </project>