【问题标题】:install websocket chat plugin not found未找到安装 websocket 聊天插件
【发布时间】:2015-10-22 06:26:05
【问题描述】:

我正在使用 grails 2.1.1

我看到这个page..它说Grails version: 2.0 > *。 所以如果我使用 grails 2.1.1 必须安装没有错误..

但是在我尝试安装它之后.. 我收到此错误...

"C:\Program Files\Java\jdk1.7.0_75\bin\java" -Dgrails.home=C:\grails-2.1.1 -Dbase.dir=C:\Users\User\Documents\chatting "-Dtools.jar=C:\Program Files\Java\jdk1.7.0_75\lib\tools.jar" -Dgroovy.starter.conf=C:\grails-2.1.1/conf/groovy-starter.conf -Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m -Djline.WindowsTerminal.directConsole=false -javaagent:C:\grails-2.1.1\lib\com.springsource.springloaded\springloaded-core\jars\springloaded-core-1.0.6.jar -noverify -Dspringloaded=profile=grails -Didea.launcher.port=7532 "-Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1.1\bin" -Dfile.encoding=windows-1252 -classpath "C:\grails-2.1.1\lib\org.codehaus.groovy\groovy-all\jars\groovy-all-1.8.8.jar;C:\grails-2.1.1\dist\grails-bootstrap-2.1.1.jar;C:\Program Files (x86)\JetBrains\IntelliJ IDEA 14.1.1\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf C:\grails-2.1.1/conf/groovy-starter.conf "run-app -plain-output"

|Loading Grails 2.1.1
Error |
WARNING: Specified dependency definition compile(wschat:1.24-SNAPSHOT3) is invalid! Skipping..
|Configuring classpath
:: problems summary ::
:::: WARNINGS
        module not found: org.grails.plugins#wschat;1.24

    ==== grailsPlugins: tried

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\Users\User\Documents\chatting/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\cache-1.0.0/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\database-migration-1.1/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\hibernate-2.1.1/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\jquery-1.8.0/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\resources-1.1.6/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\tomcat-2.1.1/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\webxml-1.4.1/lib/wschat-1.24.zip

    ==== grailsHome: tried

      C:\grails-2.1.1/lib/org.grails.plugins/wschat/ivy-1.24.xml

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\grails-2.1.1/lib/org.grails.plugins/wschat/jars/wschat-1.24.zip

      C:\grails-2.1.1/lib/org.grails.plugins/wschat/bundles/wschat-1.24.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\src\libs/wschat-1.24.xml

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\grails-2.1.1\src\libs/wschat-1.24.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\dist/wschat-1.24.xml

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\grails-2.1.1\dist/wschat-1.24.zip

    ==== grailsHome: tried

      C:\Users\User\.grails\2.1.1\cached-installed-plugins/wschat-1.24.xml

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\Users\User\.grails\2.1.1\cached-installed-plugins/wschat-1.24.zip

    ==== grailsHome: tried

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\grails-2.1.1/plugins/wschat-1.24.zip

    ==== grailsCentral: tried

      http://grails.org/plugins/grails-wschat/tags/RELEASE_1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      http://grails.org/plugins/grails-wschat/tags/RELEASE_1.24/grails-wschat-1.24.zip

    ==== http://repo.grails.org/grails/core: tried

      http://repo.grails.org/grails/core/org/grails/plugins/wschat/1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      http://repo.grails.org/grails/core/org/grails/plugins/wschat/1.24/wschat-1.24.zip

    ==== localMavenResolver: tried

      C:\Users\User/.m2/repository/org/grails/plugins/wschat/1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\Users\User/.m2/repository/org/grails/plugins/wschat/1.24/wschat-1.24.zip

    ==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/grails/plugins/wschat/1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      http://repo1.maven.org/maven2/org/grails/plugins/wschat/1.24/wschat-1.24.zip

    ==== localMavenResolver: tried

      C:\Users\User/.m2/repository/org/grails/plugins/wschat/1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\Users\User/.m2/repository/org/grails/plugins/wschat/1.24/wschat-1.24.zip

        ::::::::::::::::::::::::::::::::::::::::::::::

        ::          UNRESOLVED DEPENDENCIES         ::

        ::::::::::::::::::::::::::::::::::::::::::::::

        :: org.grails.plugins#wschat;1.24: not found

        ::::::::::::::::::::::::::::::::::::::::::::::


