I am using Grails 2.1.1 and Maven 3.0.3.
In my buildConfig.groovy, I have pom true
and I generated the pom.xml via grails create-pom
. In this pom I have a dependency with <version>1.0-SNAPSHOT</version>
which exists only in my local maven repository. I can successfully run mvn clean compile
on this pom.
However running grails refresh-dependencies
does not download the most recent version of my snapshot dependency from my local maven repository. The only way I can get it to download the latest version is to manually delete it from the ivy cache.
According to the documentation:
All dependencies (jars and plugins) with a version number ending in -SNAPSHOT are implicitly considered to be changing by Grails.
I assume it would recognize my snapshot file as changing and download it when it is modified. Am I missing some other configuration step? I only want to use maven for dependency management, but is this entirely the wrong way to use Maven with Grails?