You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jorge Solórzano (Jira)" <ji...@apache.org> on 2021/12/21 11:39:00 UTC
[jira] [Updated] (MWRAPPER-43) Download of jar must be quiet by default
[ https://issues.apache.org/jira/browse/MWRAPPER-43?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jorge Solórzano updated MWRAPPER-43:
------------------------------------
Description:
By default, the wrapper must be quiet, if the _maven-wrapper.jar_ is not found the scripts try to download the jar using {*}wget{*}, {*}curl{*}, or the {*}MavenWrapperDownloader{*}.java.
The download process should only print the output when the +*MVNW_VERBOSE*+ is set to true.
Current output for *wget* when the maven-wrapper.jar is missing:
{noformat}
./mvnw clean
--2021-12-21 11:52:43-- https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
Resolving repo.maven.apache.org (repo.maven.apache.org)... 151.101.132.215
Connecting to repo.maven.apache.org (repo.maven.apache.org)|151.101.132.215|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 58727 (57K) [application/java-archive]
Saving to: '/home/wrapper/api/.mvn/wrapper/maven-wrapper.jar'
/home/jorsol/Trabajo/conf-worksp 100%[==========================================================>] 57,35K --.-KB/s in 0,007s
2021-12-21 11:52:44 (8,13 MB/s) - '/home/wrapper/api/.mvn/wrapper/maven-wrapper.jar' saved [58727/58727]
11:52:45.544 [INFO] Scanning for projects...
...
{noformat}
Current output for *curl* the maven-wrapper.jar is missing:
{noformat}
./mvnw clean
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 58727 100 58727 0 0 1303k 0 --:--:-- --:--:-- --:--:-- 1303k
12:02:23.007 [INFO] Scanning for projects...
...
{noformat}
Current output for *MavenWrapperDownloader* when the maven-wrapper.jar is missing:
{noformat}
./mvnw clean
- Downloader started
- Using base directory: /home/wrapper/api
- Downloading from: https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
- Downloading to: /home/wrapper/api/.mvn/wrapper/maven-wrapper.jar
Done
11:50:21.599 [INFO] Scanning for projects...
...
{noformat}
Everything between the _./mvnw_ and the first _INFO_ is just unwanted verbosity.
was:
By default the wrapper must be quiet, if the maven-wrapper.jar is not found the scripts try to download the jar using wget, curl or the MavenWrapperDownloader.java.
The download process should only print the output when the MVNW_VERBOSE is set to true.
> Download of jar must be quiet by default
> ----------------------------------------
>
> Key: MWRAPPER-43
> URL: https://issues.apache.org/jira/browse/MWRAPPER-43
> Project: Maven Wrapper
> Issue Type: Improvement
> Components: Maven Wrapper Scripts
> Affects Versions: 3.1.0
> Reporter: Jorge Solórzano
> Priority: Normal
>
> By default, the wrapper must be quiet, if the _maven-wrapper.jar_ is not found the scripts try to download the jar using {*}wget{*}, {*}curl{*}, or the {*}MavenWrapperDownloader{*}.java.
> The download process should only print the output when the +*MVNW_VERBOSE*+ is set to true.
> Current output for *wget* when the maven-wrapper.jar is missing:
> {noformat}
> ./mvnw clean
> --2021-12-21 11:52:43-- https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
> Resolving repo.maven.apache.org (repo.maven.apache.org)... 151.101.132.215
> Connecting to repo.maven.apache.org (repo.maven.apache.org)|151.101.132.215|:443... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 58727 (57K) [application/java-archive]
> Saving to: '/home/wrapper/api/.mvn/wrapper/maven-wrapper.jar'
> /home/jorsol/Trabajo/conf-worksp 100%[==========================================================>] 57,35K --.-KB/s in 0,007s
> 2021-12-21 11:52:44 (8,13 MB/s) - '/home/wrapper/api/.mvn/wrapper/maven-wrapper.jar' saved [58727/58727]
> 11:52:45.544 [INFO] Scanning for projects...
> ...
> {noformat}
> Current output for *curl* the maven-wrapper.jar is missing:
> {noformat}
> ./mvnw clean
> % Total % Received % Xferd Average Speed Time Time Time Current
> Dload Upload Total Spent Left Speed
> 100 58727 100 58727 0 0 1303k 0 --:--:-- --:--:-- --:--:-- 1303k
> 12:02:23.007 [INFO] Scanning for projects...
> ...
> {noformat}
> Current output for *MavenWrapperDownloader* when the maven-wrapper.jar is missing:
> {noformat}
> ./mvnw clean
> - Downloader started
> - Using base directory: /home/wrapper/api
> - Downloading from: https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
> - Downloading to: /home/wrapper/api/.mvn/wrapper/maven-wrapper.jar
> Done
> 11:50:21.599 [INFO] Scanning for projects...
> ...
> {noformat}
> Everything between the _./mvnw_ and the first _INFO_ is just unwanted verbosity.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)