问题
This is my current maven build module structure. Maven-assembly-plugin with assembly descriptors are used for the build. It works but I am not sure if this is the right way to do it. Code here on GitHub.com
p-build-root (packaging:pom)
|
|---p-build-data
| (packaging:pom, builds data.tar)
|
|---p-build-scripts
| (packaging:pom, builds a scripts.tar)
|
|---p-build-final
| (packaging:pom, builds p.tar)
| (In p.tar, need to include data.tar and scripts.tar)
| (dependency:
| p-build-data:type[tar.gz],
| p-build-scripts:type[tar.gz]
| )
I also tried using moduleset but not sure how this really works. Infact p-build-final always builds first. I expected the submodules to build first.
Anyways does it make more sense to use this below structure than the above one?
Any samples projects? Or how to achieve the target?
p-build-final
(packaging:pom, builds p.tar)
(In p.tar, need to include data.tar and scripts.tar)
|
|---p-build-data
| (packaging:pom, builds data.tar)
|
|---p-build-scripts
| (packaging:pom, builds a scripts.tar)
|
来源:https://stackoverflow.com/questions/31311308/including-artifiacts-from-pom-package-module-in-maven-assembly-plugin