开发者

How to trigger command after build?

Is there a way for maven to trigger system command after successful or unsuccessful build? Right now I'm using external script to run mvn package, but I would like this feature integr开发者_如何转开发ated with maven process.


Maven supports pre and post scripts. See the accepted answer here. In your case it would be mavenrc_post.bat

You can easily do that by creating a file at /etc/mavenrc or ~/.mavenrc (Linux) or %HOME%\mavenrc_pre.bat (Windows) Maven executes those on startup if they exist unless you've defined a variable named MAVEN_SKIP_RC.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