IntelliJ / Maven does not update artifacts from Artifactory

I recently installed a password-protected Artifactory server. The Jenkins server deploys my artifacts to the maven repository on this Artifactory server.

Here's the problem:
New builds are not available at runtime (in IntelliJ) nor in Maven (when created). To update maven, I have to remove artifacts from my local repo.

How can I tell Maven / IntelliJ to always check the latest version?
Even this did nothing:

<releases>
    <enabled>true</enabled>
    <updatePolicy>always</updatePolicy>
</releases>
<snapshots>
    <enabled>true</enabled>
    <updatePolicy>always</updatePolicy>
</snapshots>
+4
source share
1 answer

There are cases to deal with:

  • . Not Maven Artifactory , (~/.m2/ Maven Artifactory). Artifactory Maven - . blob.
  • . ( ) ( -SNAPSHOT , , , , ), : Maven , , . Artifactory : "expired", , Maven , Artifactory , blob, . "zap the cache" .
    • Maven <update-policy/> , Maven snpashots, --update-snapshots Maven .
    • Artifactory Retrieval Cache Period , Artifactory , Zap Caches , Artifactory .
+2

All Articles