这是我目前的maven构建模块结构。带有程序集描述符的Maven-assembly-plugin用于构建。它有效,但我不确定这是否是正确的方法。 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]
| )
我也尝试过使用模块集但不确定这是如何工作的。事实上p-build-final总是先建立。我期望首先建立子模块 无论如何使用下面的结构比上面的结构更有意义吗? 任何样品项目?或者如何实现目标?
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)
|