Maven: configure parallel build in pom.xml

后端 未结 3 2182
走了就别回头了
走了就别回头了 2021-02-19 04:14

Maven has a capability to perform parallel builds: https://cwiki.apache.org/confluence/display/MAVEN/Parallel+builds+in+Maven+3

mvn -T 4 clean install # Builds w         


        
3条回答
  •  面向向阳花
    2021-02-19 04:26

    I could not find a way to configure this in the pom.xml or settings.xml There is a good solution on unix systems, edit your .bashrc and add an alias.

    alias mvnp='mvn -T 4'
    

    now from the terminal run maven using mvnp

    mvnp clean install
    

提交回复
热议问题