pom.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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>yyds.sniarbtej</groupId>
  7. <artifactId>Agent</artifactId>
  8. <version>1.1</version>
  9. <properties>
  10. <maven.compiler.source>8</maven.compiler.source>
  11. <maven.compiler.target>8</maven.compiler.target>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. </properties>
  14. <dependencies>
  15. <dependency>
  16. <groupId>org.ow2.asm</groupId>
  17. <artifactId>asm</artifactId>
  18. <version>9.7</version>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.ow2.asm</groupId>
  22. <artifactId>asm-util</artifactId>
  23. <version>9.7</version>
  24. </dependency>
  25. <dependency>
  26. <groupId>com.google.code.gson</groupId>
  27. <artifactId>gson</artifactId>
  28. <version>2.8.0</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>commons-codec</groupId>
  32. <artifactId>commons-codec</artifactId>
  33. <version>1.17.1</version>
  34. </dependency>
  35. </dependencies>
  36. <build>
  37. <plugins>
  38. <plugin>
  39. <groupId>org.apache.maven.plugins</groupId>
  40. <artifactId>maven-compiler-plugin</artifactId>
  41. <version>3.6.0</version>
  42. <configuration>
  43. <source>8</source>
  44. <target>8</target>
  45. <fork>true</fork>
  46. <compilerArgument>-XDignore.symbol.file</compilerArgument>
  47. </configuration>
  48. </plugin>
  49. <plugin>
  50. <groupId>org.apache.maven.plugins</groupId>
  51. <artifactId>maven-jar-plugin</artifactId>
  52. <configuration>
  53. <archive>
  54. <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
  55. </archive>
  56. </configuration>
  57. </plugin>
  58. <plugin>
  59. <groupId>org.apache.maven.plugins</groupId>
  60. <artifactId>maven-shade-plugin</artifactId>
  61. <version>3.2.4</version>
  62. <executions>
  63. <execution>
  64. <phase>package</phase>
  65. <goals>
  66. <goal>shade</goal>
  67. </goals>
  68. <configuration>
  69. <minimizeJar>false</minimizeJar>
  70. <createDependencyReducedPom>true</createDependencyReducedPom>
  71. <dependencyReducedPomLocation>
  72. ${java.io.tmpdir}/dependency-reduced-pom.xml
  73. </dependencyReducedPomLocation>
  74. <relocations>
  75. <relocation>
  76. <pattern>org</pattern>
  77. <shadedPattern>yyds.sniarbtej</shadedPattern>
  78. </relocation>
  79. <relocation>
  80. <pattern>com.google</pattern>
  81. <shadedPattern>yyds.sniarbtej</shadedPattern>
  82. </relocation>
  83. </relocations>
  84. </configuration>
  85. </execution>
  86. </executions>
  87. </plugin>
  88. </plugins>
  89. </build>
  90. </project>