Maven not using local repository

前端 未结 2 1955
没有蜡笔的小新
没有蜡笔的小新 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:43

    You've configured that the SNAPSHOTs should always (always) 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.

提交回复
热议问题