Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to capture output of exec-maven-plugin?

I'm trying to use the exec-maven-plugin as a way to integrate a 3rd party Java API. I'm using the exec:java goal to call my java main class. I need to parse the output of the API, however I do not see anything specific in the plugin that allows for this.

Is there a way in maven and/or the exec-maven-plugin to capture/save the output of the executions?

like image 804
Eric B. Avatar asked Jun 29 '15 19:06

Eric B.


1 Answers

With the exec:exec goal, you can use the outputFile parameter (or using the command line property exec.outputFile).

like image 194
M A Avatar answered Oct 02 '22 07:10

M A