I’m trying to get our CI-Server Hudson to run grails tasks and installed the Grails-Plugin, but it seems like the dependencies with ivy could not be resolved…
[projectx] $ /usr/share/grails/bin/grails prod war projectx.war
Welcome to Grails 1.2.0 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /usr/share/grails
Base Directory: /var/local/hudson/jobs/projectx/workspace/projectx
Resolving dependencies...
Error executing script War: /usr/share/tomcat5.5/.ivy2/cache/resolved-projectx-projectx-0.1.xml (No such file or directory)
java.io.FileNotFoundException: /usr/share/tomcat5.5/.ivy2/cache/resolved-projectx-projectx-0.1.xml (No such file or directory)
at java.io.FileOutputStream.open(Native Method) ...
Does anyone know how to get this working?
Thanks alot!
It looks like the user that tomcat is running as is configured to have
/usr/share/tomcat5.5as the home directory and you don’t have write access to that directory (and probably shouldn’t)I’d guess that you need to modify the user that tomcat is running as, or the user that the Hudson Job is running as to have a valid home directory.