Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-2226

hudson ignores process-test-classes phase ( maven 2.0.5 +)

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: All, OS: All

      maven 2.0.5 introduced this new phase, but hudson ignores it. Is it b/c Hudson
      uses maven 2.0.4 embedder??

      more on this is at http://www.nabble.com/hudson-ignores-process-test-classes-
      phase-%28-maven-2.0.5-%2B%29-to18824186.html#a18824186

          [JENKINS-2226] hudson ignores process-test-classes phase ( maven 2.0.5 +)

          jgyat added a comment -

          This issue is a duplicate of issue #1822

          jgyat added a comment - This issue is a duplicate of issue #1822

          asimon_redhat added a comment -

          Created an attachment (id=683)
          this components.xml that contains the missing step should be used in /maven-agent/src/main/resources/META-INF/plexus/ and maven-interceptor/src/main/resources/META-INF/plexus

          asimon_redhat added a comment - Created an attachment (id=683) this components.xml that contains the missing step should be used in /maven-agent/src/main/resources/META-INF/plexus/ and maven-interceptor/src/main/resources/META-INF/plexus

          slowstrider added a comment -

          I am having exactly the same issue while using the OpenJPA enhancer on our test
          classes. I am using maven 2.0.10.

          Manually running the command "mvn clean install" works perfectly, but inside
          Hudson my tests fail because the enhancer wasn't called.

          Is there a workaround?

          slowstrider added a comment - I am having exactly the same issue while using the OpenJPA enhancer on our test classes. I am using maven 2.0.10. Manually running the command "mvn clean install" works perfectly, but inside Hudson my tests fail because the enhancer wasn't called. Is there a workaround?

          slowstrider added a comment -

          Workaround that worked for my enhance goal: Change the phase from
          process-test-classes to test-compile.

          Use at your own risk; I am just starting out with Maven and I don't know if
          there are guarantees that your own goal is called after the test classes are
          compiled.

          slowstrider added a comment - Workaround that worked for my enhance goal: Change the phase from process-test-classes to test-compile. Use at your own risk; I am just starting out with Maven and I don't know if there are guarantees that your own goal is called after the test classes are compiled.

          asimon_redhat added a comment -

          Can we apply the suggested fix to trunk?
          i.e.
          Add the missing step to
          /maven-agent/src/main/resources/META-INF/plexus/ and
          maven-interceptor/src/main/resources/META-INF/plexus
          Cheers

          asimon_redhat added a comment - Can we apply the suggested fix to trunk? i.e. Add the missing step to /maven-agent/src/main/resources/META-INF/plexus/ and maven-interceptor/src/main/resources/META-INF/plexus Cheers

          dleonard0 added a comment -

          process-test-classes is missing from both maven-agent/.../components.xml and
          maven-interceptor/...components.xml

          dleonard0 added a comment - process-test-classes is missing from both maven-agent/.../components.xml and maven-interceptor/...components.xml

          Andrew Bayer added a comment -

          This is, I believe, fixed if you use Maven 2.1 or later.

          Andrew Bayer added a comment - This is, I believe, fixed if you use Maven 2.1 or later.

          ALRubinger added a comment -

          Attached patch

          ALRubinger added a comment - Attached patch

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/main/maven-interceptor/src/main/resources/META-INF/plexus/components.xml
          trunk/www/changelog.html
          http://fisheye4.cenqua.com/changelog/hudson/?cs=26090
          Log:
          [FIXED JENKINS-2226] Added process-test-classes phase

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/main/maven-interceptor/src/main/resources/META-INF/plexus/components.xml trunk/www/changelog.html http://fisheye4.cenqua.com/changelog/hudson/?cs=26090 Log: [FIXED JENKINS-2226] Added process-test-classes phase

            abayer Andrew Bayer
            danttran danttran
            Votes:
            4 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: