Including artifiacts from pom package module in maven-assembly-plugin

拥有回忆 提交于 2019-12-11 12:50:42

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!