运行“mvn clean install”在Eclipse中 [英] Run "mvn clean install" in Eclipse

查看:373
本文介绍了运行“mvn clean install”在Eclipse中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在我的项目中运行控制台命令 mvn clean install 问题直接在Eclipse中,而不是从命令行。



这样做会更方便,因为我已经有项目在Eclipse中打开。如果我不必在Windows资源管理器中导航到该文件夹​​,那将节省我的时间。



如果我无法做到这一点,这不是一件大事,但可以一世?如果是这样,怎么样?



如果我可以右键单击我的项目,然后从上下文菜单中单击mvn clean install将是非常好的。

解决方案

我使用eclipse STS,所以maven插件是预先安装的。但是,如果您不使用STS(Springsource工具套件),您仍然可以安装m2Eclipse插件。以下是链接:



http:// www。 eclipse.org/m2e/



安装完成后,您应该能够运行所有的maven命令。为此,从软件包浏览器中,您可以右键单击maven项目中的maven项目或 pom.xml ,突出显示运行方式,然后单击 Maven安装



希望这有帮助。


Title says it all.

I want to run the console command mvn clean install on my project in question directly in Eclipse, not from the command line.

It would just be more convenient for me to do this, as I already have the project open in Eclipse. It would save me time if I would not have to navigate to the folder in Windows Explorer.

Not a big deal if I can't do this... but can I? And if so, how?

It would be great if I could just right click my project, then click "mvn clean install" from the context menu.

解决方案

I use eclipse STS, so the maven plugin comes pre-installed. However, if you aren't using STS (Springsource Tool Suite), you can still install the m2Eclipse plugin. Here is the link:

http://www.eclipse.org/m2e/

Once you have this installed, you should be able to run all the maven commands. To do so, from the package explorer, you would right click on either the maven project or the pom.xml in the maven project, highlight Run As, then click Maven Install.

Hope this helped.

这篇关于运行“mvn clean install”在Eclipse中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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