我为各自的preprod创建了个人资料,但是在jenkins构建中面临着如下问题:
[WARNING] The requested profile "preprod" could not be activated because it does not exist.
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1.jbossorg-3:exec (default-cli) on project mbddx-calc-engine-services: Misconfigured argument, value is null. Set the argument to an empty value if this is the required behaviour. -> [Help 1]
答案 0 :(得分:0)
您需要使用以下配置文件配置项目pom.xml
:
<profiles>
<profile>
<id>preprod</id>
</profile>
</profiles>
或通过添加-P!preprod
从您运行的mvn命令中排除该目标。见here