I am creating a recipe to build JBoss AS 7.1.3 from source. The recipe works until the Maven build runs out of Java heap space. On the virtual machine I've set MAVEN_OPTS and JAVA_OPTS via a .bashrc file:
However these environment settings are for the 'vagrant' user on the VM and I suspect that the chef solo provisioner runs things as 'root'. I tried adding an export of JAVA_OPTS and MAVEN_OPTS to the recipe to force the memory setting regardless of the active user:
But that too resulted in an "out of Java heap space" error. Obviously I am missing something. How do I ensure that my recipe has the heap space it requires? Thanks, Mark Nichols
|
Archive powered by MHonArc 2.6.16.