Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven: How can I stop the deploy plugin from logging upload progress?

Tags:

How can I make it so Maven doesn't spam upload progress in the Hudson console?

Uploading: http://www.example.com/archiva/repository/snapshots/com/example/app/1.0-SNAPSHOT/app-1.0-20100804.175640-1.war
4/9430K
8/9430K
12/9430K
16/9430K
20/9430K
24/9430K
28/9430K
like image 780
David A. Avatar asked Aug 04 '10 21:08

David A.


People also ask

How does maven deploy plugin work?

The deploy plugin is primarily used during the deploy phase, to add your artifact(s) to a remote repository for sharing with other developers and projects. This is usually done in an integration or release environment.

Does maven deploy include install?

So, the answer is yes, mvn deploy will execute install and build the project artifacts.

What is the use of mvn deploy command in Maven?

The mvn deploy runs the deploy plugin which deploys an artifact to the remote repository. A project may include the main jar and associated sources and Javadoc jars. The sources jar contains the Java sources, and the Javadoc jar contains the generated Javadoc.

What is Maven deploy command?

mvn deploy. This command invokes the deploy phase: deploy : copies the final package to the remote repository for sharing with other developers and projects.


1 Answers

I think adding the batch mode option of maven2 should do the trick. http://books.sonatype.com/mvnref-book/reference/running-sect-options.html#running-sect-batch-option

mvn -B  ...

Another good idea is to use -fae (fail-at-end) for you hudson jobs, as it will report on more than the first error in your project.

like image 93
Paul Avatar answered Oct 04 '22 04:10

Paul