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

maven plugin does not load .mvn config (jvm.config,maven.config)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None
    • Jenkins version 2.164.2
      maven integration plugin 3.4

      Maven style builds (which use the maven integration plugin) do not load or respect .mvn/*.config.

      This is not to be confused with a previous issue with Maven itself where -f could not find .mvn. That is freestyle builds work fine and even executing maven pre or post steps work fine.

      An easy way to test this is to create a project with .mvn/jvm.config or .mvn/maven.config with some property defined like -DsomeProperty=true

      Then set the goal to:

      org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression='someProperty'

            Unassigned Unassigned
            agentgt Adam Gent
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: