所以我有点迷失在这里。
我有相同的BuildConfig
超过一个月,自本周开始以来我遇到了以下问题:
我正在尝试使用以下配置在grails 2.2.4
项目中使用Apache commons-imaging 1.0-SNAPSHOT:
BuildConfig.groovy
repositories{
...
mavenRepo 'http://repository.apache.org/snapshots'
...
}
dependencies{
...
compile 'org.apache.commons:commons-imaging:1.0-SNAPSHOT'
...
}
但是,在运行grails clean
命令(我已尝试从终端和GGTS
)后,我偶尔会遇到unresolved dependencies
错误。
在我写这个问题的那一刻,run-app
命令正常工作,虽然它在最后一小时每次都失败了,给出了以下错误:
| Configuring classpath
:: problems summary ::
:::: WARNINGS
module not found: org.apache.commons#commons-imaging;1.0-SNAPSHOT
==== grailsPlugins: tried
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/data/Documents/projectPath/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/elasticsearch-0.0.3.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/webxml-1.4.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/spring-security-ui-1.0-RC2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/spring-security-core-2.0-RC2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/cache-1.0.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/quartz-1.0.2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/database-migration-1.3.2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/webflow-2.0.8.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/hibernate-2.2.4/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/famfamfam-1.0.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/asual-lesscss-resources-0.2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/tomcat-2.2.4/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/resources-1.2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/browser-detection-0.4.3/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/jquery-1.8.3/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/aws-sdk-1.7.7/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/mail-1.0.5/lib/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.gvm/grails/current/lib/org.apache.commons/commons-imaging/ivy-1.0-SNAPSHOT.xml
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.gvm/grails/current/lib/org.apache.commons/commons-imaging/jars/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.gvm/grails/current/lib/org.apache.commons/commons-imaging/bundles/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.gvm/grails/current/src/libs/commons-imaging-1.0-SNAPSHOT.xml
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.gvm/grails/current/src/libs/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.gvm/grails/current/dist/commons-imaging-1.0-SNAPSHOT.xml
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.gvm/grails/current/dist/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.grails/2.2.4/cached-installed-plugins/commons-imaging-1.0-SNAPSHOT.xml
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.grails/2.2.4/cached-installed-plugins/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.gvm/grails/current/plugins/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.gvm/grails/current/plugins/commons-imaging-1.0-SNAPSHOT.jar
==== grailsCentral: tried
http://grails.org/plugins/grails-commons-imaging/tags/RELEASE_1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
http://grails.org/plugins/grails-commons-imaging/tags/RELEASE_1.0-SNAPSHOT/grails-commons-imaging-1.0-SNAPSHOT.jar
==== localMavenResolver: tried
/home/user/.m2/repository/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.m2/repository/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.jar
==== mavenCentral: tried
http://repo1.maven.org/maven2/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
http://repo1.maven.org/maven2/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.jar
==== http://repo.spring.io/milestone: tried
http://repo.spring.io/milestone/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
http://repo.spring.io/milestone/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.jar
==== http://repository.apache.org/snapshots: tried
http://repository.apache.org/snapshots/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
http://repository.apache.org/snapshots/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.apache.commons#commons-imaging;1.0-SNAPSHOT: not found
::::::::::::::::::::::::::::::::::::::::::::::
:::: ERRORS
SERVER ERROR: Proxy Error url=http://repository.apache.org/snapshots/org/apache/commons/commons-imaging/1.0-SNAPSHOT/maven-metadata.xml
:: problems summary ::
:::: WARNINGS
module not found: org.apache.commons#commons-imaging;1.0-SNAPSHOT
==== grailsPlugins: tried
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/data/Documents/projectPath/project/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/elasticsearch-0.0.3.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/webxml-1.4.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/spring-security-ui-1.0-RC2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/spring-security-core-2.0-RC2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/cache-1.0.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/quartz-1.0.2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/database-migration-1.3.2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/webflow-2.0.8.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/hibernate-2.2.4/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/famfamfam-1.0.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/asual-lesscss-resources-0.2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/tomcat-2.2.4/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/resources-1.2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/browser-detection-0.4.3/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/jquery-1.8.3/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/aws-sdk-1.7.7/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/mail-1.0.5/lib/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.gvm/grails/current/lib/org.apache.commons/commons-imaging/ivy-1.0-SNAPSHOT.xml
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.gvm/grails/current/lib/org.apache.commons/commons-imaging/jars/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.gvm/grails/current/lib/org.apache.commons/commons-imaging/bundles/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.gvm/grails/current/src/libs/commons-imaging-1.0-SNAPSHOT.xml
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.gvm/grails/current/src/libs/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.gvm/grails/current/dist/commons-imaging-1.0-SNAPSHOT.xml
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.gvm/grails/current/dist/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.grails/2.2.4/cached-installed-plugins/commons-imaging-1.0-SNAPSHOT.xml
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.grails/2.2.4/cached-installed-plugins/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.gvm/grails/current/plugins/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.gvm/grails/current/plugins/commons-imaging-1.0-SNAPSHOT.jar
==== grailsCentral: tried
http://grails.org/plugins/grails-commons-imaging/tags/RELEASE_1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
http://grails.org/plugins/grails-commons-imaging/tags/RELEASE_1.0-SNAPSHOT/grails-commons-imaging-1.0-SNAPSHOT.jar
==== localMavenResolver: tried
/home/user/.m2/repository/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.m2/repository/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.jar
==== mavenCentral: tried
http://repo1.maven.org/maven2/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
http://repo1.maven.org/maven2/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.jar
==== http://repo.spring.io/milestone: tried
http://repo.spring.io/milestone/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
http://repo.spring.io/milestone/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.jar
==== http://repository.apache.org/snapshots: tried
http://repository.apache.org/snapshots/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
http://repository.apache.org/snapshots/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.apache.commons#commons-imaging;1.0-SNAPSHOT: not found
::::::::::::::::::::::::::::::::::::::::::::::
:: problems summary ::
:::: WARNINGS
module not found: org.apache.commons#commons-imaging;1.0-SNAPSHOT
==== grailsPlugins: tried
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/data/Documents/projectPath/project/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/elasticsearch-0.0.3.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/webxml-1.4.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/spring-security-ui-1.0-RC2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/spring-security-core-2.0-RC2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/cache-1.0.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/quartz-1.0.2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/database-migration-1.3.2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/webflow-2.0.8.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/hibernate-2.2.4/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/famfamfam-1.0.1/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/asual-lesscss-resources-0.2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/tomcat-2.2.4/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/resources-1.2/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/browser-detection-0.4.3/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/jquery-1.8.3/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/aws-sdk-1.7.7/lib/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.grails/2.2.4/projects/project/plugins/mail-1.0.5/lib/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.gvm/grails/current/lib/org.apache.commons/commons-imaging/ivy-1.0-SNAPSHOT.xml
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.gvm/grails/current/lib/org.apache.commons/commons-imaging/jars/commons-imaging-1.0-SNAPSHOT.jar
/home/user/.gvm/grails/current/lib/org.apache.commons/commons-imaging/bundles/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.gvm/grails/current/src/libs/commons-imaging-1.0-SNAPSHOT.xml
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.gvm/grails/current/src/libs/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.gvm/grails/current/dist/commons-imaging-1.0-SNAPSHOT.xml
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.gvm/grails/current/dist/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.grails/2.2.4/cached-installed-plugins/commons-imaging-1.0-SNAPSHOT.xml
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.grails/2.2.4/cached-installed-plugins/commons-imaging-1.0-SNAPSHOT.jar
==== grailsHome: tried
/home/user/.gvm/grails/current/plugins/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.gvm/grails/current/plugins/commons-imaging-1.0-SNAPSHOT.jar
==== grailsCentral: tried
http://grails.org/plugins/grails-commons-imaging/tags/RELEASE_1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
http://grails.org/plugins/grails-commons-imaging/tags/RELEASE_1.0-SNAPSHOT/grails-commons-imaging-1.0-SNAPSHOT.jar
==== localMavenResolver: tried
/home/user/.m2/repository/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
/home/user/.m2/repository/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.jar
==== mavenCentral: tried
http://repo1.maven.org/maven2/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
http://repo1.maven.org/maven2/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.jar
==== http://repo.spring.io/milestone: tried
http://repo.spring.io/milestone/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
http://repo.spring.io/milestone/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.jar
==== http://repository.apache.org/snapshots: tried
http://repository.apache.org/snapshots/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.pom
-- artifact org.apache.commons#commons-imaging;1.0-SNAPSHOT!commons-imaging.jar:
http://repository.apache.org/snapshots/org/apache/commons/commons-imaging/1.0-SNAPSHOT/commons-imaging-1.0-SNAPSHOT.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.apache.commons#commons-imaging;1.0-SNAPSHOT: not found
::::::::::::::::::::::::::::::::::::::::::::::
| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):
- org.apache.commons:commons-imaging:1.0-SNAPSHOT
这并没有真正妨碍我开发,因为它在大部分时间工作,但它真的很烦人,因为我一直在浪费时间试图找出它发生的原因。
这里有人知道为什么会这样吗?我的配置错了吗?
P.-S。我不知道这是否会对错误产生任何影响,但这里还有一些信息:
grails
是使用gvm
配置的(我安装了两个版本,2.2.4
(默认)和2.4.2
)。我也试过 - 无济于事 - 使用手动安装并使用gvm
和~/.gvm
删除gvm rm grails 2.2.4
中的所有相应gvm rm grails 2.4.2
文件。jdk
:java-1.7.0-openjdk-1.7.0.65-2.5.1.3.fc20.x86_64
,我的JAVA_HOME
,GRAILS_HOME
和PATH
已正确设置。grails
并没有在jar
中寻找~/.grails/ivy-cache/org.apache.commons/commons-imaging/jars
,尽管它在~/.grails/2.2.4/
但在{{1}}中却没有。{/ li>
醇>
正如我所说,我迷路了。任何帮助了解正在发生的事情都会很棒!
由于
P.-S。 (再次)阅读日志,似乎我有代理问题。我确定我没有改变我的设置。我是不是被Apache网站拖累了,花了一个小时寻找我代码中不存在的错误?