如何运行命令mvn eclipse:eclipse [英] how to run the command mvn eclipse:eclipse
问题描述
我遵循这些说明,但运行命令如 mvn eclipse:eclipse
。
I'm following these instructions, but having problems with running commands like mvn eclipse:eclipse
.
我应该如何和在哪里运行命令?
How and where shall I run the command?
我的设置:
- Windows 7 32bit
- Eclipse Java EE IDE for网页开发人员
- 版本:Juno服务版本2
- Build id:20130225-0426
- m2e - eclipse v 1.3.0的maven集成
- Windows 7 32bit
- Eclipse Java EE IDE for Web Developers.
- Version: Juno Service Release 2
- Build id: 20130225-0426
- m2e - maven integration for eclipse v 1.3.0
我通过Eclipse中的插件安装安装了m2e。
I installed the m2e via the plugin installation in Eclipse.
推荐答案
m2e插件使用自己的Maven分发,与插件一起打包。
The m2e plugin uses it's own distribution of Maven, packaged with the plugin.
为了从命令行使用Maven,您需要将其作为独立应用程序进行安装。 这里 是说明如何做的说明在Windows中
In order to use Maven from command line, you need to have it installed as a standalone application. Here is an instruction explaining how to do it in Windows
一旦Maven正确安装(即确保 MAVEN_HOME
, JAVA_HOME
和 PATH
变量设置正确):您必须运行 mvn eclipse:eclipse
目录包含 pom.xml
。
Once Maven is properly installed (i.e. be sure that MAVEN_HOME
, JAVA_HOME
and PATH
variables are set correctly): you must run mvn eclipse:eclipse
from the directory containing the pom.xml
.
这篇关于如何运行命令mvn eclipse:eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!