Is there a way to disable download status for wget? ie make it silent

169 views
Skip to first unread message

Alexander Gray II

unread,
Oct 28, 2014, 6:17:16 PM10/28/14
to maven-down...@googlegroups.com
I am using this plugin like this:
            <plugin>
                <groupId>com.googlecode.maven-download-plugin</groupId>
                <artifactId>download-maven-plugin</artifactId>
                <version>1.2.0</version>
                <executions>
                    <execution>
                        <id>install-foo</id>
                        <phase>pre-integration-test</phase>
                        <goals>
                            <goal>wget</goal>
                        </goals>
                        <configuration>
                            <url>http://foo.com/some-large-file</url>
                            <outputFileName>foo.tar.gz</outputFileName>
                            <unpack>true</unpack>
                            <outputDirectory>foot</outputDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

But the output is super long:
Downloading: http://foo.com/some-large-file
3/23151K
6/23151K
8/23151K
12/23151K
12/23151K
13/23151K
17/23151K
19/23151K
21/23151K
25/23151K
26/23151K
29/23151K
33/23151K
33/23151K
36/23151K
39/23151K
42/23151K
46/23151K
46/23151K
49/23151K
52/23151K
56/23151K
56/23151K
60/23151K
62/23151K
63/23151K
66/23151K
68/23151K
72/23151K
72/23151K
73/23151K
75/23151K
78/23151K
79/23151K
etc. etc.

Is there a way to suppress the output of wget?
Ie, use the --no-verbose (--nv) flag:
wget "http://foo.com" -O test.html --nv

Thanks,
Alex

Mickael Istria

unread,
Nov 1, 2014, 9:09:45 AM11/1/14
to maven-down...@googlegroups.com
There is currently no way to do that, but feel free to provide a patch
using regular Pull Request process.
https://github.com/maven-download-plugin/maven-download-plugin
Reply all
Reply to author
Forward
0 new messages