在Nexus中部署后,POM.xml中的变量没有解析? [英] After deploy in Nexus, the variables in POM.xml are not resolved?
本文介绍了在Nexus中部署后,POM.xml中的变量没有解析?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用 Maven Multi-Modul,Jenkins 构建然后在 Nexus 中部署...
I use Maven Multi-Modul, Jenkins builds and then deploy in Nexus...
我在我的 Pom 文件中使用了许多我在 parent-pom 部分属性中定义的变量
I'm using in my Pom files many variables that I have defined in parent-pom part propertis
我会在构建/部署之后解析 Pom-Nexus 中的变量.
I would have after the build/deploy resolved the variables in Pom-Nexus.
我知道这是可行的,因为我几年前就做了....
I know that this is feasible, because I made a few years ago....
推荐答案
我想,我找到了
<build>
<plugins>
<plugin>
<groupId>com.sap.prd.mobile.ios.maven.plugins</groupId>
<artifactId>resolve-pom-maven-plugin</artifactId>
<version>1.0</version>
<executions>
<execution>
<id>resolve-pom-props</id>
<goals>
<goal>resolve-pom-props</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
这篇关于在Nexus中部署后,POM.xml中的变量没有解析?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文