Eclipse(STS)+ Maven [英] Eclipse (STS) + Maven
问题描述
- 有没有办法从eclipse调用maven控制台? (我可以写
eclipse:eclipse
,并开始构建eclipse项目) - STS 解压缩它的maven?我想添加到env变量的路径,以便我可以从我的Windows控制台使用它。
有没有办法从eclipse调用maven控制台? (我可以写eclipse:eclipse,它开始构建eclipse项目)
你可以打开一个shell ,cd进入正确的目录并运行那里的maven控制台。但是,当使用M2Eclipse(见下一点)时,您不应该运行 eclipse:eclipse
。
STS在哪里打开它的maven?我想添加到env变量的路径,所以我可以使用它从我的Windows控制台。
STS捆绑M2Eclipse其中配有Maven的嵌入式版本(所以它不会打包Maven)。但是您可以将M2Eclipse配置为使用外部版本。转到窗口>首选项> Maven>安装和添加... 您的外部安装:
alt text http://img20.imageshack.us/img20/6775/screenshot003wk.png
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) - 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.
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:
alt text http://img20.imageshack.us/img20/6775/screenshot003wk.png
这篇关于Eclipse(STS)+ Maven的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!