开源软件名称(OpenSource Name):philleonard/maven-progress-bar
开源软件地址(OpenSource Url):https://github.com/philleonard/maven-progress-bar
开源编程语言(OpenSource Language):
Python
97.1%
开源软件介绍(OpenSource Introduction): Progress Bar
Small Python app to show the progress of Maven builds in the command line, with a build ETA so that you can get back to
the important stuff.
Distill the verbose Maven output:
![install](https://camo.githubusercontent.com/c7e0963df353225339910dfb60d71a64df23eae10b68eb87177164d3f084b239/68747470733a2f2f7468756d62732e6766796361742e636f6d2f456e6368616e74656444656166656e696e674b65737472656c2d73697a655f726573747269637465642e676966)
Into something informative about your build:
![progress](https://camo.githubusercontent.com/2e7111413e7eb45083c101e776a20c89a949ad28afa6674f30fecf404aba5eba/68747470733a2f2f7468756d62732e6766796361742e636f6d2f5a69677a61674174686c65746963437573696d616e73652d73697a655f726573747269637465642e676966)
Installation
The app requires that python3 and pip be installed. Simply install using the bash script:
May require sudo privileges to copy script to /usr/local/bin
Usage
Simply pipe the output of any mvn command into mvnp . Some examples:
# Simple clean install
mvn clean install | mvnp
# Also works in parallel
mvn -T 1.0C clean install | mvnp
# Also supports chained builds
(mvn install && mvn test && mvn package) | mvnp
It also reports errors, and supports resuming builds:
![resuming](https://camo.githubusercontent.com/4fd8a77e2801cfb3ae12ce900657a7d2339c48d5af7da6d19fc2d9b5ab5f19cd/68747470733a2f2f7468756d62732e6766796361742e636f6d2f466f63757365644964656e746963616c43697272697065642d73697a655f726573747269637465642e676966)
Tips
# Consider using an alias when you find the right config
alias my-mvnp="mvnp -e -t -n"
mvn clean install | my-mvp
or even better, adding your own bash function to ~./bash_profile :
function my-mvn { mvn "$@" | mvnp -t -e -n; }
and calling in such a manner:
TODO:
- Create .bat and verify Windows operability
- Add cross platform build notifications
- Consider using curses for a more interactive display
- Determine end of archive build for better ETA (currently beginning is read)
|
请发表评论