[hibernate-dev] Problems building Core
stliu at redhat.com
Sat Feb 6 02:55:25 EST 2010
try add this to your .bashrc (or others if you're not using unix-like os)
On Feb 6, 2010, at 3:16 PM, Amin Mohammed-Coleman wrote:
> Hi All
> I'm trying to build core and followed the steps mentioned and I'm getting the following exception:
> Failure executing javac, but could not parse the error:
> The system is out of resources.
> Consult the following stack trace for details.
> java.lang.OutOfMemoryError: Java heap space
> at com.sun.tools.javac.code.Scope$ImportScope.makeEntry(Scope.java:385)
> at com.sun.tools.javac.code.Scope.enter(Scope.java:196)
> at com.sun.tools.javac.code.Scope.enter(Scope.java:183)
> at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:132)
> at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:509)
> at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:446)
> at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
> I've added the following to the parent pom.xml (after googling around)
> But still no luck. Any help would be appreciated. I'm working on Hibernate Search and need to build core.
> On 4 Jan 2010, at 10:52, Galder Zamarreno wrote:
>> If you ever have doubts whether some VM parameters are affecting your
>> test execution, I think you might be able to add a call to
>> to see what VM parameters have been passed to your test.
>> On 12/21/2009 09:17 PM, Hardy Ferentschik wrote:
>>> turns out that MAVEN_OPTS does not help in this case at all. The surefire
>>> plugin per default uses the forkMode 'once', meaning a new JVM gets created
>>> for running the tests. Command line arguments passed via MAVEN_OPTS only
>>> for the JVM running the build.
>>> To increase the heap size for surefire you have to pass the JVM options in
>>> the plugin configuration. See
>>> I added -Xmx1024 globally in the parent pom of Core. I think that's better
>>> just adding it to Envers alone.
>>> I have no idea why no-one else has experienced this issue. Might be some
>>> JVM specific
>>> On Mon, 21 Dec 2009 13:28:46 -0300, Adam Warski<adam at warski.org> wrote:
>>>>> -Xmx1024 - that's what I used to have, mainly driven by the fact that
>>>>> once upon
>>>>> a time the docbook plugin needed to work.
>>>>> Btw, I also have the problem if I just try to run the Envers build.
>>>> That's very weird. I just ran all tests, a "clean install" took 1m 30s,
>>>> even with default maven memory settings (so no -Xmx in MAVE_OPTS).
>>>> I'm using Maven 2.2.0 on Java 1.5.0_19 (32 bit - maybe that's the
>>>>> Have you only recently added more tests? I used to be able to build
>>>>> everything just fine.
>>>>> Maybe the test suite can be split up? (eg by configuring two instances
>>>>> of the surefire plugin !?)
>>>>> In case it the the report generator, maybe there is a way to configure
>>>>> another generator?
>>>> Well I add some tests from time to time (basically when I fix a bug ;)
>>>> ), but nothing dramatical.
>>>> I'm not too good with maven so I don't really know if it's possible to
>>>> do a split.
>>> hibernate-dev mailing list
>>> hibernate-dev at lists.jboss.org
>> hibernate-dev mailing list
>> hibernate-dev at lists.jboss.org
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
More information about the hibernate-dev