Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8.2
    • Labels:
      None
    • Environment:
      Linux FC3, jdk 1.4.2_10, m11b3
    • Number of attachments :
      1

      Description

      In a project with ~40 test classes, I was surprised to see 'maven dist-bin' fail with a

      java.lang.reflect.InvocationTargetException
      Exception in thread "main" java.lang.OutOfMemoryError

      when running the junit test suite, even though, the tests pass when running just 'maven test'. The point is that dist-bin runs the test suite twice (once from jar:jar,once from site:generate), and it's only the second time that it fails. I can reproduce it with a simple custom goal:

      <goal name="test-twice">
      <attainGoal name="test:test"/>
      <attainGoal name="test:test"/>
      </goal>

      It works by simply downgrading to test-plugin-1.7, so it's not a problem with my tests.

        Activity

        Hide
        Lukas Theussl added a comment -

        Attached patch seems to solve the issue (and also MPTEST-64), need to test and confirm.

        Show
        Lukas Theussl added a comment - Attached patch seems to solve the issue (and also MPTEST-64 ), need to test and confirm.
        Hide
        Lukas Theussl added a comment -

        Patch applied and snapshot deployed.

        For the record: the effect is only visible in projects that do not themselves have a dependency on xerces and with maven.junit.fork=no.

        Show
        Lukas Theussl added a comment - Patch applied and snapshot deployed. For the record: the effect is only visible in projects that do not themselves have a dependency on xerces and with maven.junit.fork=no.

          People

          • Assignee:
            Lukas Theussl
            Reporter:
            Lukas Theussl
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: