pom.xml 2.1 KB

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