pom.xml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. <parent>
  6. <artifactId>devops</artifactId>
  7. <groupId>cn.reghao.devops</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>agent</artifactId>
  12. <version>1.0.0</version>
  13. <properties>
  14. <project.build.outputDir>${project.parent.basedir}/bin/agent</project.build.outputDir>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>cn.reghao.devops</groupId>
  19. <artifactId>common</artifactId>
  20. <version>1.0.0-SNAPSHOT</version>
  21. </dependency>
  22. <dependency>
  23. <groupId>com.fasterxml.jackson.core</groupId>
  24. <artifactId>jackson-databind</artifactId>
  25. <version>2.15.3</version>
  26. </dependency>
  27. </dependencies>
  28. <build>
  29. <finalName>ops-${project.artifactId}</finalName>
  30. <resources>
  31. <resource>
  32. <directory>src/main/resources</directory>
  33. <filtering>true</filtering>
  34. <includes>
  35. <include>git.properties</include>
  36. <include>logback.xml</include>
  37. </includes>
  38. </resource>
  39. </resources>
  40. <plugins>
  41. <plugin>
  42. <groupId>org.apache.maven.plugins</groupId>
  43. <artifactId>maven-assembly-plugin</artifactId>
  44. <version>3.2.0</version>
  45. <configuration>
  46. <archive>
  47. <manifest>
  48. <mainClass>cn.reghao.devops.agent.AgentApp</mainClass>
  49. </manifest>
  50. </archive>
  51. <descriptorRefs>
  52. <descriptorRef>jar-with-dependencies</descriptorRef>
  53. </descriptorRefs>
  54. <!-- 不设置此属性则生成的 jar 包名字会带有 jar-with-dependencies -->
  55. <appendAssemblyId>false</appendAssemblyId>
  56. <outputDirectory>${project.build.outputDir}</outputDirectory>
  57. </configuration>
  58. <executions>
  59. <execution>
  60. <id>make-assembly</id>
  61. <phase>package</phase>
  62. <goals>
  63. <goal>single</goal>
  64. </goals>
  65. </execution>
  66. </executions>
  67. </plugin>
  68. </plugins>
  69. </build>
  70. </project>