问题描述
我在我的 Java 项目中使用
I'm using Apache Maven in my Java project. in NetBeans there are build and clean build icons but there aren't in IntellIJ IDEA. How can I clean or clean build my project in it?
The answer here with the most votes suggests running the clean
and install
Lifecycle items separately in IntelliJ, which is easy enough and works. But it’s worth mentioning that you can combine these steps (and/or others) by instead creating a new Run/Debug Configuration of type maven
and adding the command clean install
(or whichever combination of maven lifecycle methods you run on a recurring basis).
Thereafter, running a mvn clean install
is as simple as clicking the green button to run that Run/Debug Configuration.
这篇关于如何在 IntelliJ IDEA 中清理或清理构建我的 Maven 项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!