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

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Major
    • Component/s: maven-plugin
    • None
    • Environment:
      Jenkins 2.530
      Maven Integration Plugin 3.26

      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=Hello,World
       
      Then run Maven with the following goal:
      mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=someProperty

      Expected Results

      Hello,World

      Actual Results

      null object or invalid expression

            Assignee:
            Unassigned
            Reporter:
            Nikolay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: