我一直在尝试为我正在进行的项目安装grails selenium插件。我在项目目录中,但是,当我执行以下命令时
grails install-plugin selenium
我收到以下错误,
Resolving plugin selenium. Please wait...
:: problems summary ::
:::: WARNINGS
module not found: org.grails.plugins#selenium;latest.integration
==== grailsPlugins: tried
-- artifact org.grails.plugins#selenium;latest.integration!selenium.zip:
/home/jacob/selenium/grailsSelPlugin/selTestApp/lib/selenium-[revision].zip
/home/jacob/.grails/1.3.8/projects/selTestApp/plugins/selenium-0.1/lib/selenium-[revision].zip
==== grailsHome: tried
/usr/share/grails/1.3.8/lib/selenium-[revision].xml
-- artifact org.grails.plugins#selenium;latest.integration!selenium.zip:
/usr/share/grails/1.3.8/lib/selenium-[revision].zip
==== grailsHome: tried
/usr/share/grails/1.3.8/dist/selenium-[revision].xml
-- artifact org.grails.plugins#selenium;latest.integration!selenium.zip:
/usr/share/grails/1.3.8/dist/selenium-[revision].zip
==== grailsHome: tried
-- artifact org.grails.plugins#selenium;latest.integration!selenium.zip:
/usr/share/grails/1.3.8/plugins/grails-selenium-[revision].zip
==== grailsCentral: tried
-- artifact org.grails.plugins#selenium;latest.integration!selenium.zip:
http://plugins.grails.org/grails-selenium/tags/LATEST_RELEASE/grails-selenium-[revision].zip
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.grails.plugins#selenium;latest.integration: not found
::::::::::::::::::::::::::::::::::::::::::::::
Error resolving plugin [name:selenium, group:org.grails.plugins,
version:latest.integration].
Plugin not found for name [selenium] and version [not specified]
有什么想法吗?我已经尝试过" grails clean"但除此之外,我没有很多想法,也无法在网上找到任何相关信息。
答案 0 :(得分:0)
我再次发现自己回答了自己的问题,但这里的答案对我有用。
首先我必须安装包含grails selenium插件的zip文件。我使用的是grails-selenium-0.8.zip(可以通过selenium网站或谷歌搜索找到)。
接下来我真正得到的是GRAILS_HOME环境变量未正确设置。我已经使用grails好几个月了,安装和清理之类的东西一直在工作我甚至会得到消息
Grails home is set to: /usr/share/grails/1.3.8
然而,当我使用
检查我的环境变量时env | grep GRAILS_HOME
我一无所获。所以我进入.bashrc并将以下行添加到该文件的最底部,
export GRAILS_HOME=/usr/share/grails/1.3.8
export PATH=$GRAILS_HOME:$PATH
我重新启动终端并运行
grails install-plugin ../grails-selenium-0.8.zip
终于找到了成功。