[英]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. 我正在尝试使用
exec-maven-plugin
作为集成第三方Java API的方法。 I'm using the exec:java
goal to call my java main class. 我正在使用
exec:java
目标来调用我的java主类。 I need to parse the output of the API, however I do not see anything specific in the plugin that allows for this. 我需要解析API的输出,但是我没有在插件中看到任何特定的内容允许这样做。
Is there a way in maven and/or the exec-maven-plugin to capture/save the output of the executions? 有没有办法在maven和/或exec-maven-plugin中捕获/保存执行的输出?
使用exec:exec
目标,您可以使用outputFile
参数(或使用命令行属性exec.outputFile
)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.