:: problems summary ::
:::: WARNINGS
        module not found: org.grails.plugins#wschat;1.24

    ==== grailsPlugins: tried

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\Users\User\Documents\chatting/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\cache-1.0.0/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\database-migration-1.1/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\hibernate-2.1.1/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\jquery-1.8.0/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\resources-1.1.6/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\tomcat-2.1.1/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\webxml-1.4.1/lib/wschat-1.24.zip

    ==== grailsHome: tried

      C:\grails-2.1.1/lib/org.grails.plugins/wschat/ivy-1.24.xml

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\grails-2.1.1/lib/org.grails.plugins/wschat/jars/wschat-1.24.zip

      C:\grails-2.1.1/lib/org.grails.plugins/wschat/bundles/wschat-1.24.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\src\libs/wschat-1.24.xml

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\grails-2.1.1\src\libs/wschat-1.24.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\dist/wschat-1.24.xml

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\grails-2.1.1\dist/wschat-1.24.zip

    ==== grailsHome: tried

      C:\Users\User\.grails\2.1.1\cached-installed-plugins/wschat-1.24.xml

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\Users\User\.grails\2.1.1\cached-installed-plugins/wschat-1.24.zip

    ==== grailsHome: tried

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\grails-2.1.1/plugins/wschat-1.24.zip

    ==== grailsCentral: tried

      http://grails.org/plugins/grails-wschat/tags/RELEASE_1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      http://grails.org/plugins/grails-wschat/tags/RELEASE_1.24/grails-wschat-1.24.zip

    ==== http://repo.grails.org/grails/core: tried

      http://repo.grails.org/grails/core/org/grails/plugins/wschat/1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      http://repo.grails.org/grails/core/org/grails/plugins/wschat/1.24/wschat-1.24.zip

    ==== localMavenResolver: tried

      C:\Users\User/.m2/repository/org/grails/plugins/wschat/1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\Users\User/.m2/repository/org/grails/plugins/wschat/1.24/wschat-1.24.zip

    ==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/grails/plugins/wschat/1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      http://repo1.maven.org/maven2/org/grails/plugins/wschat/1.24/wschat-1.24.zip

    ==== localMavenResolver: tried

      C:\Users\User/.m2/repository/org/grails/plugins/wschat/1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\Users\User/.m2/repository/org/grails/plugins/wschat/1.24/wschat-1.24.zip

        ::::::::::::::::::::::::::::::::::::::::::::::

        ::          UNRESOLVED DEPENDENCIES         ::

        ::::::::::::::::::::::::::::::::::::::::::::::

        :: org.grails.plugins#wschat;1.24: not found

        ::::::::::::::::::::::::::::::::::::::::::::::


