package.xml 945 B

123456789101112131415161718192021222324
  1. <assembly xmlns="https://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="https://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/assembly-1.0.0.xsd">
  4. <id>package</id>
  5. <formats>
  6. <format>zip</format>
  7. </formats>
  8. <baseDirectory>${project.name}</baseDirectory>
  9. <!-- ${project.build.directory} -->
  10. <!-- 生成的压缩包里面有一个根目录 -->
  11. <includeBaseDirectory>true</includeBaseDirectory>
  12. <componentDescriptors>
  13. <componentDescriptor>${project.basedir}/../assembly/component.xml</componentDescriptor>
  14. </componentDescriptors>
  15. <containerDescriptorHandlers>
  16. <containerDescriptorHandler>
  17. <handlerName>metaInf-services</handlerName>
  18. </containerDescriptorHandler>
  19. <containerDescriptorHandler>
  20. <handlerName>metaInf-spring</handlerName>
  21. </containerDescriptorHandler>
  22. </containerDescriptorHandlers>
  23. </assembly>