• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • Ubuntu 10.04 64bit, Tomcat6, Sun Java 6

      Hudson is configured to use a JDK installation (Sun Java 6) and a Maven installation (2.2.1). I have seen these under the $HUDSON_HOME/tools directories. I have a release project that uses the Hudson maven release plugin. However the build fails as follows:

      [HUDSON] Archiving /opt/hudson_home/jobs/myproj (release)/workspace/pom.xml to /opt/hudson_home/jobs/myproj (release)/modules/com.mycorp$myproj/builds/2010-11-12_23-54-29/archive/com.mycorp/myproj/1.0.11-SNAPSHOT/pom.xml
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Failed to invoke Maven build.

      Maven executable not found at: /opt/hudson_home/jobs/myproj (release)/workspace/bin/mvn

      For sure "/opt/hudson_home/jobs/myproj (release)/workspace/bin/mvn" is the wrong path. The correct path would be "/opt/hudson_home/tools/Maven_2.2.1/bin/mvn".

      Perhaps I have something mis-configured. Or is there a work-around?

      I tried upgrading from 0.6.1 to 0.7.0 but I get the same result.

          [JENKINS-8092] Maven release plugin cannot find mvn command

          hdave42 created issue -
          hdave42 made changes -
          Summary Original: Maven release plugin can find mvn command New: Maven release plugin cannot find mvn command

          James Nord added a comment -

          can atach the output of mvn help:effective-pom and the node environment varibles from Hudson

          James Nord added a comment - can atach the output of mvn help:effective-pom and the node environment varibles from Hudson

          hdave42 added a comment -

          Here is the output of help:effective-pom and help:system. Let me know if there is anything else you need. I've obfuscated the name of my company and product, but it shouldn't make any difference I think.

          hdave42 added a comment - Here is the output of help:effective-pom and help:system. Let me know if there is anything else you need. I've obfuscated the name of my company and product, but it shouldn't make any difference I think.
          hdave42 made changes -
          Attachment New: help-effective-pom.txt [ 19983 ]
          Attachment New: help-system.txt [ 19984 ]

          James Nord added a comment -

          James Nord added a comment - There is no 0.7.0 yet - just a snapshot did you get it from http://ci.hudson-labs.org/job/plugins_m2release/lastStableBuild/org.jvnet.hudson.plugins.m2release$m2release/artifact/org.jvnet.hudson.plugins.m2release/m2release/0.7.0-SNAPSHOT/ What version of HUdson are you using?

          hdave42 added a comment -

          Hudson 1.384. Obtained a 0.7.0 hpi file from the link you mentioned. It was a Nov 10th Snapshot build.

          hdave42 added a comment - Hudson 1.384. Obtained a 0.7.0 hpi file from the link you mentioned. It was a Nov 10th Snapshot build.
          James Nord made changes -
          Link New: This issue is related to JENKINS-7886 [ JENKINS-7886 ]

          James Nord added a comment -

          Something fishy...

          James Nord added a comment - Something fishy...
          James Nord made changes -
          Link New: This issue depends on JENKINS-7886 [ JENKINS-7886 ]

            Unassigned Unassigned
            hdave42 hdave42
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: