How to programmatically call a Maven-task

前端 未结 4 1537
孤独总比滥情好
孤独总比滥情好 2021-02-05 08:34

I\'m using Maven in the context of another build-tool (leiningen for Clojure, but this should not matter), and I would like to know how I would call a plugin like dependency:bui

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-05 09:02

    Here's a better solution: use the Mojo-Executor library. It exposes a simple Java API for invoking Maven plugins.

提交回复
热议问题