pom.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. <properties>
  13. <project.build.outputDir>${project.basedir}/bin</project.build.outputDir>
  14. </properties>
  15. <dependencies>
  16. <dependency>
  17. <groupId>cn.reghao.devops</groupId>
  18. <artifactId>common</artifactId>
  19. <version>1.0.0</version>
  20. </dependency>
  21. <dependency>
  22. <groupId>io.lettuce</groupId>
  23. <artifactId>lettuce-core</artifactId>
  24. <version>5.3.6.RELEASE</version>
  25. </dependency>
  26. </dependencies>
  27. <build>
  28. <finalName>devops-agent</finalName>
  29. <plugins>
  30. <plugin>
  31. <groupId>org.apache.maven.plugins</groupId>
  32. <artifactId>maven-assembly-plugin</artifactId>
  33. <version>3.2.0</version>
  34. <configuration>
  35. <archive>
  36. <manifest>
  37. <mainClass>cn.reghao.devops.agent.AgentApp</mainClass>
  38. </manifest>
  39. </archive>
  40. <descriptorRefs>
  41. <descriptorRef>jar-with-dependencies</descriptorRef>
  42. </descriptorRefs>
  43. <!-- 不设置此属性则生成的 jar 包名字会带有 jar-with-dependencies -->
  44. <appendAssemblyId>false</appendAssemblyId>
  45. <outputDirectory>${project.build.outputDir}</outputDirectory>
  46. </configuration>
  47. <executions>
  48. <execution>
  49. <id>make-assembly</id>
  50. <phase>package</phase>
  51. <goals>
  52. <goal>single</goal>
  53. </goals>
  54. </execution>
  55. </executions>
  56. </plugin>
  57. </plugins>
  58. </build>
  59. </project>