Spring ROO -Error

錯誤消息:

roo> addon list
No add-ons known. Are you online? Try the 'download status' command

需要用Spring Roo ,但是不能安裝addon,解決辦法如下

roo>proxy configuration

1. 查看是否培訓JDK的代理

配置辦法:

找到jdk的lib下面的net.properties

修改如下:

java.net.useSystemProxies=true
#------------------------------------------------------------------------
# Proxy configuration for the various protocol handlers.
# DO NOT uncomment these lines if you have set java.net.useSystemProxies
# to true as the protocol specific properties will take precedence over
# system settings.
#------------------------------------------------------------------------
# HTTP Proxy settings. proxyHost is the name of the proxy server
# (e.g. proxy.mydomain.com), proxyPort is the port number to use (default
# value is 80) and nonProxyHosts is a '|' separated list of hostnames which
# should be accessed directly, ignoring the proxy server (default value is
# localhost & 127.0.0.1).
#
 http.proxyHost=proxy.mydomain.com
 http.proxyPort=8080
 http.nonProxyHosts=localhost|127.0.0.1

2.在ROO執行命令:

osgi obr url add --url http://spring-roo-repository.springsource.org/repository.xml

osgi obr deploy --bundleSymbolicName org.springframework.roo.addon.cloud.foundry


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章