Maven multi-module project - copying all dependencies into a single tar.gz

前端 未结 1 1722
北恋
北恋 2021-01-23 00:15

I\'m looking to pull all of the dependencies from each module of my maven project and stick them into a single tar.gz file using the maven-assembly-plugin.

I currently h

相关标签:
1条回答
  • 2021-01-23 00:53

    You are going at it the wrong way.

    Instead of creating this archive inside the parent POM, you should create another module which will be responsible for creating it. This new module will have dependencies on all the other modules.

    To create the archive, you need to use the maven-assembly-plugin. I strongly suggest that you read Chapter 8. Maven Assemblies of the Maven book to get you started with using assemblies. Basically, an assembly is created with the help of an assembly descriptor. In your case, you will need to configure this descriptor to use the tar.gz format.

    0 讨论(0)
提交回复
热议问题