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

withMaven exits with unrecognized option --no-transfer-progress when using maven < 3.6.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • pipeline-maven-plugin
    • None
    • Apache Maven 3.6.0
      pipeline-maven-plugin 1362.vee39a_d4b_02b_1
    • 1368.vfb_8509d7b_869

      JENKINS-51182 introduced `--no-transfer-progress` automatically to the maven command. This breaks when using maven < 3.6.1

      [2023-11-28T17:52:09.161Z] Unable to parse command line options: Unrecognized option: --no-transfer-progress
      [2023-11-28T17:52:09.161Z] 
      [2023-11-28T17:52:09.161Z] usage: mvn [options] [<goal(s)>] [<phase(s)>]
      [2023-11-28T17:52:09.161Z] 
      [2023-11-28T17:52:09.161Z] Options:
      [2023-11-28T17:52:09.161Z]  -am,--also-make                        If project list is specified, also
      [2023-11-28T17:52:09.161Z]                                         build projects required by the
      [2023-11-28T17:52:09.161Z]                                         list
      [2023-11-28T17:52:09.161Z]  -amd,--also-make-dependents            If project list is specified, also
      [2023-11-28T17:52:09.161Z]                                         build projects that depend on
      [2023-11-28T17:52:09.161Z]                                         projects on the list
      [2023-11-28T17:52:09.161Z]  -B,--batch-mode                        Run in non-interactive (batch)
      [2023-11-28T17:52:09.161Z]                                         mode (disables output color)
      [2023-11-28T17:52:09.161Z]  -b,--builder <arg>                     The id of the build strategy to
      [2023-11-28T17:52:09.161Z]                                         use
      [2023-11-28T17:52:09.161Z]  -C,--strict-checksums                  Fail the build if checksums don't
      [2023-11-28T17:52:09.161Z]                                         match
      [2023-11-28T17:52:09.161Z]  -c,--lax-checksums                     Warn if checksums don't match
      [2023-11-28T17:52:09.161Z]  -cpu,--check-plugin-updates            Ineffective, only kept for
      [2023-11-28T17:52:09.161Z]                                         backward compatibility
      [2023-11-28T17:52:09.161Z]  -D,--define <arg>                      Define a system property
      [2023-11-28T17:52:09.161Z]  -e,--errors                            Produce execution error messages
      [2023-11-28T17:52:09.161Z]  -emp,--encrypt-master-password <arg>   Encrypt master security password
      [2023-11-28T17:52:09.161Z]  -ep,--encrypt-password <arg>           Encrypt server password
      [2023-11-28T17:52:09.161Z]  -f,--file <arg>                        Force the use of an alternate POM
      [2023-11-28T17:52:09.161Z]                                         file (or directory with pom.xml)
      [2023-11-28T17:52:09.161Z]  -fae,--fail-at-end                     Only fail the build afterwards;
      [2023-11-28T17:52:09.162Z]                                         allow all non-impacted builds to
      [2023-11-28T17:52:09.162Z]                                         continue
      [2023-11-28T17:52:09.162Z]  -ff,--fail-fast                        Stop at first failure in
      [2023-11-28T17:52:09.162Z]                                         reactorized builds
      [2023-11-28T17:52:09.162Z]  -fn,--fail-never                       NEVER fail the build, regardless
      [2023-11-28T17:52:09.162Z]                                         of project result
      [2023-11-28T17:52:09.162Z]  -gs,--global-settings <arg>            Alternate path for the global
      [2023-11-28T17:52:09.162Z]                                         settings file
      [2023-11-28T17:52:09.162Z]  -gt,--global-toolchains <arg>          Alternate path for the global
      [2023-11-28T17:52:09.162Z]                                         toolchains file
      [2023-11-28T17:52:09.162Z]  -h,--help                              Display help information
      [2023-11-28T17:52:09.162Z]  -l,--log-file <arg>                    Log file where all build output
      [2023-11-28T17:52:09.162Z]                                         will go (disables output color)
      [2023-11-28T17:52:09.162Z]  -llr,--legacy-local-repository         Use Maven 2 Legacy Local
      [2023-11-28T17:52:09.162Z]                                         Repository behaviour, ie no use of
      [2023-11-28T17:52:09.162Z]                                         _remote.repositories. Can also be
      [2023-11-28T17:52:09.162Z]                                         activated by using
      [2023-11-28T17:52:09.162Z]                                         -Dmaven.legacyLocalRepo=true
      [2023-11-28T17:52:09.162Z]  -N,--non-recursive                     Do not recurse into sub-projects
      [2023-11-28T17:52:09.162Z]  -npr,--no-plugin-registry              Ineffective, only kept for
      [2023-11-28T17:52:09.162Z]                                         backward compatibility
      [2023-11-28T17:52:09.162Z]  -npu,--no-plugin-updates               Ineffective, only kept for
      [2023-11-28T17:52:09.162Z]                                         backward compatibility
      [2023-11-28T17:52:09.162Z]  -nsu,--no-snapshot-updates             Suppress SNAPSHOT updates
      [2023-11-28T17:52:09.162Z]  -o,--offline                           Work offline
      [2023-11-28T17:52:09.162Z]  -P,--activate-profiles <arg>           Comma-delimited list of profiles
      [2023-11-28T17:52:09.162Z]                                         to activate
      [2023-11-28T17:52:09.163Z]  -pl,--projects <arg>                   Comma-delimited list of specified
      [2023-11-28T17:52:09.163Z]                                         reactor projects to build instead
      [2023-11-28T17:52:09.163Z]                                         of all projects. A project can be
      [2023-11-28T17:52:09.163Z]                                         specified by [groupId]:artifactId
      [2023-11-28T17:52:09.163Z]                                         or by its relative path
      [2023-11-28T17:52:09.163Z]  -q,--quiet                             Quiet output - only show errors
      [2023-11-28T17:52:09.163Z]  -rf,--resume-from <arg>                Resume reactor from specified
      [2023-11-28T17:52:09.163Z]                                         project
      [2023-11-28T17:52:09.163Z]  -s,--settings <arg>                    Alternate path for the user
      [2023-11-28T17:52:09.163Z]                                         settings file
      [2023-11-28T17:52:09.163Z]  -t,--toolchains <arg>                  Alternate path for the user
      [2023-11-28T17:52:09.163Z]                                         toolchains file
      [2023-11-28T17:52:09.163Z]  -T,--threads <arg>                     Thread count, for instance 2.0C
      [2023-11-28T17:52:09.163Z]                                         where C is core multiplied
      [2023-11-28T17:52:09.163Z]  -U,--update-snapshots                  Forces a check for missing
      [2023-11-28T17:52:09.163Z]                                         releases and updated snapshots on
      [2023-11-28T17:52:09.163Z]                                         remote repositories
      [2023-11-28T17:52:09.163Z]  -up,--update-plugins                   Ineffective, only kept for
      [2023-11-28T17:52:09.163Z]                                         backward compatibility
      [2023-11-28T17:52:09.163Z]  -v,--version                           Display version information
      [2023-11-28T17:52:09.163Z]  -V,--show-version                      Display version information
      [2023-11-28T17:52:09.163Z]                                         WITHOUT stopping build
      [2023-11-28T17:52:09.163Z]  -X,--debug                             Produce execution debug output
      

            bguerin Benoit
            kylecronin Kyle Cronin
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: