安装websocket聊天插件未找到

时间:2015-10-22 06:26:05

标签: grails

我正在使用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

3 个答案:

答案 0 :(得分: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?

答案 1 :(得分:0)

我从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" 
}

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

答案 2 :(得分:0)

我已经写了这个插件,但是老实说,我还没有回到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 +