Missing artifact error in Maven

前端 未结 1 1122
北海茫月
北海茫月 2020-12-21 12:53

I get a missing artifact error during Maven build because one of the dependencies declares it\'s parent artifact using a property for the version. Now the property itself is

相关标签:
1条回答
  • 2020-12-21 13:29

    I get a missing artifact error during Maven build because one of the dependencies declares it's parent artifact using a property for the version. Now the property itself is declared in the parent pom and my project's build fails giving this error (...)

    This is a chicken and egg problem: you can't get the version of the parent to use from the parent.

    Is there a way to specify the value of someversion property used in the dependency pom?

    AFAIK, this is not possible, properties in project.parent.version do NOT get substituted. You might want to check MNG-624 (and vote for it) and related issues.

    If not, how should the dependency pom be changed to resolve the error?

    Use an "hard-coded" version in project.parent.version.

    0 讨论(0)
提交回复
热议问题