OutOfMemoryException while building java application using Maven on Hudson with ProGuard
<blockquote>
  <p>I am trying to build my maven project on Hudson using ProGuard for
  Obfuscation. I am   >just executing Obfuscation goal and skipping the
  optimization and shirking feature of   >ProGuard. </p>
  
  <p>This problem is only when I try to build project on Hudson however
  when I build the same >project on my machine using eclipse or from
  command prompt it gets build successfully.  </p>
  
  <p>I tried changing MAVEN_OPTS and JAVA_OPTS option on Hudson but it
  doesn’t works.</p>
  
  <p>Follwoing is the exception - [proguard] Reading library jar
  [/builds/repositories/builds/com/ibm/dhbcore/6.0/dhbcore-6.0.jar] 
  [proguard] Exception in thread "main" java.lang.OutOfMemoryError: Java
  heap space  [proguard]    at
  proguard.classfile.io.LibraryClassReader.createConstant(LibraryClassReader.java:328)
  [proguard]    at
  proguard.classfile.io.LibraryClassReader.visitLibraryClass(LibraryClassReader.java:99)
  [proguard]    at
  proguard.classfile.LibraryClass.accept(LibraryClass.java:248) 
  [proguard]    at proguard.io.ClassReader.read(ClassReader.java:86) 
  [proguard]    at
  proguard.io.FilteredDataEntryReader.read(FilteredDataEntryReader.java:87)
  [proguard]    at proguard.io.JarReader.read(JarReader.java:65) 
  [proguard]    at
  proguard.io.DirectoryPump.readFiles(DirectoryPump.java:65)  [proguard]
    at proguard.io.DirectoryPump.pumpDataEntries(DirectoryPump.java:53) 
  [proguard]    at proguard.InputReader.readInput(InputReader.java:226) 
  [proguard]    at proguard.InputReader.readInput(InputReader.java:200) 
  [proguard]    at proguard.InputReader.readInput(InputReader.java:178) 
  [proguard]    at proguard.InputReader.execute(InputReader.java:100) 
  [proguard]    at proguard.ProGuard.readInput(ProGuard.java:195) 
  [proguard]    at proguard.ProGuard.execute(ProGuard.java:78)  [proguard]
    at proguard.ProGuard.main(ProGuard.java:499) mojoFailed
  com.pyx4me:proguard-maven-plugin:2.0.4(default)</p>
</blockquote>
