how to force maven to update local repo

后端 未结 6 1243
灰色年华
灰色年华 2021-02-03 22:27

I compiled a jar file in one project so it can be consumed in the 2nd one. I can see the jar file in .m2 folder. But in the 2nd project it complains about artifact not found. I

6条回答
  •  悲哀的现实
    2021-02-03 22:59

    try using -U (aka --update-snapshots) when you run maven

    And make sure the dependency definition is correct

提交回复
热议问题