如何通过单个pom.xml创建多个程序集

时间:2019-01-17 13:55:38

标签: maven build automation maven-plugin maven-assembly-plugin

我想使用maven为每个目录创建多个程序集,而无需使用多模块。 我的项目结构如下:

├───assembly
├───src
│   └───main
│       └───environments
│           ├───dev
│           │   └───some files
│           └───local
│           │    └───some file
│           └───test
│               └───some files
└───target
|   ├───dev.zip
|   └───local.zip
|   ├───test.zip
│           
│           
│           
│              
└───pom.xml

在上述项目结构中,我想为目录dev,local和test建立三个zip文件

我发现了一个类似的问题How to create multiple WAR files from single pom.xml?。但是我正在寻找不使用多个模块的解决方案。

0 个答案:

没有答案