You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/07/21 15:47:00 UTC

[jira] [Commented] (MNG-5857) Arguments from command line should override those in .mvn/maven.config

    [ https://issues.apache.org/jira/browse/MNG-5857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17384962#comment-17384962 ] 

Michael Osipov commented on MNG-5857:
-------------------------------------

I cannot reproduce this:

{noformat}
$ cat .mvn/maven.config
-Ddetail=true
$ mvn help:help
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Maven Core ITs                                                     [pom]
[INFO] Maven Core IT Support                                              [pom]
[INFO] Maven IT :: Plugins                                                [pom]
[INFO] Maven IT Plugin :: Active Collection                      [maven-plugin]
[INFO] Maven IT Plugin :: Ant-Based                              [maven-plugin]
[INFO] Maven IT Plugin :: Artifact                               [maven-plugin]
[INFO] Maven IT Plugin :: Class Loader :: Dependency A                    [jar]
[INFO] Maven IT Plugin :: Class Loader :: Dependency B                    [jar]
[INFO] Maven IT Plugin :: Class Loader :: Dependency C                    [jar]
[INFO] Maven IT Plugin :: Class Loader                           [maven-plugin]
[INFO] Maven IT Plugin :: Class Loader :: Aggregator                      [pom]
[INFO] Maven IT Plugin :: Configuration                          [maven-plugin]
[INFO] Maven IT Plugin :: Context Passing                        [maven-plugin]
[INFO] Maven ITs :: Core Plugin Stubs                                     [pom]
[INFO] Maven IT Clean Plugin Stub                                [maven-plugin]
[INFO] Maven IT Compiler Plugin Stub                             [maven-plugin]
[INFO] Maven IT Deploy Plugin Stub                               [maven-plugin]
[INFO] Maven IT EAR Plugin Stub                                  [maven-plugin]
[INFO] Maven IT EJB Plugin Stub                                  [maven-plugin]
[INFO] Maven IT Install Plugin Stub                              [maven-plugin]
[INFO] Maven IT JAR Plugin Stub                                  [maven-plugin]
[INFO] Maven IT Javadoc Plugin Stub                              [maven-plugin]
[INFO] Maven IT Plugin Plugin Stub                               [maven-plugin]
[INFO] Maven IT RAR Plugin Stub                                  [maven-plugin]
[INFO] Maven IT Resources Plugin Stub                            [maven-plugin]
[INFO] Maven IT Site Plugin Stub                                 [maven-plugin]
[INFO] Maven IT Source Plugin Stub                               [maven-plugin]
[INFO] Maven IT Surefire Plugin Stub                             [maven-plugin]
[INFO] Maven IT WAR Plugin Stub                                  [maven-plugin]
[INFO] Maven IT Plugin :: Dependency Collection                  [maven-plugin]
[INFO] Maven IT Plugin :: Dependency Resolution                  [maven-plugin]
[INFO] Maven IT Plugin :: Expression                             [maven-plugin]
[INFO] Maven IT Plugin :: Error Mojos                            [maven-plugin]
[INFO] Maven IT Component                                                 [jar]
[INFO] Maven IT Plugin :: Extension Consumer                     [maven-plugin]
[INFO] Maven IT Plugin :: Extension Provider                     [maven-plugin]
[INFO] Maven IT Plugin :: Fork                                   [maven-plugin]
[INFO] Maven IT Plugin :: Invalid Descriptor                     [maven-plugin]
[INFO] Maven IT Plugin :: Log File                               [maven-plugin]
[INFO] Maven IT Helper Library                                            [jar]
[INFO] Maven IT Plugin :: Model Interpolation                    [maven-plugin]
[INFO] Maven IT Plugin :: No Default Component                   [maven-plugin]
[INFO] Maven IT Plugin :: No Project                             [maven-plugin]
[INFO] Maven IT Plugin :: Online                                 [maven-plugin]
[INFO] Maven IT Plugin :: Optional Mojos                         [maven-plugin]
[INFO] Maven IT Plugin :: Packaging                              [maven-plugin]
[INFO] Maven IT Plugin :: Parameter Implementation               [maven-plugin]
[INFO] Maven IT Plugin :: Plugin Dependency                      [maven-plugin]
[INFO] Maven IT Plugin :: Project                                [maven-plugin]
[INFO] Maven IT Plugin :: Project Interpolation                  [maven-plugin]
[INFO] Maven IT Plugin :: Setter                                 [maven-plugin]
[INFO] Maven IT Plugin :: Singleton Component                    [maven-plugin]
[INFO] Maven IT Plugin :: Site                                   [maven-plugin]
[INFO] Maven IT Plugin :: Toolchain                              [maven-plugin]
[INFO] Maven IT Plugin :: Touch                                  [maven-plugin]
[INFO] Maven IT Plugin :: Uses Properties Plugin                 [maven-plugin]
[INFO] Maven IT Plugin :: Uses Wagon Plugin                      [maven-plugin]
[INFO] Maven IT Plugin :: This plugin should contain the mojos needed by all tests. [maven-plugin]
[INFO] Maven IT Plugin :: Plexus Utils 1.1                       [maven-plugin]
[INFO] Maven IT Plugin :: Plexus Utils New                       [maven-plugin]
[INFO] Maven IT Plugin :: Plexus Component API                   [maven-plugin]
[INFO] Maven IT Plugin :: Log4J Client                           [maven-plugin]
[INFO] Maven IT Plugin :: Extension 1                            [maven-plugin]
[INFO] Maven IT Plugin :: Extension 2                            [maven-plugin]
[INFO] Maven IT Plugin :: Plexus Lifecycle                       [maven-plugin]
[INFO] Maven IT Plugin :: Settings                               [maven-plugin]
[INFO] Maven IT Plugin :: mng-5805 extension                              [jar]
[INFO] Maven IT Plugin :: mng-5805 extension mk2                          [jar]
[INFO] Maven IT Plugin :: mng-5805 plugin                        [maven-plugin]
[INFO] Maven IT Plugin :: mng-5805 plugin-dep                             [jar]
[INFO] Maven IT Plugin :: mng-5958 extension                              [jar]
[INFO] Maven IT Plugin :: mng-6759 plugin                        [maven-plugin]
[INFO] Maven IT Toolchain                                                 [jar]
[INFO] Maven IT Wagon                                                     [jar]
[INFO] Maven IT Support Artifacts                                         [pom]
[INFO] Maven IT Extension                                                 [jar]
[INFO] javaagent                                                          [jar]
[INFO] Maven Core ITs suite                                               [jar]
[INFO]
[INFO] -------------------< org.apache.maven.its:core-its >--------------------
[INFO] Building Maven Core ITs 2.1-SNAPSHOT                              [1/78]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-help-plugin:3.1.0:help (default-cli) @ core-its ---
[INFO] Apache Maven Help Plugin 3.1.0
  The Maven Help plugin provides goals aimed at helping to make sense out of the
  build environment. It includes the ability to view the effective POM and
  settings files, after inheritance and active profiles have been applied, as
  well as a describe a particular plugin goal to give usage information.

This plugin has 8 goals:

help:active-profiles
  Displays a list of the profiles which are currently active for this build.

  Available parameters:

    output
      Optional parameter to write the output of this help in a given file,
      instead of writing to the console.
      Note: Could be a relative path.
      User property: output

help:all-profiles
  Displays a list of available profiles under the current project.
  Note: it will list all profiles for a project. If a profile comes up with a
  status inactive then there might be a need to set profile activation
  switches/property.

  Available parameters:

    output
      Optional parameter to write the output of this help in a given file,
      instead of writing to the console.
      Note: Could be a relative path.
      User property: output

help:describe
  Displays a list of the attributes for a Maven Plugin and/or goals (aka Mojo -
  Maven plain Old Java Object).

  Available parameters:

    artifactId
      The Maven Plugin artifactId to describe.
      Note: Should be used with groupId parameter.
      User property: artifactId

    cmd
      A Maven command like a single goal or a single phase following the Maven
      command line:
      mvn [options] [<goal(s)>] [<phase(s)>]
      User property: cmd

    detail (Default: false)
      This flag specifies that a detailed (verbose) list of goal (Mojo)
      information should be given.
      User property: detail

    goal
      The goal name of a Mojo to describe within the specified Maven Plugin. If
      this parameter is specified, only the corresponding goal (Mojo) will be
      described, rather than the whole Plugin.
      User property: goal

    groupId
      The Maven Plugin groupId to describe.
      Note: Should be used with artifactId parameter.
      User property: groupId

    minimal (Default: false)
      This flag specifies that a minimal list of goal (Mojo) information should
      be given.
      User property: minimal

    output
      Optional parameter to write the output of this help in a given file,
      instead of writing to the console.
      Note: Could be a relative path.
      User property: output

    plugin
      The Maven Plugin to describe. This must be specified in one of three ways:

      1.  plugin-prefix, i.e. 'help'
      2.  groupId:artifactId, i.e. 'org.apache.maven.plugins:maven-help-plugin'
      3.  groupId:artifactId:version, i.e.
        'org.apache.maven.plugins:maven-help-plugin:2.0'
      User property: plugin

    version
      The Maven Plugin version to describe.
      Note: Should be used with groupId/artifactId parameters.
      User property: version

help:effective-pom
  Displays the effective POM as an XML for this build, with the active profiles
  factored in, or a specified artifact.

  Available parameters:

    artifact
      The artifact for which to display the effective POM.
      Note: Should respect the Maven format, i.e. groupId:artifactId[:version].
      The latest version of the artifact will be used when no version is
      specified.
      User property: artifact

    output
      Optional parameter to write the output of this help in a given file,
      instead of writing to the console.
      Note: Could be a relative path.
      User property: output

help:effective-settings
  Displays the calculated settings as XML for this project, given any profile
  enhancement and the inheritance of the global settings into the user-level
  settings.

  Available parameters:

    output
      Optional parameter to write the output of this help in a given file,
      instead of writing to the console.
      Note: Could be a relative path.
      User property: output

    showPasswords (Default: false)
      For security reasons, all passwords are hidden by default. Set this to
      true to show all passwords.
      User property: showPasswords

help:evaluate
  Evaluates Maven expressions given by the user in an interactive mode.

  Available parameters:

    artifact
      An artifact for evaluating Maven expressions.
      Note: Should respect the Maven format, i.e. groupId:artifactId[:version].
      The latest version of the artifact will be used when no version is
      specified.
      User property: artifact

    expression
      An expression to evaluate instead of prompting. Note that this must not
      include the surrounding ${...}.
      User property: expression

    forceStdout (Default: false)
      This options gives the option to output information in cases where the
      output has been suppressed by using -q (quiet option) in Maven. This is
      useful if you like to use maven-help-plugin:evaluate in a script call (for
      example in bash) like this:
      RESULT=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)
      echo $RESULT
      This will only printout the information which has been requested by
      expression to stdout.
      User property: forceStdout

    output
      Optional parameter to write the output of this help in a given file,
      instead of writing to the console. This parameter will be ignored if no
      expression is specified.
      Note: Could be a relative path.
      User property: output

