Eclipse(STS)+ Maven [英] Eclipse (STS) + Maven

查看:141
本文介绍了Eclipse(STS)+ Maven的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我基本上有两个问题:




  • 有没有办法从eclipse调用maven控制台? (我可以写 eclipse:eclipse ,并开始构建eclipse项目)

  • STS 解压缩它的maven?


解决方案我想将其添加到env变量中, / div>


有没有办法从eclipse调用maven控制台? (我可以写eclipse:eclipse,并开始构建eclipse项目)


你可以,cd进入正确的目录并运行从那里的maven控制台。但是,当使用M2Eclipse(见下一点),你不应该运行 eclipse:eclipse


STS解压缩它的maven在哪里?我想将此路径添加到env变量,以便我可以从我的Windows控制台中使用它。


STS bundle M2Eclipse带有一个嵌入式版本的Maven(所以它不解包Maven)。但是你可以配置M2Eclipse使用外部版本。转到窗口>首选项> Maven>安装添加... :您的外部安装:




I basically have 2 questions:

解决方案

Is there a way to invoke maven console from eclipse? (where I could write eclipse:eclipse, and it started building eclipse project)

You could open a shell inside eclipse , cd into the right directory and run the maven console from there. But, when using M2Eclipse (see next point), you're not supposed to run eclipse:eclipse.

Where does STS unpack it's maven? I'd like to add that path to env variables, so that I could use it from my windows console.

STS bundles M2Eclipse which comes with an embedded version of Maven (so it doesn't "unpack" Maven). But you can Configure M2Eclipse to use an external version. Go to window > Preference > Maven > Installations and Add... your external install:

这篇关于Eclipse(STS)+ Maven的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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