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

Arnaud Heritier commented on MRELEASE-1048:
-------------------------------------------

I had a quick look at it.

This option is effectively not declared in 
[https://github.com/apache/maven-release/blob/master/maven-release-manager/src/main/java/org/apache/maven/shared/release/exec/InvokerMavenExecutor.java]
 but the real problem is that we cannot pass to the InvocationRequest a 
TransfertListerner like we do in a MavenExecutionRequest

[https://github.com/apache/maven/blob/658ad90b3850131e4a73fd6cca2ead30f6e5f213/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java#L1469-L1484]

We could probably have a workaround by just defining the system property 
-[Dorg.slf4j.simpleLogger.log.org|http://dorg.slf4j.simplelogger.log.org/].apache.maven.cli.transfer.Slf4jMavenTransferListener=warn
 like in pre 3.6.1 but it's not really clean ...

WDYT [~rfscholte] ?

> Unrecognized option: --no-transfer-progress
> -------------------------------------------
>
>                 Key: MRELEASE-1048
>                 URL: https://issues.apache.org/jira/browse/MRELEASE-1048
>             Project: Maven Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.5.3
>            Reporter: Olivier Vernin
>            Priority: Major
>
> ```
> usr/share/maven/bin/mvn B -s settings-release.xml 
> -Darguments='-no-transfer-progress' release:prepare
>  
> Failed to execute goal 
> org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on 
> project remoting: Failed to re-parse additional arguments for Maven 
> invocation. Unrecognized option: --no-transfer-progress -> [Help 1]
> ```
>  
> maven version
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
>  Maven home: /usr/share/maven
>  Java version: 1.8.0_252, vendor: Oracle Corporation, runtime: 
> /usr/local/openjdk-8/jre
>  Default locale: en, platform encoding: UTF-8
>  OS name: "linux", version: "4.15.0-1082-azure", arch: "amd64", family: "unix"



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

Reply via email to