没有安装Grails Url shortener插件 [英] Grails Url shortener plugin not getting installed

查看:148
本文介绍了没有安装Grails Url shortener插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的应用中添加一个新插件这里,但它不是解决,并给我一个错误,即

  :: problems摘要:: 
::::警告
未找到模块:org.grails.plugins#url-shortener; 0.2.1
==== grailsPlugins:已尝试
- 神器org.grails.plugins#url-shortener; 0.2.1!url -shortener.zip:
...
==== grailsHome:尝试
/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:试过
/opt/grails/src/libs/url-shortener-0.2.1.xml
- 神器org.grails.plugins#url-shortener; 0.2.1!url-shortener。 zip:
/opt/grails/src/libs/url-shortener-0.2.1.zip
==== grailsHome:已尝试
/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:试过
/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:试过
/opt/grails/plugins/url-shortener-0.2.1.pom
- 神器org.grails.plugins#url-shortener; 0.2。 1!url-shortener.zip:
/opt/grails/plugins/url-shortener-0.2.1.zip
==== grailsCentral:试用
http://grails.org /plugins/grails-url-shortener/tags/RELEASE_0.2.1/url-shortener-0.2.1.pom
- 神器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:已尝试
/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:试用
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:试过
http:// snapshots.repository.codehaus.org/org/grails/plugins/url-shortener/0.2.1/url-shortener-0.2.1.pom
- artifact org.grails.plugins#url-sh ortener; 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:试用
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/:试过
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/:试过
http://repository.jboss.com/maven2/org/grails/plugins/url-缩短器/ 0.2.1 / URL-缩短器-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:试用
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/:试过
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/ma ven2 / 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 /:试过
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:找不到
:::::::::::::: ::::::::::::::::::::::::::::::::

该插件的文档是她e



我目前使用的是grails 2.2.0,正如前面提到的那样,该插件可用于此版本的grails。



我曾尝试在插件块中添加BuildConfig.groovy中的此依赖项,并尝试在依赖项中进行尝试。 解决方案

p> 2.2或更小的默认grails回购现在不起作用。我们通过将以下行添加到BuildConfig.groovy文件中的grails.project.dependency.resolution闭包中来解决此问题:

  grails.project.dependency.resolution = {

知识库{

********

mavenRepohttp:// repo .grails.org / grails / repo /

********
}
}

*重复的答案斯科特的回答


I am trying to add a new plugin mentioned here in my app but it is not been resolved and giving me a error i.e.

:: 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
        ::::::::::::::::::::::::::::::::::::::::::::::

Documentation of the plugin is here

I am currently using grails 2.2.0 and as per mentioned the plugin is available for this version of grails.

i have tried adding this dependency in BuildConfig.groovy in plugin block and tried in dependencies as well.

解决方案

The default grails repo provided in 2.2 or smaller does not work now. We fixed this issue by adding the following line to the grails.project.dependency.resolution closure in the BuildConfig.groovy file:

grails.project.dependency.resolution = {

repositories {

      ********

    mavenRepo "http://repo.grails.org/grails/repo/"

      ********
}
}

*duplicate answer of Scott's answer

这篇关于没有安装Grails Url shortener插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