help:help
  Display help information on maven-help-plugin.
  Call mvn help:help -Ddetail=true -Dgoal=<goal-name> to display parameter
  details.

  Available parameters:

    detail (Default: false)
      If true, display all settable properties for each goal.
      User property: detail

    goal
      The name of the goal for which to show help. If unspecified, all goals
      will be displayed.
      User property: goal

    indentSize (Default: 2)
      The number of spaces per indentation level, should be positive.
      User property: indentSize

    lineLength (Default: 80)
      The maximum length of a display line, should be positive.
      User property: lineLength

help:system
  Displays a list of the platform details like system properties and environment
  variables.

  Available parameters:

    output
      Optional parameter to write the output of this help in a given file,
      instead of writing to the console.
      Note: Could be a relative path.
      User property: output


[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Maven Core ITs 2.1-SNAPSHOT ........................ SUCCESS [  0.375 s]
[INFO] Maven Core IT Support 2.1-SNAPSHOT ................. SKIPPED
[INFO] Maven IT :: Plugins 2.1-SNAPSHOT ................... SKIPPED
[INFO] Maven IT Plugin :: Active Collection 2.1-SNAPSHOT .. SKIPPED
[INFO] Maven IT Plugin :: Ant-Based 2.1-SNAPSHOT .......... SKIPPED
[INFO] Maven IT Plugin :: Artifact 2.1-SNAPSHOT ........... SKIPPED
[INFO] Maven IT Plugin :: Class Loader :: Dependency A 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Class Loader :: Dependency B 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Class Loader :: Dependency C 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Class Loader 2.1-SNAPSHOT ....... SKIPPED
[INFO] Maven IT Plugin :: Class Loader :: Aggregator 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Configuration 2.1-SNAPSHOT ...... SKIPPED
[INFO] Maven IT Plugin :: Context Passing 2.1-SNAPSHOT .... SKIPPED
[INFO] Maven ITs :: Core Plugin Stubs 2.1-SNAPSHOT ........ SKIPPED
[INFO] Maven IT Clean Plugin Stub 0.1-stub-SNAPSHOT ....... SKIPPED
[INFO] Maven IT Compiler Plugin Stub 0.1-stub-SNAPSHOT .... SKIPPED
[INFO] Maven IT Deploy Plugin Stub 0.1-stub-SNAPSHOT ...... SKIPPED
[INFO] Maven IT EAR Plugin Stub 0.1-stub-SNAPSHOT ......... SKIPPED
[INFO] Maven IT EJB Plugin Stub 0.1-stub-SNAPSHOT ......... SKIPPED
[INFO] Maven IT Install Plugin Stub 0.1-stub-SNAPSHOT ..... SKIPPED
[INFO] Maven IT JAR Plugin Stub 0.1-stub-SNAPSHOT ......... SKIPPED
[INFO] Maven IT Javadoc Plugin Stub 0.1-stub-SNAPSHOT ..... SKIPPED
[INFO] Maven IT Plugin Plugin Stub 0.1-stub-SNAPSHOT ...... SKIPPED
[INFO] Maven IT RAR Plugin Stub 0.1-stub-SNAPSHOT ......... SKIPPED
[INFO] Maven IT Resources Plugin Stub 0.1-stub-SNAPSHOT ... SKIPPED
[INFO] Maven IT Site Plugin Stub 0.1-stub-SNAPSHOT ........ SKIPPED
[INFO] Maven IT Source Plugin Stub 0.1-stub-SNAPSHOT ...... SKIPPED
[INFO] Maven IT Surefire Plugin Stub 0.1-stub-SNAPSHOT .... SKIPPED
[INFO] Maven IT WAR Plugin Stub 0.1-stub-SNAPSHOT ......... SKIPPED
[INFO] Maven IT Plugin :: Dependency Collection 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Dependency Resolution 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Expression 2.1-SNAPSHOT ......... SKIPPED
[INFO] Maven IT Plugin :: Error Mojos 2.1-SNAPSHOT ........ SKIPPED
[INFO] Maven IT Component 2.1-SNAPSHOT .................... SKIPPED
[INFO] Maven IT Plugin :: Extension Consumer 2.1-SNAPSHOT . SKIPPED
[INFO] Maven IT Plugin :: Extension Provider 2.1-SNAPSHOT . SKIPPED
[INFO] Maven IT Plugin :: Fork 2.1-SNAPSHOT ............... SKIPPED
[INFO] Maven IT Plugin :: Invalid Descriptor 2.1-SNAPSHOT . SKIPPED
[INFO] Maven IT Plugin :: Log File 2.1-SNAPSHOT ........... SKIPPED
[INFO] Maven IT Helper Library 2.1-SNAPSHOT ............... SKIPPED
[INFO] Maven IT Plugin :: Model Interpolation 2.1-SNAPSHOT  SKIPPED
[INFO] Maven IT Plugin :: No Default Component 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: No Project 2.1-SNAPSHOT ......... SKIPPED
[INFO] Maven IT Plugin :: Online 2.1-SNAPSHOT ............. SKIPPED
[INFO] Maven IT Plugin :: Optional Mojos 2.1-SNAPSHOT ..... SKIPPED
[INFO] Maven IT Plugin :: Packaging 2.1-SNAPSHOT .......... SKIPPED
[INFO] Maven IT Plugin :: Parameter Implementation 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Plugin Dependency 2.1-SNAPSHOT .. SKIPPED
[INFO] Maven IT Plugin :: Project 2.1-SNAPSHOT ............ SKIPPED
[INFO] Maven IT Plugin :: Project Interpolation 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Setter 2.1-SNAPSHOT ............. SKIPPED
[INFO] Maven IT Plugin :: Singleton Component 2.1-SNAPSHOT  SKIPPED
[INFO] Maven IT Plugin :: Site 2.1-SNAPSHOT ............... SKIPPED
[INFO] Maven IT Plugin :: Toolchain 2.1-SNAPSHOT .......... SKIPPED
[INFO] Maven IT Plugin :: Touch 2.1-SNAPSHOT .............. SKIPPED
[INFO] Maven IT Plugin :: Uses Properties Plugin 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Uses Wagon Plugin 2.1-SNAPSHOT .. SKIPPED
[INFO] Maven IT Plugin :: This plugin should contain the mojos needed by all tests. 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Plexus Utils 1.1 2.1-SNAPSHOT ... SKIPPED
[INFO] Maven IT Plugin :: Plexus Utils New 2.1-SNAPSHOT ... SKIPPED
[INFO] Maven IT Plugin :: Plexus Component API 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Log4J Client 2.1-SNAPSHOT ....... SKIPPED
[INFO] Maven IT Plugin :: Extension 1 2.1-SNAPSHOT ........ SKIPPED
[INFO] Maven IT Plugin :: Extension 2 2.1-SNAPSHOT ........ SKIPPED
[INFO] Maven IT Plugin :: Plexus Lifecycle 2.1-SNAPSHOT ... SKIPPED
[INFO] Maven IT Plugin :: Settings 2.1-SNAPSHOT ........... SKIPPED
[INFO] Maven IT Plugin :: mng-5805 extension 2.1-SNAPSHOT . SKIPPED
[INFO] Maven IT Plugin :: mng-5805 extension mk2 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: mng-5805 plugin 2.1-SNAPSHOT .... SKIPPED
[INFO] Maven IT Plugin :: mng-5805 plugin-dep 2.1-SNAPSHOT  SKIPPED
[INFO] Maven IT Plugin :: mng-5958 extension 2.1-SNAPSHOT . SKIPPED
[INFO] Maven IT Plugin :: mng-6759 plugin 2.1-SNAPSHOT .... SKIPPED
[INFO] Maven IT Toolchain 2.1-SNAPSHOT .................... SKIPPED
[INFO] Maven IT Wagon 2.1-SNAPSHOT ........................ SKIPPED
[INFO] Maven IT Support Artifacts 2.1-SNAPSHOT ............ SKIPPED
[INFO] Maven IT Extension 2.1-SNAPSHOT .................... SKIPPED
[INFO] javaagent 1.0-SNAPSHOT ............................. SKIPPED
[INFO] Maven Core ITs suite 2.1-SNAPSHOT .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.060 s
[INFO] Finished at: 2021-07-21T17:45:51+02:00
[INFO] ------------------------------------------------------------------------
$ mvn help:help -Ddetail=false
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Maven Core ITs                                                     [pom]
[INFO] Maven Core IT Support                                              [pom]
[INFO] Maven IT :: Plugins                                                [pom]
[INFO] Maven IT Plugin :: Active Collection                      [maven-plugin]
[INFO] Maven IT Plugin :: Ant-Based                              [maven-plugin]
[INFO] Maven IT Plugin :: Artifact                               [maven-plugin]
[INFO] Maven IT Plugin :: Class Loader :: Dependency A                    [jar]
[INFO] Maven IT Plugin :: Class Loader :: Dependency B                    [jar]
[INFO] Maven IT Plugin :: Class Loader :: Dependency C                    [jar]
[INFO] Maven IT Plugin :: Class Loader                           [maven-plugin]
[INFO] Maven IT Plugin :: Class Loader :: Aggregator                      [pom]
[INFO] Maven IT Plugin :: Configuration                          [maven-plugin]
[INFO] Maven IT Plugin :: Context Passing                        [maven-plugin]
[INFO] Maven ITs :: Core Plugin Stubs                                     [pom]
[INFO] Maven IT Clean Plugin Stub                                [maven-plugin]
[INFO] Maven IT Compiler Plugin Stub                             [maven-plugin]
[INFO] Maven IT Deploy Plugin Stub                               [maven-plugin]
[INFO] Maven IT EAR Plugin Stub                                  [maven-plugin]
[INFO] Maven IT EJB Plugin Stub                                  [maven-plugin]
[INFO] Maven IT Install Plugin Stub                              [maven-plugin]
[INFO] Maven IT JAR Plugin Stub                                  [maven-plugin]
[INFO] Maven IT Javadoc Plugin Stub                              [maven-plugin]
[INFO] Maven IT Plugin Plugin Stub                               [maven-plugin]
[INFO] Maven IT RAR Plugin Stub                                  [maven-plugin]
[INFO] Maven IT Resources Plugin Stub                            [maven-plugin]
[INFO] Maven IT Site Plugin Stub                                 [maven-plugin]
[INFO] Maven IT Source Plugin Stub                               [maven-plugin]
[INFO] Maven IT Surefire Plugin Stub                             [maven-plugin]
[INFO] Maven IT WAR Plugin Stub                                  [maven-plugin]
[INFO] Maven IT Plugin :: Dependency Collection                  [maven-plugin]
[INFO] Maven IT Plugin :: Dependency Resolution                  [maven-plugin]
[INFO] Maven IT Plugin :: Expression                             [maven-plugin]
[INFO] Maven IT Plugin :: Error Mojos                            [maven-plugin]
[INFO] Maven IT Component                                                 [jar]
[INFO] Maven IT Plugin :: Extension Consumer                     [maven-plugin]
[INFO] Maven IT Plugin :: Extension Provider                     [maven-plugin]
[INFO] Maven IT Plugin :: Fork                                   [maven-plugin]
[INFO] Maven IT Plugin :: Invalid Descriptor                     [maven-plugin]
[INFO] Maven IT Plugin :: Log File                               [maven-plugin]
[INFO] Maven IT Helper Library                                            [jar]
[INFO] Maven IT Plugin :: Model Interpolation                    [maven-plugin]
[INFO] Maven IT Plugin :: No Default Component                   [maven-plugin]
[INFO] Maven IT Plugin :: No Project                             [maven-plugin]
[INFO] Maven IT Plugin :: Online                                 [maven-plugin]
[INFO] Maven IT Plugin :: Optional Mojos                         [maven-plugin]
[INFO] Maven IT Plugin :: Packaging                              [maven-plugin]
[INFO] Maven IT Plugin :: Parameter Implementation               [maven-plugin]
[INFO] Maven IT Plugin :: Plugin Dependency                      [maven-plugin]
[INFO] Maven IT Plugin :: Project                                [maven-plugin]
[INFO] Maven IT Plugin :: Project Interpolation                  [maven-plugin]
[INFO] Maven IT Plugin :: Setter                                 [maven-plugin]
[INFO] Maven IT Plugin :: Singleton Component                    [maven-plugin]
[INFO] Maven IT Plugin :: Site                                   [maven-plugin]
[INFO] Maven IT Plugin :: Toolchain                              [maven-plugin]
[INFO] Maven IT Plugin :: Touch                                  [maven-plugin]
[INFO] Maven IT Plugin :: Uses Properties Plugin                 [maven-plugin]
[INFO] Maven IT Plugin :: Uses Wagon Plugin                      [maven-plugin]
[INFO] Maven IT Plugin :: This plugin should contain the mojos needed by all tests. [maven-plugin]
[INFO] Maven IT Plugin :: Plexus Utils 1.1                       [maven-plugin]
[INFO] Maven IT Plugin :: Plexus Utils New                       [maven-plugin]
[INFO] Maven IT Plugin :: Plexus Component API                   [maven-plugin]
[INFO] Maven IT Plugin :: Log4J Client                           [maven-plugin]
[INFO] Maven IT Plugin :: Extension 1                            [maven-plugin]
[INFO] Maven IT Plugin :: Extension 2                            [maven-plugin]
[INFO] Maven IT Plugin :: Plexus Lifecycle                       [maven-plugin]
[INFO] Maven IT Plugin :: Settings                               [maven-plugin]
[INFO] Maven IT Plugin :: mng-5805 extension                              [jar]
[INFO] Maven IT Plugin :: mng-5805 extension mk2                          [jar]
[INFO] Maven IT Plugin :: mng-5805 plugin                        [maven-plugin]
[INFO] Maven IT Plugin :: mng-5805 plugin-dep                             [jar]
[INFO] Maven IT Plugin :: mng-5958 extension                              [jar]
[INFO] Maven IT Plugin :: mng-6759 plugin                        [maven-plugin]
[INFO] Maven IT Toolchain                                                 [jar]
[INFO] Maven IT Wagon                                                     [jar]
[INFO] Maven IT Support Artifacts                                         [pom]
[INFO] Maven IT Extension                                                 [jar]
[INFO] javaagent                                                          [jar]
[INFO] Maven Core ITs suite                                               [jar]
[INFO]
[INFO] -------------------< org.apache.maven.its:core-its >--------------------
[INFO] Building Maven Core ITs 2.1-SNAPSHOT                              [1/78]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-help-plugin:3.1.0:help (default-cli) @ core-its ---
[INFO] Apache Maven Help Plugin 3.1.0
  The Maven Help plugin provides goals aimed at helping to make sense out of the
  build environment. It includes the ability to view the effective POM and
  settings files, after inheritance and active profiles have been applied, as
  well as a describe a particular plugin goal to give usage information.

This plugin has 8 goals:

help:active-profiles
  Displays a list of the profiles which are currently active for this build.

help:all-profiles
  Displays a list of available profiles under the current project.
  Note: it will list all profiles for a project. If a profile comes up with a
  status inactive then there might be a need to set profile activation
  switches/property.

help:describe
  Displays a list of the attributes for a Maven Plugin and/or goals (aka Mojo -
  Maven plain Old Java Object).

help:effective-pom
  Displays the effective POM as an XML for this build, with the active profiles
  factored in, or a specified artifact.

help:effective-settings
  Displays the calculated settings as XML for this project, given any profile
  enhancement and the inheritance of the global settings into the user-level
  settings.

help:evaluate
  Evaluates Maven expressions given by the user in an interactive mode.

help:help
  Display help information on maven-help-plugin.
  Call mvn help:help -Ddetail=true -Dgoal=<goal-name> to display parameter
  details.

help:system
  Displays a list of the platform details like system properties and environment
  variables.


[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Maven Core ITs 2.1-SNAPSHOT ........................ SUCCESS [  0.342 s]
[INFO] Maven Core IT Support 2.1-SNAPSHOT ................. SKIPPED
[INFO] Maven IT :: Plugins 2.1-SNAPSHOT ................... SKIPPED
[INFO] Maven IT Plugin :: Active Collection 2.1-SNAPSHOT .. SKIPPED
[INFO] Maven IT Plugin :: Ant-Based 2.1-SNAPSHOT .......... SKIPPED
[INFO] Maven IT Plugin :: Artifact 2.1-SNAPSHOT ........... SKIPPED
[INFO] Maven IT Plugin :: Class Loader :: Dependency A 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Class Loader :: Dependency B 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Class Loader :: Dependency C 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Class Loader 2.1-SNAPSHOT ....... SKIPPED
[INFO] Maven IT Plugin :: Class Loader :: Aggregator 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Configuration 2.1-SNAPSHOT ...... SKIPPED
[INFO] Maven IT Plugin :: Context Passing 2.1-SNAPSHOT .... SKIPPED
[INFO] Maven ITs :: Core Plugin Stubs 2.1-SNAPSHOT ........ SKIPPED
[INFO] Maven IT Clean Plugin Stub 0.1-stub-SNAPSHOT ....... SKIPPED
[INFO] Maven IT Compiler Plugin Stub 0.1-stub-SNAPSHOT .... SKIPPED
[INFO] Maven IT Deploy Plugin Stub 0.1-stub-SNAPSHOT ...... SKIPPED
[INFO] Maven IT EAR Plugin Stub 0.1-stub-SNAPSHOT ......... SKIPPED
[INFO] Maven IT EJB Plugin Stub 0.1-stub-SNAPSHOT ......... SKIPPED
[INFO] Maven IT Install Plugin Stub 0.1-stub-SNAPSHOT ..... SKIPPED
[INFO] Maven IT JAR Plugin Stub 0.1-stub-SNAPSHOT ......... SKIPPED
[INFO] Maven IT Javadoc Plugin Stub 0.1-stub-SNAPSHOT ..... SKIPPED
[INFO] Maven IT Plugin Plugin Stub 0.1-stub-SNAPSHOT ...... SKIPPED
[INFO] Maven IT RAR Plugin Stub 0.1-stub-SNAPSHOT ......... SKIPPED
[INFO] Maven IT Resources Plugin Stub 0.1-stub-SNAPSHOT ... SKIPPED
[INFO] Maven IT Site Plugin Stub 0.1-stub-SNAPSHOT ........ SKIPPED
[INFO] Maven IT Source Plugin Stub 0.1-stub-SNAPSHOT ...... SKIPPED
[INFO] Maven IT Surefire Plugin Stub 0.1-stub-SNAPSHOT .... SKIPPED
[INFO] Maven IT WAR Plugin Stub 0.1-stub-SNAPSHOT ......... SKIPPED
[INFO] Maven IT Plugin :: Dependency Collection 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Dependency Resolution 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Expression 2.1-SNAPSHOT ......... SKIPPED
[INFO] Maven IT Plugin :: Error Mojos 2.1-SNAPSHOT ........ SKIPPED
[INFO] Maven IT Component 2.1-SNAPSHOT .................... SKIPPED
[INFO] Maven IT Plugin :: Extension Consumer 2.1-SNAPSHOT . SKIPPED
[INFO] Maven IT Plugin :: Extension Provider 2.1-SNAPSHOT . SKIPPED
[INFO] Maven IT Plugin :: Fork 2.1-SNAPSHOT ............... SKIPPED
[INFO] Maven IT Plugin :: Invalid Descriptor 2.1-SNAPSHOT . SKIPPED
[INFO] Maven IT Plugin :: Log File 2.1-SNAPSHOT ........... SKIPPED
[INFO] Maven IT Helper Library 2.1-SNAPSHOT ............... SKIPPED
[INFO] Maven IT Plugin :: Model Interpolation 2.1-SNAPSHOT  SKIPPED
[INFO] Maven IT Plugin :: No Default Component 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: No Project 2.1-SNAPSHOT ......... SKIPPED
[INFO] Maven IT Plugin :: Online 2.1-SNAPSHOT ............. SKIPPED
[INFO] Maven IT Plugin :: Optional Mojos 2.1-SNAPSHOT ..... SKIPPED
[INFO] Maven IT Plugin :: Packaging 2.1-SNAPSHOT .......... SKIPPED
[INFO] Maven IT Plugin :: Parameter Implementation 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Plugin Dependency 2.1-SNAPSHOT .. SKIPPED
[INFO] Maven IT Plugin :: Project 2.1-SNAPSHOT ............ SKIPPED
[INFO] Maven IT Plugin :: Project Interpolation 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Setter 2.1-SNAPSHOT ............. SKIPPED
[INFO] Maven IT Plugin :: Singleton Component 2.1-SNAPSHOT  SKIPPED
[INFO] Maven IT Plugin :: Site 2.1-SNAPSHOT ............... SKIPPED
[INFO] Maven IT Plugin :: Toolchain 2.1-SNAPSHOT .......... SKIPPED
[INFO] Maven IT Plugin :: Touch 2.1-SNAPSHOT .............. SKIPPED
[INFO] Maven IT Plugin :: Uses Properties Plugin 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Uses Wagon Plugin 2.1-SNAPSHOT .. SKIPPED
[INFO] Maven IT Plugin :: This plugin should contain the mojos needed by all tests. 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Plexus Utils 1.1 2.1-SNAPSHOT ... SKIPPED
[INFO] Maven IT Plugin :: Plexus Utils New 2.1-SNAPSHOT ... SKIPPED
[INFO] Maven IT Plugin :: Plexus Component API 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: Log4J Client 2.1-SNAPSHOT ....... SKIPPED
[INFO] Maven IT Plugin :: Extension 1 2.1-SNAPSHOT ........ SKIPPED
[INFO] Maven IT Plugin :: Extension 2 2.1-SNAPSHOT ........ SKIPPED
[INFO] Maven IT Plugin :: Plexus Lifecycle 2.1-SNAPSHOT ... SKIPPED
[INFO] Maven IT Plugin :: Settings 2.1-SNAPSHOT ........... SKIPPED
[INFO] Maven IT Plugin :: mng-5805 extension 2.1-SNAPSHOT . SKIPPED
[INFO] Maven IT Plugin :: mng-5805 extension mk2 2.1-SNAPSHOT SKIPPED
[INFO] Maven IT Plugin :: mng-5805 plugin 2.1-SNAPSHOT .... SKIPPED
[INFO] Maven IT Plugin :: mng-5805 plugin-dep 2.1-SNAPSHOT  SKIPPED
[INFO] Maven IT Plugin :: mng-5958 extension 2.1-SNAPSHOT . SKIPPED
[INFO] Maven IT Plugin :: mng-6759 plugin 2.1-SNAPSHOT .... SKIPPED
[INFO] Maven IT Toolchain 2.1-SNAPSHOT .................... SKIPPED
[INFO] Maven IT Wagon 2.1-SNAPSHOT ........................ SKIPPED
[INFO] Maven IT Support Artifacts 2.1-SNAPSHOT ............ SKIPPED
[INFO] Maven IT Extension 2.1-SNAPSHOT .................... SKIPPED
[INFO] javaagent 1.0-SNAPSHOT ............................. SKIPPED
[INFO] Maven Core ITs suite 2.1-SNAPSHOT .................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.027 s
[INFO] Finished at: 2021-07-21T17:46:21+02:00
[INFO] ------------------------------------------------------------------------
{noformat}

> Arguments from command line should override those in .mvn/maven.config
> ----------------------------------------------------------------------
>
>                 Key: MNG-5857
>                 URL: https://issues.apache.org/jira/browse/MNG-5857
>             Project: Maven
>          Issue Type: Bug
>            Reporter: Dave Syer
>            Priority: Major
>             Fix For: waiting-for-feedback
>
>
> Because of the way the command line args are added at the *start* of the list here: [MavenCli#410|https://gitbox.apache.org/repos/asf?p=maven.git;a=blob;f=maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java;h=4d142ee4c9a7f4f1c6311fcc87aacb59ba14fc23;hb=HEAD#l410], they get overwritten by the settings in .mvn/maven.config. I would have thought this should be the other way round.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)