Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

redirecting the maven output to file

 
Pradeep Kumar
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hi ranchers,
I am keen to know if there is any option to log the output of the build to a file. currently when i run the the command prompt is bloated with log and I am not able to see the entire log. I want to get the output in a file. Please help me in this regard.


Regards,
Pradeep
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Pradeep, what Operating System are you using? You should be able to pipe the output of the mvn command to a file.
 
Pradeep Kumar
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on Microsoft windows XP.
 
Pradeep Kumar
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it. I use the "> {file name}" to redirect to a file.

Thanks once again.

 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're welcome!
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another option is to use the record task. I use it to write a detailed log for my builds:



Oops, sorry - that is for Ant, not Maven!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic