Maven: Command to update repository after adding dependency to POM

后端 未结 5 731
生来不讨喜
生来不讨喜 2020-11-28 00:41

I\'ve added a new dependency to my POM.

Is there a simple command I can run to download this dependency to my repository?

5条回答
  •  感动是毒
    2020-11-28 00:50

    Pay attention to your dependency scope I was having the issue where when I invoke clean compile via Intellij, the pom would get downloaded, but the jar would not. There was a xxx.jar.lastUpdated file created. Then realized that the dependency scope was test, but I was triggering the compile. I deleted the repos, and triggered the mvn test, and issue was resolved.

提交回复
热议问题