Skip to content

Instantly share code, notes, and snippets.

@tfnico
Created December 30, 2011 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tfnico/1539444 to your computer and use it in GitHub Desktop.
Save tfnico/1539444 to your computer and use it in GitHub Desktop.
Problems with grails-snapshots
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.dependency.resolution = {
inherits "global" // inherit Grails' default dependencies
log "verbose" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
repositories {
grailsPlugins()
grailsHome()
grailsCentral()
// Register the new JAR
def classLoader = getClass().classLoader
classLoader.addURL(new File(baseFile, "lib/grails-snapshot-dependencies-fix-0.1.jar").toURL())
// Get a hold of the class for the new resolver
def snapshotResolverClass = classLoader.loadClass("grails.resolver.SnapshotAwareM2Resolver")
// Define a new resolver that is snapshot aware
def localRepoResolver = snapshotResolverClass.newInstance(name: "local-repo", root: "file:///Users/tfnico/.m2/repository")
resolver(localRepoResolver)
}
dependencies {
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
compile(group: 'de.viaboxxsystems.agnes', name: 'agnes', version: '1.7-SNAPSHOT') {
changing = true
}
}
}
== resolving dependencies org.grails.internal#all-base;1.1-SNAPSHOT->de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT [compile->default]
default: Checking cache for: dependency: de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT {compile=[default]}
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: changing=true
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: changing=true
tried /Users/tfnico/projects/main/DI/grails-plugins/all-base/lib/agnes-1.7-SNAPSHOT.jar
tried /Users/tfnico/.grails/1.3.6/projects/all-base/plugins/hibernate-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
tried /Users/tfnico/.grails/1.3.6/projects/all-base/plugins/tomcat-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
grailsPlugins: no ivy file nor artifact found for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: changing=true
tried /Developer/grails/grails-1.3.6/lib/agnes-1.7-SNAPSHOT.xml
tried /Developer/grails/grails-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
grailsHome: no ivy file nor artifact found for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: changing=true
tried /Developer/grails/grails-1.3.6/dist/agnes-1.7-SNAPSHOT.xml
tried /Developer/grails/grails-1.3.6/dist/agnes-1.7-SNAPSHOT.jar
grailsHome: no ivy file nor artifact found for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: checkModified=true
tried /Developer/grails/grails-1.3.6/plugins/grails-agnes-1.7-SNAPSHOT.jar
grailsHome: no ivy file nor artifact found for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: checkModified=true
tried http://svn.codehaus.org/grails-plugins/grails-agnes/tags/RELEASE_1_7-SNAPSHOT/grails-agnes-1.7-SNAPSHOT.jar
CLIENT ERROR: Not Found url=http://svn.codehaus.org/grails-plugins/grails-agnes/tags/RELEASE_1_7-SNAPSHOT/grails-agnes-1.7-SNAPSHOT.jar
grailsCentral: no ivy file nor artifact found for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: checkModified=true
tried http://svn.codehaus.org/grails/trunk/grails-plugins/grails-agnes/tags/RELEASE_1_7-SNAPSHOT/grails-agnes-1.7-SNAPSHOT.jar
CLIENT ERROR: Not Found url=http://svn.codehaus.org/grails/trunk/grails-plugins/grails-agnes/tags/RELEASE_1_7-SNAPSHOT/grails-agnes-1.7-SNAPSHOT.jar
grailsCore: no ivy file nor artifact found for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: changing=true
maven-metadata not available: file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/maven-metadata.xml
[null] de/viaboxxsystems/agnes#agnes;1.7-SNAPSHOT
tried file:///Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT.pom
local-repo: found md file for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
=> file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT.pom (1.7-SNAPSHOT)
downloading file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT.pom ...
local-repo: downloading file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT.pom
Downloading: file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT.pom ...
Download complete.
[SUCCESSFUL ] de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT!agnes.pom(pom.original) (9ms)
default: Checking cache for: dependency: de.viaboxx.parents#viaboxx-parent;1 {}
default: module revision found in cache: de.viaboxx.parents#viaboxx-parent;1
tried /Users/tfnico/projects/main/DI/grails-plugins/all-base/lib/agnes-1.7-SNAPSHOT.jar
tried /Users/tfnico/.grails/1.3.6/projects/all-base/plugins/hibernate-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
tried /Users/tfnico/.grails/1.3.6/projects/all-base/plugins/tomcat-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
tried /Developer/grails/grails-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
tried /Developer/grails/grails-1.3.6/dist/agnes-1.7-SNAPSHOT.jar
tried /Developer/grails/grails-1.3.6/plugins/grails-agnes-1.7-SNAPSHOT.jar
tried http://svn.codehaus.org/grails-plugins/grails-agnes/tags/RELEASE_1_7-SNAPSHOT/grails-agnes-1.7-SNAPSHOT.jar
tried http://svn.codehaus.org/grails/trunk/grails-plugins/grails-agnes/tags/RELEASE_1_7-SNAPSHOT/grails-agnes-1.7-SNAPSHOT.jar
maven-metadata not available: file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/maven-metadata.xml
tried file:///Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT.jar
tried /Users/tfnico/projects/main/DI/grails-plugins/all-base/lib/agnes-1.7-SNAPSHOT.jar
tried /Users/tfnico/.grails/1.3.6/projects/all-base/plugins/hibernate-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
tried /Users/tfnico/.grails/1.3.6/projects/all-base/plugins/tomcat-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
tried /Developer/grails/grails-1.3.6/lib/agnes-1.7-SNAPSHOT-sources.jar
tried /Developer/grails/grails-1.3.6/dist/agnes-1.7-SNAPSHOT-sources.jar
tried /Developer/grails/grails-1.3.6/plugins/grails-agnes-1.7-SNAPSHOT.jar
tried http://svn.codehaus.org/grails-plugins/grails-agnes/tags/RELEASE_1_7-SNAPSHOT/grails-agnes-1.7-SNAPSHOT.jar
tried http://svn.codehaus.org/grails/trunk/grails-plugins/grails-agnes/tags/RELEASE_1_7-SNAPSHOT/grails-agnes-1.7-SNAPSHOT.jar
maven-metadata not available: file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/maven-metadata.xml
tried file:///Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT-sources.jar
tried /Users/tfnico/projects/main/DI/grails-plugins/all-base/lib/agnes-1.7-SNAPSHOT.jar
tried /Users/tfnico/.grails/1.3.6/projects/all-base/plugins/hibernate-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
tried /Users/tfnico/.grails/1.3.6/projects/all-base/plugins/tomcat-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
tried /Developer/grails/grails-1.3.6/lib/agnes-1.7-SNAPSHOT-src.jar
tried /Developer/grails/grails-1.3.6/dist/agnes-1.7-SNAPSHOT-src.jar
tried /Developer/grails/grails-1.3.6/plugins/grails-agnes-1.7-SNAPSHOT.jar
tried http://svn.codehaus.org/grails-plugins/grails-agnes/tags/RELEASE_1_7-SNAPSHOT/grails-agnes-1.7-SNAPSHOT.jar
tried http://svn.codehaus.org/grails/trunk/grails-plugins/grails-agnes/tags/RELEASE_1_7-SNAPSHOT/grails-agnes-1.7-SNAPSHOT.jar
maven-metadata not available: file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/maven-metadata.xml
tried file:///Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT-src.jar
tried /Users/tfnico/projects/main/DI/grails-plugins/all-base/lib/agnes-1.7-SNAPSHOT.jar
tried /Users/tfnico/.grails/1.3.6/projects/all-base/plugins/hibernate-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
tried /Users/tfnico/.grails/1.3.6/projects/all-base/plugins/tomcat-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
tried /Developer/grails/grails-1.3.6/lib/agnes-1.7-SNAPSHOT-javadoc.jar
tried /Developer/grails/grails-1.3.6/dist/agnes-1.7-SNAPSHOT-javadoc.jar
tried /Developer/grails/grails-1.3.6/plugins/grails-agnes-1.7-SNAPSHOT.jar
tried http://svn.codehaus.org/grails-plugins/grails-agnes/tags/RELEASE_1_7-SNAPSHOT/grails-agnes-1.7-SNAPSHOT.jar
tried http://svn.codehaus.org/grails/trunk/grails-plugins/grails-agnes/tags/RELEASE_1_7-SNAPSHOT/grails-agnes-1.7-SNAPSHOT.jar
maven-metadata not available: file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/maven-metadata.xml
tried file:///Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT-javadoc.jar
de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT is changing, but has not changed: will trust cached artifacts if any
found de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT in local-repo
....
: downloading artifacts ::
...
[NOT REQUIRED] org.springframework#org.springframework.jms;3.0.5.RELEASE!org.springframework.jms.jar
[NOT REQUIRED] org.springframework#org.springframework.orm;3.0.5.RELEASE!org.springframework.orm.jar
[NOT REQUIRED] org.springframework#org.springframework.oxm;3.0.5.RELEASE!org.springframework.oxm.jar
[NOT REQUIRED] org.springframework#org.springframework.transaction;3.0.5.RELEASE!org.springframework.transaction.jar
[NOT REQUIRED] org.springframework#org.springframework.web;3.0.5.RELEASE!org.springframework.web.jar
[NOT REQUIRED] org.springframework#org.springframework.web.servlet;3.0.5.RELEASE!org.springframework.web.servlet.jar
[NOT REQUIRED] org.slf4j#slf4j-api;1.5.8!slf4j-api.jar
maven-metadata not available: file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/maven-metadata.xml
tried file:///Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT.jar
downloading file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT.jar ...
local-repo: downloading file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT.jar
Downloading: file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT.jar ...
Download complete.
[SUCCESSFUL ] de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT!agnes.jar (2ms)
....
# After the snapshot dependency has been downloaded once, I install it again into my local repostory (mvn clean install). But still, the above downloading is not repeated..
== resolving dependencies org.grails.internal#all-base;1.1-SNAPSHOT->de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT [compile->default]
default: Checking cache for: dependency: de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT {compile=[default]}
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: changing=true
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: changing=true
tried /Users/tfnico/projects/main/DI/grails-plugins/all-base/lib/agnes-1.7-SNAPSHOT.jar
tried /Users/tfnico/.grails/1.3.6/projects/all-base/plugins/hibernate-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
tried /Users/tfnico/.grails/1.3.6/projects/all-base/plugins/tomcat-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
grailsPlugins: no ivy file nor artifact found for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: changing=true
tried /Developer/grails/grails-1.3.6/lib/agnes-1.7-SNAPSHOT.xml
tried /Developer/grails/grails-1.3.6/lib/agnes-1.7-SNAPSHOT.jar
grailsHome: no ivy file nor artifact found for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: changing=true
tried /Developer/grails/grails-1.3.6/dist/agnes-1.7-SNAPSHOT.xml
tried /Developer/grails/grails-1.3.6/dist/agnes-1.7-SNAPSHOT.jar
grailsHome: no ivy file nor artifact found for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: checkModified=true
tried /Developer/grails/grails-1.3.6/plugins/grails-agnes-1.7-SNAPSHOT.jar
grailsHome: no ivy file nor artifact found for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: checkModified=true
tried http://svn.codehaus.org/grails-plugins/grails-agnes/tags/RELEASE_1_7-SNAPSHOT/grails-agnes-1.7-SNAPSHOT.jar
grailsCentral: no ivy file nor artifact found for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: checkModified=true
tried http://svn.codehaus.org/grails/trunk/grails-plugins/grails-agnes/tags/RELEASE_1_7-SNAPSHOT/grails-agnes-1.7-SNAPSHOT.jar
grailsCore: no ivy file nor artifact found for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
don't use cache for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT: changing=true
maven-metadata not available: file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/maven-metadata.xml
[null] de/viaboxxsystems/agnes#agnes;1.7-SNAPSHOT
tried file:///Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT.pom
local-repo: found md file for de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
=> file:/Users/tfnico/.m2/repository/de/viaboxxsystems/agnes/agnes/1.7-SNAPSHOT/agnes-1.7-SNAPSHOT.pom (1.7-SNAPSHOT)
default-cache: revision in cache (not updated): de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT
found de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT in default
== resolving dependencies org.grails.internal#all-base;1.1-SNAPSHOT->de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT [compile->runtime]
== resolving dependencies org.grails.internal#all-base;1.1-SNAPSHOT->de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT [compile->compile]
== resolving dependencies de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT->junit#junit;4.8.2 [compile->master(*)]
default: Checking cache for: dependency: junit#junit;4.8.2 {compile=[compile(*), master(*)], runtime=[runtime(*)]}
default: module revision found in cache: junit#junit;4.8.2
found junit#junit;4.8.2 in default
== resolving dependencies de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT->junit#junit;4.8.2 [compile->compile(*)]
== resolving dependencies de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT->junit#junit;4.8.2 [runtime->runtime(*)]
== resolving dependencies de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT->junit#junit;4.8.2 [runtime->compile]
== resolving dependencies org.grails.internal#all-base;1.1-SNAPSHOT->de.viaboxxsystems.agnes#agnes;1.7-SNAPSHOT [compile->master]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment