• Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None

      Although there is already the Maven job type as well a a dedicated build step ("Invoke Top Level Maven"), tt is sometimes necessary to invoke Maven from other processes and tools. e.g. shell, make.

      Therefore it would be nice to expose a Maven environment, i.e. M2_HOME and the like in the path as a build wrapper in the same fashion this is already available for Go, NodeJS and others.

      I have an implementation already available and will create a PR soon after doing some cleanup, e.g. documentation, etc.

          [JENKINS-48919] Setup Maven Environment as Build Wrapper

          Christian Galsterer added a comment - - edited

          A PR is now available at https://github.com/jenkinsci/maven-plugin/pull/110. Would be great if this can be reviewed and merged soon as several development teams are depending on this new feature. Please let me know on any feedback/changes required.

          Christian Galsterer added a comment - - edited A PR is now available at https://github.com/jenkinsci/maven-plugin/pull/110.  Would be great if this can be reviewed and merged soon as several development teams are depending on this new feature. Please let me know on any feedback/changes required.

            Unassigned Unassigned
            christiangalsterer Christian Galsterer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: