Maven: configure parallel build in pom.xml

后端 未结 3 2202
走了就别回头了
走了就别回头了 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:35

    You are able to specify the option in the MAVEN_OPTS environment variable (see http://maven.apache.org/guides/mini/guide-configuring-maven.html). Once this is done, you don't have to repeat it. Configuring the environment variable depends on your system. However this will affect all maven runs within your environment. Maybe it's possible for you to enable different environments, so that only the project you actually want to build in parallel is running in such an environment.

提交回复
热议问题