How do I capture the output of exec-maven-plugin?

I am trying to use exec-maven-plugin

as a way to integrate 3rd party Java API. I am using target exec:java

to call my main java class. I need to parse the API output, however I don't see anything specific in the plugin that allows this.

Is there a way in maven and / or exec-maven-plugin to capture / save execution results?

+3


source to share


1 answer


With, exec:exec

you can use a parameter outputFile

(or use a command line property exec.outputFile

).



+2


source







All Articles