• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • artifactory-plugin
    • None

      When used with a maven installation set to automatically install maven, build fails with "ERROR: Maven 'Maven 3.0.4' doesn't have its home set"

      hudson.maven.AbstractMavenProcessFactory.getMavenInstallation and hudson.tasks.Maven performs the node translation (which is responsible for running installers etc. as well).

      org.jfrog.hudson.maven3.Maven3Builder don't.

          [JENKINS-16465] Maven3Builder don't handle ToolInstallers

          according to javadoc, jfrog Maven3Builder is designed as a "Maven3 builder for free style projects. Hudson 1.392 added native support for maven 3 but this one is useful for free style."

          jenkins standard Maven freestyle build step fully supports maven3, so I really don't understand why this build step exists. Should at least re-use maven-plugin's Maven3ProcessFactory to avoid this bug, or probably be deprecated with migration code to convert to hudson.task.Maven

          Nicolas De Loof added a comment - according to javadoc, jfrog Maven3Builder is designed as a "Maven3 builder for free style projects. Hudson 1.392 added native support for maven 3 but this one is useful for free style." jenkins standard Maven freestyle build step fully supports maven3, so I really don't understand why this build step exists. Should at least re-use maven-plugin's Maven3ProcessFactory to avoid this bug, or probably be deprecated with migration code to convert to hudson.task.Maven

          yossis added a comment -

          The freestyle builder exists for some time and it is still used. I opened an issue on our issue tracker https://issues.jfrog.org/jira/browse/HAP-374 and we will check how we can adjust it to work with the latest changes in Jenkins.

          yossis added a comment - The freestyle builder exists for some time and it is still used. I opened an issue on our issue tracker https://issues.jfrog.org/jira/browse/HAP-374 and we will check how we can adjust it to work with the latest changes in Jenkins.

          Nicolas De Loof added a comment - see https://issues.jfrog.org/jira/browse/HAP-374

          evernat added a comment -

          The issue in jfrog's jira is resolved as fixed.
          So resolving this one as well.

          evernat added a comment - The issue in jfrog's jira is resolved as fixed. So resolving this one as well.

            yossis yossis
            ndeloof Nicolas De Loof
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: