intelij ignore maven update policy
Hi
we are using intelij version :11.1.3
it seems that intelij ignores repository update policy that was set in our pom :
we set:
<repository>
<id>horizon</id>
<url>http://somerepo:8081/nexus/content/groups/some-group</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
</snapshots>
</repository>
this configuration should prevent maven from updating snapshots in the local .m2 repository.
but when we are using the reimport button in intellij we see in our local .m2 repository artifacts that where updated from nexus.
in order to prevent this we tried to set the maven settings of intellij to "never update" see attached screenshot.
how can we inforce intellij to to use our pom definition without using offline mode ?
Thanks!
Attachment(s):
intellijUpdatePolicy.gif
请先登录再写评论。
It's a known problem: http://youtrack.jetbrains.com/issue/IDEA-76869
This issue is not extreme case. Snapshot update policy is standard maven mechanism...
It leads to unexpected compilation error when snapshot is updated but the local File System isn't synced with Source Control.
Is it fixed in Intelij 12.0?
If yes we must upgrade.