6

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?

4

1 回答 1

7

有了exec:exec目标,您可以使用outputFile参数(或使用命令行属性exec.outputFile)。

于 2015-06-29T19:33:16.870 回答