1、在Maven项目或者pom.xml上右键——>Run As ——>“Maven Build...”或者Run Configuration——>“Maven Build” 2、在“Goals”输入框中输入:clean install -X 3、使用时在Run As中选中Maven build即可