:: problems summary ::
:::: WARNINGS
        module not found: org.grails.plugins#wschat;1.24

    ==== grailsPlugins: tried

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\Users\User\Documents\chatting/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\cache-1.0.0/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\database-migration-1.1/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\hibernate-2.1.1/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\jquery-1.8.0/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\resources-1.1.6/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\tomcat-2.1.1/lib/wschat-1.24.zip

      C:\Users\User\.grails\2.1.1\projects\chatting\plugins\webxml-1.4.1/lib/wschat-1.24.zip

    ==== grailsHome: tried

      C:\grails-2.1.1/lib/org.grails.plugins/wschat/ivy-1.24.xml

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\grails-2.1.1/lib/org.grails.plugins/wschat/jars/wschat-1.24.zip

      C:\grails-2.1.1/lib/org.grails.plugins/wschat/bundles/wschat-1.24.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\src\libs/wschat-1.24.xml

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\grails-2.1.1\src\libs/wschat-1.24.zip

    ==== grailsHome: tried

      C:\grails-2.1.1\dist/wschat-1.24.xml

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\grails-2.1.1\dist/wschat-1.24.zip

    ==== grailsHome: tried

      C:\Users\User\.grails\2.1.1\cached-installed-plugins/wschat-1.24.xml

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\Users\User\.grails\2.1.1\cached-installed-plugins/wschat-1.24.zip

    ==== grailsHome: tried

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\grails-2.1.1/plugins/wschat-1.24.zip

    ==== grailsCentral: tried

      http://grails.org/plugins/grails-wschat/tags/RELEASE_1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      http://grails.org/plugins/grails-wschat/tags/RELEASE_1.24/grails-wschat-1.24.zip

    ==== http://repo.grails.org/grails/core: tried

      http://repo.grails.org/grails/core/org/grails/plugins/wschat/1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      http://repo.grails.org/grails/core/org/grails/plugins/wschat/1.24/wschat-1.24.zip

    ==== localMavenResolver: tried

      C:\Users\User/.m2/repository/org/grails/plugins/wschat/1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\Users\User/.m2/repository/org/grails/plugins/wschat/1.24/wschat-1.24.zip

    ==== mavenCentral: tried

      http://repo1.maven.org/maven2/org/grails/plugins/wschat/1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      http://repo1.maven.org/maven2/org/grails/plugins/wschat/1.24/wschat-1.24.zip

    ==== localMavenResolver: tried

      C:\Users\User/.m2/repository/org/grails/plugins/wschat/1.24/wschat-1.24.pom

      -- artifact org.grails.plugins#wschat;1.24!wschat.zip:

      C:\Users\User/.m2/repository/org/grails/plugins/wschat/1.24/wschat-1.24.zip

        ::::::::::::::::::::::::::::::::::::::::::::::

        ::          UNRESOLVED DEPENDENCIES         ::

        ::::::::::::::::::::::::::::::::::::::::::::::

        :: org.grails.plugins#wschat;1.24: not found

        ::::::::::::::::::::::::::::::::::::::::::::::


Error |
Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- org.grails.plugins:wschat:1.24



Process finished with exit code 1

为什么?

我已经将日志设置为“警告”但仍未安装..在此错误之后.. 我尝试安装 1.12 和 1.13 版本..但我得到同样的错误..

我试过这个...grailsRepo "https://grails.org/plugins"

:::: WARNINGS
        ::::::::::::::::::::::::::::::::::::::::::::::

        ::          UNRESOLVED DEPENDENCIES         ::

        ::::::::::::::::::::::::::::::::::::::::::::::

        :: #wschat;1.24-SNAPSHOT2: java.text.ParseException: inconsistent module descriptor file found in 'https://grails.org/plugins/grails-wschat/tags/RELEASE_1_24-SNAPSHOT2/wschat-1.24-SNAPSHOT2.pom': bad organisation: expected='' found='org.grails.plugins'; 

        ::::::::::::::::::::::::::::::::::::::::::::::


:::: ERRORS
        https://grails.org/plugins: bad organisation found in https://grails.org/plugins/grails-wschat/tags/RELEASE_1_24-SNAPSHOT2/wschat-1.24-SNAPSHOT2.pom: expected='' found='org.grails.plugins'

|Downloading: wschat-1.24-SNAPSHOT2.pom
|Downloading: wschat-1.24-SNAPSHOT2.pom.sha1
:: problems summary ::
:::: WARNINGS
        ::::::::::::::::::::::::::::::::::::::::::::::

        ::          UNRESOLVED DEPENDENCIES         ::

        ::::::::::::::::::::::::::::::::::::::::::::::

        :: #wschat;1.24-SNAPSHOT2: java.text.ParseException: inconsistent module descriptor file found in 'https://grails.org/plugins/grails-wschat/tags/RELEASE_1_24-SNAPSHOT2/wschat-1.24-SNAPSHOT2.pom': bad organisation: expected='' found='org.grails.plugins'; 

        ::::::::::::::::::::::::::::::::::::::::::::::


:::: ERRORS
        https://grails.org/plugins: bad organisation found in https://grails.org/plugins/grails-wschat/tags/RELEASE_1_24-SNAPSHOT2/wschat-1.24-SNAPSHOT2.pom: expected='' found='org.grails.plugins'

|Downloading: wschat-1.24-SNAPSHOT2.pom
|Downloading: wschat-1.24-SNAPSHOT2.pom.sha1
:: problems summary ::
:::: WARNINGS
        ::::::::::::::::::::::::::::::::::::::::::::::

        ::          UNRESOLVED DEPENDENCIES         ::

        ::::::::::::::::::::::::::::::::::::::::::::::

        :: #wschat;1.24-SNAPSHOT2: java.text.ParseException: inconsistent module descriptor file found in 'https://grails.org/plugins/grails-wschat/tags/RELEASE_1_24-SNAPSHOT2/wschat-1.24-SNAPSHOT2.pom': bad organisation: expected='' found='org.grails.plugins'; 

        ::::::::::::::::::::::::::::::::::::::::::::::


