Maven构建期望错误版本的JAR。

huangapple go评论73阅读模式
英文:

maven build expecting wrong version of jar

问题

我正在执行一个Maven构建,但由于Maven引用了错误的版本,所以构建失败了。

pom.xml中lombok依赖的定义

当我进行构建时,它失败了,并显示以下原因:无法找到组织org.projectlombok:lombok:jar:${lombok.version}的构件,不确定为什么它引用了lombok.version,而我们已经指定了版本1.18.4。

而且,这是最近突然出现的问题。

有人能够帮助我吗?

英文:

I am doing a maven build and its getting failed since the maven is referring to wrong version

pom.xml definition for lombok dependency

When i am building , its failing with below reason .Could not find artifact org.projectlombok:lombok:jar:${lombok.version} , not sure why its referring to lombok.version when we given the version 1.18.4

And this started recently all of sudden .

Can some one able to help me

答案1

得分: 0

有一些地方,可能是在您的POM文件、父POM文件或依赖项中,定义了lombok的版本为<version>${lombok.version}</version>

这导致了问题。

英文:

There is some place either in your POM, or your parent POM or maybe a dependency where the version of lombok is defined as &lt;version&gt;${lombok.version}&lt;/version&gt;.

This causes the problem.

huangapple
  • 本文由 发表于 2020年10月7日 02:38:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/64231916.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定