Grails and Local Maven Dependencies

后端 未结 2 1446
甜味超标
甜味超标 2021-01-06 18:12

I\'m developing a small web frontend in Grails. It is basically a \"ultra light-weight\" client app that is connected async through JMS.

I have two dependencies in t

相关标签:
2条回答
  • 2021-01-06 18:42

    It turned out that the problem was then non empty cache for the artifact. While the activemq jar file was untouched, the acme-adapter-api.jar was in fact many times changed but without increasing the maven build id, 1.3, in the above case.

    I could fix it, when I increased the build number to 1.4-SNAPSHOT...

    Two question remain:

    1. Isn't the maven contract to always fetch SNAPSHOT versions, for the exact same reason?
    2. How to forcefully empty the cache? And where is it?

    I will open a new question to answer part 2 here

    0 讨论(0)
  • 2021-01-06 18:53

    Grails 1.3.6 has been updated with Ivy 2.2 (which indicated that it applied a fix for https://issues.apache.org/jira/browse/IVY-938) and I can get updates to SNAPSHOT versions if I specify "changing = true", as in:

    dependencies {
      runtime ('groupId:artifactId:version-SNAPSHOT') {
        changing = true
      }
    }
    
    0 讨论(0)
提交回复
热议问题