开发者

maven dependencies in profiles during release build

I have a maven module which has several dependencies that are contained in profiles. When preparing a release build using the release plugin (i.e. mvn release:prepare), the versions of those dependencies do not get replaced, instead they remain the SNAPSHOT dependencies, even though the profiles are active (we run mvn release:prepare -Psomeprofile). I have also tried adding -Darguments="-Psomeprofile" to the m开发者_开发百科vn call, but this did not help either.

How can I make the release plugin also replace the versions of dependencies that are contained in profiles?


This looks like MRELEASE-354, "Versions defined in profiles are not updated". The workaround if to use

<version>${project.version}</version> 

for the dependencies defined inside profiles.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