Java – Maven: in POM Configuring parallel builds in XML
•
Java
Maven has the ability to perform parallel builds:
mvn -T 4 clean install # Builds with 4 threads mvn -T 1C clean install # 1 thread per cpu core mvn -T 1.5C clean install # 1.5 thread per cpu core
Can it be in POM XML or settings Specify this parameter in XML? Repeating this option can be annoying
Solution
I can't find it in POM XML or settings The method of configuring it in XML has a good solution on UNIX system. Edit your Bashrc and add an alias
alias mvnp='mvn -T 4'
Now run Maven from the terminal using mvnp
mvnp clean install
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码