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

Freestyle job 'Invoke Maven 3' build step can't find maven home for Maven installation installed from Apache Archives

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • artifactory-plugin
    • None
    • Jenkins 1.424.3
      Ubuntu 10.04.2 LTS
      Tomcat 6

      Out of the blue, with really no explanation, our freestyle projects which use the 'Invoke Maven 3' began throwing the following error when attempting to invoke the Maven 3 step:

      ERROR: Maven 'Maven3' doesn't have its home set
      Finished: FAILURE

      Where 'Maven3' is the name of the Maven installation configured to 'Install from Apache' version 3.0.4

      Nothing in the logs to indicate a problem. I've deleted and re-added the Maven installation as well as creating new ones with different versions. Even went as far a blowing away the Tomcat context and redeploying still nothing.

      Maven 2/3 projects still work fine.
      Not completely convinced the Jenkins-Artifactory plugin doesn't have something to do with this; I have tested this issue in isolation, using only svn checkout and 'Invoke Maven 3', but wonder if the Artifactory plugin may be wrapping the job anyway.

          [JENKINS-12951] Freestyle job 'Invoke Maven 3' build step can't find maven home for Maven installation installed from Apache Archives

          the same on 1.463. Invoke maven doesn't work in:
          1) free style job
          2) in post/pre build action in "maven2/3 project"

          Kanstantsin Shautsou added a comment - the same on 1.463. Invoke maven doesn't work in: 1) free style job 2) in post/pre build action in "maven2/3 project"

          I have JENKINS_HOME not in jenkins system home.

          Kanstantsin Shautsou added a comment - I have JENKINS_HOME not in jenkins system home.

          centic added a comment -

          Same here. Note that for me a build-step of type "Invoke Maven 3" does not work, whereas "Run Maven Goal" works fine with the same Maven-Setup. What is the difference between these two anyway?

          centic added a comment - Same here. Note that for me a build-step of type "Invoke Maven 3" does not work, whereas "Run Maven Goal" works fine with the same Maven-Setup. What is the difference between these two anyway?

          evernat added a comment -

          Is it reproduced with a recent Jenkins version?

          evernat added a comment - Is it reproduced with a recent Jenkins version?

          'Invoke Maven 3' is provided by artifactory plugin

          Arnaud Héritier added a comment - 'Invoke Maven 3' is provided by artifactory plugin

            Unassigned Unassigned
            andrewfannin Andrew Fannin
            Votes:
            6 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: