Problème :
When you launch an Hudson build, you have the following error: Failed to create /dev/null/.m2
Solution :
ADD MAVEN_HOME same as HUDSON_HOME at JAVA_OPTS variable in startup Tomcat script :
vi /etc/init.d/tomcat-6
# Activate Logging
if [ -r "${CATALINA_HOME}"/bin/tomcat-juli.jar ]; then
JAVA_OPTS="${JAVA_OPTS}
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager \
-Djava.util.logging.config.file=${CATALINA_BASE}/conf/logging.properties"
fi
JAVA_OPTS="$JAVA_OPTS -DHUDSON_HOME=/home/hudson
-DMAVEN_HOME=/home/hudson"
No comments:
Post a Comment