我已经在 eclipse 之外使用 maven,但想使用 Eclipse 作为我的主编辑器。我不想使用已经嵌入 M2E 的 maven。我想使用位于/usr/bin/mvn 的我的。
在窗口>首选项,我尝试是/usr/bin中/MVN添加Maven安装(点击确定什么也不做;在同一窗口保持)和在/usr/bin中(给出了错误:The selected directory is not a valid Maven directory.
。
最佳答案
问你的 Maven Maven 家在哪里
$ mvn -V
Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 14:51:28+0100)
Maven home: /home/myuser/maven
并在 Eclipse 中将 Maven Home 添加到 Maven 安装设置。
但更好的解决方案是使用来自 http://maven.apache.org/ 的 Maven 发行版.只需将其解压缩并在 Eclipse 中进行配置。来自系统分发的 Maven 与从系统安装的应用程序一起工作很好,但不利于开发。
关于eclipse - 在 Eclipse 之外使用 maven,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16127739/