Maven not using local repository

前端 未结 2 1844
没有蜡笔的小新
没有蜡笔的小新 2021-01-02 04:11

I have a small problem with my Maven config. All other questions and answers here didn\'t solve my problem, so I\'m starting a new question.

My problem is, that my M

相关标签:
2条回答
  • 2021-01-02 04:28

    If you change you'r config to <updatePolicy>always</updatePolicy>, it still will attempts to download from the nexus, because you have to disable nexus config in pom.xml
    mind that <reposotiry> tag in your pom.xml will take precedence over what's defined in your settings.xml

    0 讨论(0)
  • 2021-01-02 04:43

    You've configured that the SNAPSHOTs should always (<updatePolicy>always</updatePolicy>) be downloaded from your snapshot-nexus. So even if your local cache (the ~/.m2/repository) has a newer version of the snapshot, maven tries to download it from the configured server (http://nexus/content/repositories/snapshots).

    Think about changing the updatePolicy for the snapshot-entry. E.g. if you have a CI-server which deploys a SNAPSHOT daily (in the morning) to the snapshot-nexus, change the updatePolicy to daily.

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