maven - 用于运行多个配置文件的 maven 命令行
问题描述
我的 pom.xml 中有 2 个配置文件,需要同时打包 2 个 WAR 文件,这是 pom
<profiles>
<profile>
<id>TEST</id>
-- scripts
</profile>
<profile>
<id>DEV</id>
-- scripts
</profile>
</profiles>
我试过了
clean package -P Dev,Test
但是生成的 WAR 是最后一个(测试)并且开发配置文件没有运行
解决方案
您可以使用多个P
参数:
mvn clean package -P Dev -P Test
推荐阅读
- html - 字幕文本不居中出现问题,右侧显示绿条
- kotlin - 从 mutableStateListOf 中删除项目它保留已删除 TextField 的值,将此值传递给下面的另一个 TextField
- android - 显示从android studio中的两个不同数组列表中选择多个项目的风险百分比?
- python - 刮沃尔玛搜索结果python
- hyperledger-fabric - 私人数据收集与加密
- flutter - 在flutter中使用for循环调用函数
- amazon-web-services - 如何使用数据库在 AWS 中使用 Glue 作业覆盖 s3 数据
- refactoring - 更改类名是否被视为重构?
- cygwin - Inno Setup 程序由于 .crt 文件而无法运行,但可以在源目录中运行
- javascript - 两个按钮问题