:::: ERRORS
        https://grails.org/plugins: bad organisation found in https://grails.org/plugins/grails-wschat/tags/RELEASE_1_24-SNAPSHOT2/wschat-1.24-SNAPSHOT2.pom: expected='' found='org.grails.plugins'

Error |
Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information):

- :wschat:1.24-SNAPSHOT2



Process finished with exit code 1

【问题讨论】:

  • 它看起来只能在 grails 2.4 + 上运行

标签: grails


【解决方案1】:

将此添加到您的存储库

repositories {

    grailsPlugins()
    grailsHome()
    grailsCentral()

    mavenLocal()
    mavenCentral()



        mavenRepo "http://repo.grails.org/grails/repo/"
        mavenRepo "http://snapshots.repository.codehaus.org/"
        mavenRepo "http://repository.codehaus.org/"
        mavenRepo "http://grails.org/plugins/"
        mavenRepo "http://repo.grails.org/grails/plugins-releases/"
        mavenRepo "http://download.java.net/maven/2/"
        mavenRepo "http://repository.jboss.com/maven2/" 

}

不要删除其他 mavenRepo

如果一切都失败了,请下载 zip 文件并按照此处的说明进行操作: What's the correct way to install a grails plugin from a zip file?

【讨论】:

  • 这很奇怪我能够安装它我将在我的项目中包含所有 mavenRepo
  • 如果您使用的是 2.1,那么您只需下载插件并使用 grails install-plugin
【解决方案2】:

我从https://github.com/vahidhedayati/grails-wschat-plugin 得到了一些东西,这可能会对你有所帮助

依赖(Grails 2.X):

compile ":wschat:1.24-SNAPSHOT2"

grails 2.X 的代码库

依赖(Grails 3.X):

compile "org.grails.plugins:wschat:3.0.3"

似乎它无法下载插件,因此在 BuildConfig.groovy 中定义 grailsRepo

grailsRepo "https://grails.org/plugins"

repositories {
    inherits true

    grailsPlugins()
    grailsHome()
    grailsCentral()
    mavenLocal()
    mavenCentral()
    grailsRepo "https://grails.org/plugins" 
}

如果再次出现错误,请发表评论。谢谢。

【讨论】:

  • Error | Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information): - :wschat:1.24-SNAPSHOT2
【解决方案3】:

我已经编写了插件,老实说,我还没有回到 Grails 中去看看它是否有效。我会试一试,看看我在 2.1.1 上的进展情况

我应该指出在 2.3.5 上发现的一个问题,它也会影响 2.3.5 以下的任何内容:

https://github.com/vahidhedayati/grails-wschat-plugin/issues/5

关于您的 BuildConfig(这是 2.3.5)

// plugins for the build system only
    build ":tomcat:7.0.50"

这需要改为:

// plugins for the build system only
    build ":tomcat:7.0.55"

看来我需要更新那个插件的版本信息:

我刚刚尝试过,是的,根据您的评论,您需要将其版本定义为 7.055 或更高版本,因为它是在将 websocket 支持添加到 tomcat 时开始的。

我刚刚试了一下,得到了:

Installed plugin tomcat-7.0.55
| Error Plugin tomcat-7.0.55 requires version [2.3 > *] of Grails which your current Grails installation does not meet. Please try install a different version of the plugin or Grails.

为了使用这个插件,你需要 grails 2.3+

【讨论】:

  • build ":tomcat:$grailsVersion" 这是在我的 buildConfig.groovy....这意味着我正在使用 tomcat:2.1.1 吗?
  • 是的,所以您需要将其注释掉并添加 build ":tomcat:7.0.55" 但检查我更新的答案,这将不起作用。还要添加 Anshul 进一步向下指出的 grailsRepo
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-09-22
  • 1970-01-01
  • 1970-01-01
  • 2018-09-15
  • 1970-01-01
  • 2019-11-24
相关资源
最近更新 更多