Closed velo6raptor closed 12 years ago
You can declaratively specify plugins as dependencies via the dependency DSL in BuildConfig.groovy
grails.project.dependency.resolution = {
…
repositories {
…
}
plugins {
compile ":zkui:0.5.M3"
}
dependencies {
…
}
…
}
Sorry but i tried to change The BuildConfig.groovy as noticed and i have always the same message C:\GRAILS\apps\zkui>grails run-app | Configuring classpath :: problems summary :: :::: ERRORS Server access Error: Connection timed out: connect url=http://plugins.grails.org/grails-zkui/tags/RELEASE_0_5_M3/zkui-0.5.M3.pom
Server access Error: Connection timed out: connect url=http://plugins.grails.org/grails-zkui/tags/RELEASE_0_5_M3/grails-zkui-0.5.M3.zip
Server access Error: Connection timed out: connect url=http://repo.grails.org/grails/plugins/org/grails/plugins/zkui/0.5.M3/zkui-0.5.M3.pom
Server access Error: Connection timed out: connect url=http://repo.grails.org/grails/plugins/org/grails/plugins/zkui/0.5.M3/zkui-0.5.M3.zip
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/core/org/grails/plugins/zkui/0.5.M3/zkui-0.5.M3.pom
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/core/org/grails/plugins/zkui/0.5.M3/zkui-0.5.M3.zip
Server access Error: Connection timed out: connect url=http://svn.codeha
us.org/grails/trunk/grails-plugins/grails-zkui/tags/RELEASE_0_5_M3/zkui-0.5.M3.p om
Server access Error: Connection timed out: connect url=http://svn.codeha
us.org/grails/trunk/grails-plugins/grails-zkui/tags/RELEASE_0_5_M3/grails-zkui-0 .5.M3.zip
Server access Error: Connection timed out: connect url=http://repo1.mave
n.org/maven2/org/grails/plugins/zkui/0.5.M3/zkui-0.5.M3.pom
Server access Error: Connection timed out: connect url=http://repo1.mave
n.org/maven2/org/grails/plugins/zkui/0.5.M3/zkui-0.5.M3.zip
Server access Error: Connection timed out: connect url=http://mavensync.
zkoss.org/maven2/org/grails/plugins/zkui/0.5.M3/zkui-0.5.M3.pom
Server access Error: Connection timed out: connect url=http://mavensync.
zkoss.org/maven2/org/grails/plugins/zkui/0.5.M3/zkui-0.5.M3.zip
Server access Error: Connection timed out: connect url=http://plugins.gr
ails.org/grails-zk/tags/RELEASE_6_0_0-RC/zk-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://plugins.gr
ails.org/grails-zk/tags/RELEASE_6_0_0-RC/grails-zk-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/plugins/org/zkoss/zk/zk/6.0.0-RC/zk-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/plugins/org/zkoss/zk/zk/6.0.0-RC/zk-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/core/org/zkoss/zk/zk/6.0.0-RC/zk-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/core/org/zkoss/zk/zk/6.0.0-RC/zk-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://svn.codeha
us.org/grails/trunk/grails-plugins/grails-zk/tags/RELEASE_6_0_0-RC/zk-6.0.0-RC.p om
Server access Error: Connection timed out: connect url=http://svn.codeha
us.org/grails/trunk/grails-plugins/grails-zk/tags/RELEASE_6_0_0-RC/grails-zk-6.0 .0-RC.jar
Server access Error: Connection timed out: connect url=http://repo1.mave
n.org/maven2/org/zkoss/zk/zk/6.0.0-RC/zk-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo1.mave
n.org/maven2/org/zkoss/zk/zk/6.0.0-RC/zk-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://mavensync.
zkoss.org/maven2/org/zkoss/zk/zk/6.0.0-RC/zk-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://mavensync.
zkoss.org/maven2/org/zkoss/zk/zk/6.0.0-RC/zk-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://plugins.gr
ails.org/grails-zul/tags/RELEASE_6_0_0-RC/zul-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://plugins.gr
ails.org/grails-zul/tags/RELEASE_6_0_0-RC/grails-zul-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/plugins/org/zkoss/zk/zul/6.0.0-RC/zul-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/plugins/org/zkoss/zk/zul/6.0.0-RC/zul-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/core/org/zkoss/zk/zul/6.0.0-RC/zul-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/core/org/zkoss/zk/zul/6.0.0-RC/zul-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://svn.codeha
us.org/grails/trunk/grails-plugins/grails-zul/tags/RELEASE_6_0_0-RC/zul-6.0.0-RC .pom
Server access Error: Connection timed out: connect url=http://svn.codeha
us.org/grails/trunk/grails-plugins/grails-zul/tags/RELEASE_6_0_0-RC/grails-zul-6 .0.0-RC.jar
Server access Error: Connection timed out: connect url=http://repo1.mave
n.org/maven2/org/zkoss/zk/zul/6.0.0-RC/zul-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo1.mave
n.org/maven2/org/zkoss/zk/zul/6.0.0-RC/zul-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://mavensync.
zkoss.org/maven2/org/zkoss/zk/zul/6.0.0-RC/zul-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://mavensync.
zkoss.org/maven2/org/zkoss/zk/zul/6.0.0-RC/zul-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://plugins.gr
ails.org/grails-zkplus/tags/RELEASE_6_0_0-RC/zkplus-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://plugins.gr
ails.org/grails-zkplus/tags/RELEASE_6_0_0-RC/grails-zkplus-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/plugins/org/zkoss/zk/zkplus/6.0.0-RC/zkplus-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/plugins/org/zkoss/zk/zkplus/6.0.0-RC/zkplus-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/core/org/zkoss/zk/zkplus/6.0.0-RC/zkplus-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/core/org/zkoss/zk/zkplus/6.0.0-RC/zkplus-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://svn.codeha
us.org/grails/trunk/grails-plugins/grails-zkplus/tags/RELEASE_6_0_0-RC/zkplus-6. 0.0-RC.pom
Server access Error: Connection timed out: connect url=http://svn.codeha
us.org/grails/trunk/grails-plugins/grails-zkplus/tags/RELEASE_6_0_0-RC/grails-zk plus-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://repo1.mave
n.org/maven2/org/zkoss/zk/zkplus/6.0.0-RC/zkplus-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo1.mave
n.org/maven2/org/zkoss/zk/zkplus/6.0.0-RC/zkplus-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://mavensync.
zkoss.org/maven2/org/zkoss/zk/zkplus/6.0.0-RC/zkplus-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://mavensync.
zkoss.org/maven2/org/zkoss/zk/zkplus/6.0.0-RC/zkplus-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://plugins.gr
ails.org/grails-zhtml/tags/RELEASE_6_0_0-RC/zhtml-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://plugins.gr
ails.org/grails-zhtml/tags/RELEASE_6_0_0-RC/grails-zhtml-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/plugins/org/zkoss/zk/zhtml/6.0.0-RC/zhtml-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/plugins/org/zkoss/zk/zhtml/6.0.0-RC/zhtml-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/core/org/zkoss/zk/zhtml/6.0.0-RC/zhtml-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/core/org/zkoss/zk/zhtml/6.0.0-RC/zhtml-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://svn.codeha
us.org/grails/trunk/grails-plugins/grails-zhtml/tags/RELEASE_6_0_0-RC/zhtml-6.0. 0-RC.pom
Server access Error: Connection timed out: connect url=http://svn.codeha
us.org/grails/trunk/grails-plugins/grails-zhtml/tags/RELEASE_6_0_0-RC/grails-zht ml-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://repo1.mave
n.org/maven2/org/zkoss/zk/zhtml/6.0.0-RC/zhtml-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo1.mave
n.org/maven2/org/zkoss/zk/zhtml/6.0.0-RC/zhtml-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://mavensync.
zkoss.org/maven2/org/zkoss/zk/zhtml/6.0.0-RC/zhtml-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://mavensync.
zkoss.org/maven2/org/zkoss/zk/zhtml/6.0.0-RC/zhtml-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://plugins.gr
ails.org/grails-zbind/tags/RELEASE_6_0_0-RC/zbind-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://plugins.gr
ails.org/grails-zbind/tags/RELEASE_6_0_0-RC/grails-zbind-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/plugins/org/zkoss/zk/zbind/6.0.0-RC/zbind-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/plugins/org/zkoss/zk/zbind/6.0.0-RC/zbind-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/core/org/zkoss/zk/zbind/6.0.0-RC/zbind-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo.grail
s.org/grails/core/org/zkoss/zk/zbind/6.0.0-RC/zbind-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://svn.codeha
us.org/grails/trunk/grails-plugins/grails-zbind/tags/RELEASE_6_0_0-RC/zbind-6.0. 0-RC.pom
Server access Error: Connection timed out: connect url=http://svn.codeha
us.org/grails/trunk/grails-plugins/grails-zbind/tags/RELEASE_6_0_0-RC/grails-zbi nd-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://repo1.mave
n.org/maven2/org/zkoss/zk/zbind/6.0.0-RC/zbind-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://repo1.mave
n.org/maven2/org/zkoss/zk/zbind/6.0.0-RC/zbind-6.0.0-RC.jar
Server access Error: Connection timed out: connect url=http://mavensync.
zkoss.org/maven2/org/zkoss/zk/zbind/6.0.0-RC/zbind-6.0.0-RC.pom
Server access Error: Connection timed out: connect url=http://mavensync.
zkoss.org/maven2/org/zkoss/zk/zbind/6.0.0-RC/zbind-6.0.0-RC.jar
| Error Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.g roovy for more information):
Here is my BuildConfig.groovy
grailsgrails.servlet.version = "2.5" // Change depending on target container compliance (2.5 or 3.0) grails.project.class.dir = "target/classes" grails.project.test.class.dir = "target/test-classes" grails.project.test.reports.dir = "target/test-reports" grails.project.target.level = 1.6 grails.project.source.level = 1.6 //grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.project.dependency.resolution = { // inherit Grails' default dependencies inherits("global") { // uncomment to disable ehcache // excludes 'ehcache' } log "error" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose' checksums true // Whether to verify checksums on resolve
repositories {
inherits true // Whether to inherit repository definitions from plugins
grailsPlugins()
grailsHome()
grailsCentral()
mavenCentral()
// uncomment these to enable remote dependency resolution from public Maven repositories
//mavenCentral()
//mavenLocal()
//mavenRepo "http://snapshots.repository.codehaus.org"
//mavenRepo "http://repository.codehaus.org"
//mavenRepo "http://download.java.net/maven/2/"
//mavenRepo "http://repository.jboss.com/maven2/"
//mavenRepo "http://mavensync.zkoss.org/maven2/"
}
dependencies {
// specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
// runtime 'mysql:mysql-connector-java:5.1.16'
}
plugins {
runtime ":hibernate:$grailsVersion"
runtime ":jquery:1.7.1"
runtime ":resources:1.1.5"
compile ":zkui:0.5.M3"
build ":tomcat:$grailsVersion"
}
}
Proxy filtering or not ?
When i try to access to these URL via IE or Chrome, i reach them well ...
Are you adds a proxy configuration? If sure,use grails clear-proxy
command to clear proxy
Or you can try that the following:
change //mavenRepo "http://mavensync.zkoss.org/maven2/" to mavenRepo "http://mavensync.zkoss.org/maven2/
Done and i have always error messages
The Grails ZK plugin (zk-1.0.7.zip) works fine because there is no library dependencies. The zk jars are under the lib folder of the zip plugin file Could i try to do this with the ZKUI plugin and how ?
Are you use proxy to Internet access?
If sure use grails add-proxy
A demo
grails add-proxy client --host=proxy-server --port=4300
--username=guest --password=guest
See
http://grails.org/doc/latest/ref/Command%20Line/add-proxy.html
I did it but nothing changes
I have the same issue. As this project will be always used inside a proxy... the proxy is handled inside the application
In your conf/BuildConfig.groovy you should add the code between the / Proxy server start... and / Proxy server end... you will need to replace
<proxy server name>
<proxy port>
<nonProxy addresses>
<proxy user>
<proxy pwd>
with your proxy configuration.
//grails.project.war.file = "target/${appName}-${appVersion}.war"
grails.project.dependency.resolution = {
// Proxy server start...
System.setProperty("http.proxyHost", "<proxy server name>");
System.setProperty("http.proxyPort", "<proxy port>");
System.setProperty("http.nonProxyHosts","<nonProxy addresses>");
Authenticator.setDefault(new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("<proxy user>","<proxy pwd>".toCharArray());
}});
// Proxy server end ...
// inherit Grails' default dependencies
inherits("global") {
// uncomment to disable ehcache
// excludes 'ehcache'
}
log "warn" // log level of
Thank you very much camponuevo for your help ! It works ! Fine !
Thanks to camponuevo's suggestion.
Grails 2.0 installed on PC with Windows XP The grails install-plugin zkui works well (zkui 0.5m2) but when i run the app with grails run-app, i have this error message
module not found: org.zkoss.zk#zk;6.0.0-RC zkhtml ....
The dependencies.groovy file of the zkui plugins calls these API but i don't know why it doesn't work
The installation of the zk Grails plugin works well but the zkui plugin is better and more integrated in Grails
Please help me !
Thanks
NB : The plugin installation works well under Ubuntu 11.04