且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

是否可以并行运行多个maven-exec-plugin执行?

更新时间:2021-08-24 03:15:10

使用两个模块设置项目:

Setup the project with two modules:

  1. 模块1-用于插件first-dbtype-deployment 模块
  2. 用于插件second-dbtype-deployment 并且不要在这些之间建立依赖关系 然后使用多个线程执行父项目:
  1. Module 1 - for plugin first-dbtype-deployment Module
  2. for plugin second-dbtype-deployment and do not create dependencies between these and then execute parent project with multiple threads:

示例: mvn -T 4 clean install#建立4个线程 https://cwiki.apache.org/confluence/display/MAVEN/Parallel + builds + in + Maven + 3

Example: mvn -T 4 clean install # Builds with 4 threads https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3