STEP 1
將日誌級別設置在BuilConfig.groovy
grails.project.dependency.resolution = {
inherits("global") {
}
log "verbose" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
...
}
你會發現公共編解碼器~/.grails/ivy-cache
,
$ ll ~/.grails/ivy-cache/commons-codec/commons-codec/
total 40
drwx------ 3 prayagupd prayagupd 4096 Feb 25 2014 ./
drwx------ 3 prayagupd prayagupd 4096 Dec 27 2013 ../
-rwx------ 1 prayagupd prayagupd 6289 Dec 27 2013 ivy-1.5.xml*
-rwx------ 1 prayagupd prayagupd 6299 Dec 27 2013 ivy-1.5.xml.original*
-rwx------ 1 prayagupd prayagupd 415 Feb 25 2014 ivy-1.6.xml*
-rwx------ 1 prayagupd prayagupd 660 Nov 4 11:57 ivydata-1.5.properties*
-rwx------ 1 prayagupd prayagupd 383 Nov 4 11:57 ivydata-1.6.properties*
drwx------ 2 prayagupd prayagupd 4096 Feb 25 2014 jars/
STEP 2
長篇大論3210
其實在verbose
模式下,它可能會告訴你去除~/.grails/ivy-cache
,
rm -r ~/.grails/ivy-cache
STEP 3
消防任何命令你的愛,
grails clean && grails refresh-dependencies && grails compile
STEP 4
事情看起來不錯,你可以將日誌級別設置回warn
,BuildConfig.groovy
它是「刷新依賴」。 – Saurabh