2
我想在我的應用程序添加一個新的插件mentioned here,但它沒有得到解決,給我一個錯誤,即插件的Grails的URL縮短插件沒有得到安裝
:: problems summary ::
:::: WARNINGS
module not found: org.grails.plugins#url-shortener;0.2.1
==== grailsPlugins: tried
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
...
==== grailsHome: tried
/opt/grails/lib/org.grails.plugins/url-shortener/ivy-0.2.1.xml
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
/opt/grails/lib/org.grails.plugins/url-shortener/jars/url-shortener-0.2.1.zip
/opt/grails/lib/org.grails.plugins/url-shortener/bundles/url-shortener-0.2.1.zip
==== grailsHome: tried
/opt/grails/src/libs/url-shortener-0.2.1.xml
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
/opt/grails/src/libs/url-shortener-0.2.1.zip
==== grailsHome: tried
/opt/grails/dist/url-shortener-0.2.1.xml
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
/opt/grails/dist/url-shortener-0.2.1.zip
==== grailsHome: tried
/home/dhanendra-jft/.grails/2.2.0/cached-installed-plugins/url-shortener-0.2.1.xml
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
/home/dhanendra-jft/.grails/2.2.0/cached-installed-plugins/url-shortener-0.2.1.zip
==== grailsHome: tried
/opt/grails/plugins/url-shortener-0.2.1.pom
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
/opt/grails/plugins/url-shortener-0.2.1.zip
==== grailsCentral: tried
http://grails.org/plugins/grails-url-shortener/tags/RELEASE_0.2.1/url-shortener-0.2.1.pom
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
http://grails.org/plugins/grails-url-shortener/tags/RELEASE_0.2.1/grails-url-shortener-0.2.1.zip
==== localMavenResolver: tried
/home/dhanendra-jft/.m2/repository/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.pom
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
/home/dhanendra-jft/.m2/repository/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.zip
==== mavenCentral: tried
http://repo1.maven.org/maven2/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.pom
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
http://repo1.maven.org/maven2/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.zip
==== http://snapshots.repository.codehaus.org: tried
http://snapshots.repository.codehaus.org/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.pom
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
http://snapshots.repository.codehaus.org/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.zip
==== http://repository.codehaus.org: tried
http://repository.codehaus.org/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.pom
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
http://repository.codehaus.org/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.zip
==== http://download.java.net/maven/2/: tried
http://download.java.net/maven/2/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.pom
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
http://download.java.net/maven/2/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.zip
==== http://repository.jboss.com/maven2/: tried
http://repository.jboss.com/maven2/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.pom
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
http://repository.jboss.com/maven2/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.zip
==== http://www.arquetipos.co.cr/blog/files/grails-image-tools-1.0.4.zip: tried
http://www.arquetipos.co.cr/blog/files/grails-image-tools-1.0.4.zip/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.pom
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
http://www.arquetipos.co.cr/blog/files/grails-image-tools-1.0.4.zip/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.zip
==== http://repo1.maven.org/maven2/com/paypal/sdk/permissionssdk/2.3.106/: tried
http://repo1.maven.org/maven2/com/paypal/sdk/permissionssdk/2.3.106/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.pom
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
http://repo1.maven.org/maven2/com/paypal/sdk/permissionssdk/2.3.106/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.zip
==== http://repo1.maven.org/maven2/com/paypal/sdk/merchantsdk/2.5.106/: tried
http://repo1.maven.org/maven2/com/paypal/sdk/merchantsdk/2.5.106/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.pom
-- artifact org.grails.plugins#url-shortener;0.2.1!url-shortener.zip:
http://repo1.maven.org/maven2/com/paypal/sdk/merchantsdk/2.5.106/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.zip
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.grails.plugins#url-shortener;0.2.1: not found
::::::::::::::::::::::::::::::::::::::::::::::
文檔是here
我目前正在使用grails 2.2.0,並且正如前面提到的那樣,該插件可用於此版本的grails。
我已經嘗試在插件塊中的BuildConfig.groovy中添加此依賴項,並嘗試在依賴項中。
我碰到了同樣的問題的答案,請參閱我們在這裏工作的解決方案:http://stackoverflow.com/q/28836824/311525 – Scott 2015-03-03 17:33:13