如何在 IntelliJ IDEA 中清理或清理构建我的 Maven 项目? [英] How to clean or clean build my Maven project in IntelliJ IDEA?

查看:85
本文介绍了如何在 IntelliJ IDEA 中清理或清理构建我的 Maven 项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的 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 项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