开发者

How to trigger command after build?

开发者 https://www.devze.com 2023-02-24 03:28 出处:网络
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开发者_如何转开发

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

精彩评论

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