Author: mbabacek
Date: 2013-11-22 10:12:52 -0500 (Fri, 22 Nov 2013)
New Revision: 3164
Modified:
trunk/build/unix/buildbin.jboss-native.sh
trunk/build/unix/buildbin.mod_cluster.sh
trunk/build/unix/buildbin.mod_cluster.windows.sh
trunk/build/unix/buildtest.jboss-native.sh
trunk/build/unix/buildtest.mod_cluster.sh
Log:
I'm not 100% why, but the docbook generation tries to load:
java.awt.Toolkit.loadLibraries and that epically fails on headless systems. Setting
M2_OPTS, JAVA_OPTS didn't help. Trying this...
Modified: trunk/build/unix/buildbin.jboss-native.sh
===================================================================
--- trunk/build/unix/buildbin.jboss-native.sh 2013-11-07 13:16:05 UTC (rev 3163)
+++ trunk/build/unix/buildbin.jboss-native.sh 2013-11-22 15:12:52 UTC (rev 3164)
@@ -231,5 +231,5 @@
cat ${build_top}/pom.native.xml | sed s:@ARTIFACT@:${BUILD_SYS}-${BUILD_CPU}: >
${output_loc}/pom.xml
mkdir -p ${output_loc}/src/assembly
cp ${build_top}/${ASSSEMBLY} ${output_loc}/src/assembly/jar.xml
- (cd ${output_loc}; mvn install) || exit 1
+ (cd ${output_loc}; mvn install -Djava.awt.headless=true) || exit 1
fi
Modified: trunk/build/unix/buildbin.mod_cluster.sh
===================================================================
--- trunk/build/unix/buildbin.mod_cluster.sh 2013-11-07 13:16:05 UTC (rev 3163)
+++ trunk/build/unix/buildbin.mod_cluster.sh 2013-11-22 15:12:52 UTC (rev 3164)
@@ -291,34 +291,34 @@
# Also build the java part.
(cd ../mod_cluster
# Test the different profiles
- mvn -P TC6 install
+ mvn -P TC6 install -Djava.awt.headless=true
if [ $? -ne 0 ]; then
echo "maven TC6 build failed"
exit 1
fi
mvn clean
- mvn -P TC7 install
+ mvn -P TC7 install -Djava.awt.headless=true
if [ $? -ne 0 ]; then
echo "maven TC7 build failed"
exit 1
fi
mvn clean
- mvn -P AS7 install
+ mvn -P AS7 install -Djava.awt.headless=true
if [ $? -ne 0 ]; then
echo "maven AS7 build failed"
exit 1
fi
mvn clean
- mvn -P dist install -Djboss.server.log.dir=`pwd` -Djava.net.preferIPv4Stack=true
+ mvn -P dist install -Djava.awt.headless=true -Djboss.server.log.dir=`pwd`
-Djava.net.preferIPv4Stack=true
if [ $? -ne 0 ]; then
- echo "maven dist install failed"
+ echo "maven dist install -Djava.awt.headless=true failed"
exit 1
fi
# the src/assembly/bin.xml is executed too early so the first time the file is
"empty".
- mvn -P dist package -Djboss.server.log.dir=`pwd` -Djava.net.preferIPv4Stack=true
-Dmaven.test.skip=true
+ mvn -P dist package -Djava.awt.headless=true -Djboss.server.log.dir=`pwd`
-Djava.net.preferIPv4Stack=true -Dmaven.test.skip=true
if [ $? -ne 0 ]; then
- echo "maven dist package failed"
+ echo "maven dist package -Djava.awt.headless=true failed"
exit 1
fi
cp target/*-bin.* ${build_top}/output
Modified: trunk/build/unix/buildbin.mod_cluster.windows.sh
===================================================================
--- trunk/build/unix/buildbin.mod_cluster.windows.sh 2013-11-07 13:16:05 UTC (rev 3163)
+++ trunk/build/unix/buildbin.mod_cluster.windows.sh 2013-11-22 15:12:52 UTC (rev 3164)
@@ -85,14 +85,14 @@
echo $PATH
java -version
(cd ${mod_cluster_sources} || exit 1
- mvn -P dist install -Djboss.server.log.dir=`pwd` -Djava.net.preferIPv4Stack=true
+ mvn -P dist install -Djava.awt.headless=true -Djboss.server.log.dir=`pwd`
-Djava.net.preferIPv4Stack=true
if [ $? -ne 0 ]; then
- echo "mvn -P dist install -Djboss.server.log.dir=`pwd`
-Djava.net.preferIPv4Stack=true FAILED"
+ echo "mvn -P dist install -Djava.awt.headless=true -Djboss.server.log.dir=`pwd`
-Djava.net.preferIPv4Stack=true FAILED"
exit 1
fi
- mvn -P dist package -Djboss.server.log.dir=`pwd` -Djava.net.preferIPv4Stack=true
-Dmaven.test.skip=true
+ mvn -P dist package -Djava.awt.headless=true -Djboss.server.log.dir=`pwd`
-Djava.net.preferIPv4Stack=true -Dmaven.test.skip=true
if [ $? -ne 0 ]; then
- echo "mvn -P dist package -Djboss.server.log.dir=`pwd`
-Djava.net.preferIPv4Stack=true FAILED"
+ echo "mvn -P dist package -Djava.awt.headless=true -Djboss.server.log.dir=`pwd`
-Djava.net.preferIPv4Stack=true FAILED"
exit 1
fi
cp target/*-bin.* ${build_top}/output
Modified: trunk/build/unix/buildtest.jboss-native.sh
===================================================================
--- trunk/build/unix/buildtest.jboss-native.sh 2013-11-07 13:16:05 UTC (rev 3163)
+++ trunk/build/unix/buildtest.jboss-native.sh 2013-11-22 15:12:52 UTC (rev 3164)
@@ -34,10 +34,10 @@
# Build the big native packages
(cd $base/util/jbossweb
bash files.sh
- mvn install
+ mvn install -Djava.awt.headless=true
)
# Run the tests
(cd $base/util/jbosswebtest
- mvn install
+ mvn install -Djava.awt.headless=true
)
Modified: trunk/build/unix/buildtest.mod_cluster.sh
===================================================================
--- trunk/build/unix/buildtest.mod_cluster.sh 2013-11-07 13:16:05 UTC (rev 3163)
+++ trunk/build/unix/buildtest.mod_cluster.sh 2013-11-22 15:12:52 UTC (rev 3164)
@@ -108,7 +108,7 @@
which mvn
mvn -version
echo "Running tests..."
- mvn install
+ mvn install -Djava.awt.headless=true
if [ $? -ne 0 ]; then
echo "Some test have failed"
fail=true
Show replies by date