I want to save maven output to a file, but without loosing the output to console. Usage of tee
is not an option because I run under Windows and also I do not want to add a binary tee.exe to the source tree.
相关问题
- I want to trace logs using a Macro multi parameter
- Error message 'No handlers could be found for
- convert logback.xml to log4j.properties
- Django management command doesn't show logging
- Include pom.xml in Jar with gradle
相关文章
- IDEA2020 安装maven 插件后,springboot程序 SpringBootApplic
- pom文件中的插件定义
- pom.xml中的project为何报红
- how do I log requests and responses for debugging
- Hibernate Tutorial - Where to put Mapping File?
- Cannot use org.jvnet.jax-ws-commons.jaxws-maven-pl
- Android Studio doesn't display logs by package
- New Maven install: mvn -version java.lang.ClassNot
Use Powercmd. It works as like normal command prompt plus some additional features like automatically log everything on screen, multiple windows, shortcuts.
Use :
> file-name
at the end of your mvn command to send output to a file then use something like wintail to tail the file.
If you are using linux. you can use the bellow command.
mvn install -X | tee log.txt
Since you said you're on windows. In powershell there is the
Tee-Object
. I run maven as such: (note that in powershell you'll need to enclose the whole-Dexec.args
in quotes).use a tail command tail -f log_file_name in another console.
As of today, maven2 does not supports this.