首页 \ 问答 \ Eclipse中的Maven:一步一步安装[关闭](Maven in Eclipse: step by step installation [closed])

Eclipse中的Maven:一步一步安装[关闭](Maven in Eclipse: step by step installation [closed])



尽管诚实的努力,我一直无法找到任何Maven插件的综合教程。 M2E似乎是事实上的标准,在他们的网站上只有破坏(或递归的)链接。


有没有人知道M2E或任何其他插件的一个很好的分步指南? 一个具有良好的安装文档,以及其功能和适当用途的坚实解释?

I have spent been on the Maven site reading the 5- and 30-minute tutorials, and trialing Maven out for the first time.

I want to install a Maven plugin and use it to start building Maven projects from Eclipse.

Despite an honest effort, I have been unable to find a comprehensive tutorial on any Maven plugin. M2E, which seems like the de facto standard, has nothing but broken (or recursive) links on their site.

I can't tell if I even installed the plugin correctly, or how to use it.

Does anyone know of a good step-by-step guide to M2E or any other plugin? One that comes with good installation documentation, along with a solid explanation of its features and proper uses?

更新时间:2019-07-04 03:12


(编辑2016-10-12:许多来自https://eclipse.org/downloads/eclipse-packages/的 Eclipse下载已经包含M2Eclipse。至于Neon,Java和Java EE软件包都是 - 寻找“Maven支持” )

Maven Eclipse插件安装一步一步:

  1. 打开Eclipse IDE
  2. 单击帮助 - >安装新软件...
  3. 点击右上角的添加按钮
  4. 在弹出窗口:填写名称为“M2Eclipse”和位置为“ http://download.eclipse.org/technology/m2e/releases ”或http://download.eclipse.org/technology/m2e/milestones/1.0

  5. 现在点击确定



  1. 打开Eclipse
  2. 转到帮助 - > Eclipse Marketplace
  3. 搜索Maven
  4. 单击“Maven Integration for Eclipse”部分中的“安装”按钮
  5. 按照指示一步一步


  1. 转到窗口 - >首选项
  2. 观察,Maven被登记在左侧面板


  1. 点击现有的项目
  2. 选择配置 - >转换为Maven项目

(Edit 2016-10-12: Many Eclipse downloads from https://eclipse.org/downloads/eclipse-packages/ have M2Eclipse included already. As of Neon both the Java and the Java EE packages do - look for "Maven support")

Maven Eclipse plugin installation step by step:

  1. Open Eclipse IDE
  2. Click Help -> Install New Software...
  3. Click Add button at top right corner
  4. At pop up: fill up Name as "M2Eclipse" and Location as "http://download.eclipse.org/technology/m2e/releases" or http://download.eclipse.org/technology/m2e/milestones/1.0

  5. Now click OK

After that installation would be started.

Another way to install Maven plug-in for Eclipse:

  1. Open Eclipse
  2. Go to Help -> Eclipse Marketplace
  3. Search by Maven
  4. Click "Install" button at "Maven Integration for Eclipse" section
  5. Follow the instruction step by step

After successful installation do the followings in Eclipse:

  1. Go to Window --> Preferences
  2. Observe, Maven is enlisted at left panel


  1. Click on an existing project
  2. Select Configure -> Convert to Maven Project



Eclipse调试器中的步入和转移有什么区别?(What is the difference between Step Into and Step Over in the Eclipse debugger?)

请考虑以下代码与您当前的指令指针(下一步将执行的行)在f(x); 在g()行,被main()的g(2)行调用: public class testprog { static void f (int x) { System.out.println ("num is " + (x+0)); // <- step into } static void g (int x) { -> f(x); // <-------------------------- ...

跳过步骤x到步骤y并验证步骤x数据(skipping step x to step y and validate step x data)

我不认为get_context_data是执行此操作的正确方法; FormWizard是一个非常具体的类,它限制了您可以执行不同功能的位置。 指定FormWizard跳过某个步骤的典型方法是使用condition_dictionary 。 当条件(设置为callables)返回True时,Django使用该结构仅包含步骤的形式。 如果没有,那么该步骤的形式不会强制form.is_valid()从而绕过该步骤的验证。 这也确保了为每个步骤创建表单的所有隐藏管理信息。 这是一个如何工作的例子: # I ...

在同一行上打印,一步一步完成(Print on the same line, step after step)

默认情况下, stdout是行缓冲的,这意味着直到您写入换行符时缓冲区才会被刷新。 每次打印'.'时都会明确清空缓冲区'.' : print('.', end='', flush=True) flush关键字是在Python 3.3中添加的; 对于较早的版本,请使用sys.stdout.flush() 。 从print()函数文档 : 输出是否缓冲通常由文件决定,但如果flush关键字参数为true,则强制刷新流。 并从sys.stdout文档 ( print()函数的file参数的默认值): ...

这句里的“mock out one step further”怎么理解?

mock out是模仿的意思 one step further 是进一步的意思做状语

导航到Bootstrap步骤向导中的任何步骤(Navigate to any step in a Bootstrap step-wizard)

编辑: - 添加按钮以跳转到特定步骤。 小提琴 编辑: - 我修改你的小提琴检查 试试这个JsFiddle演示我稍微修改了html,通过向两者添加一个data-step参数来连接步骤div和相应的fieldset。 修改后,下面的功能将允许您通过单击图标在步骤之间跳转。 $(this).parents('.f1').find('.f1-progress-line'); fieldsetToActivate = $(this).data('step'); let direction ...

安装zabbix卡在第一步了,点next step没反应

点击下一步“Next step”没有反应的解决方法如下: # 如果你的nginx启动用户为nginx,则运行下面的命令修改php session文件目录的权限: setfacl -R -m u:nginx:rwx /var/lib/php

如何在eclipse中安装android棒棒糖?(How to install android Lollipop in eclipse?)

注意: 在SDK管理器中安装最新工具之前,我建议您从帮助 - >检查更新中更新ADT插件。 否则,您将不得不面对以下描述的问题: 使用Android开发工具v。23更新Eclipse 回答: 如第二步所述,首先您必须安装最新的SDK工具 , 平台工具和构建工具 。 下一步: 安装最新工具后,您将获得Android L和Android 4.4W部分: Note: Before installing latest tools in SDK manager, I would recommend you ...

一步自动执行并绑定(Autoexecute and bind in one step)

尝试这个: function ff(){ /* do something */ }; $(window).bind('scroll resize', ff ).resize(); Try this: function ff(){ /* do something */ }; $(window).bind('scroll resize', ff ).resize();




  • Android宽度:100%修复(网站接管问题)(Android width:100% fix (website takeover issue))
  • C ++函数/方法设计的良好实践(Good practice in C++ function/method design)
  • 计算其他表中不存在的所有记录 - SQL查询(Count all records that does not exist to other table - SQL Query)
  • 为什么我要用JPA共享ID?(Why do I get shared Ids with JPA?)
  • asp.net - 如何显示来自html格式的数据行的字段(asp.net - how to display a field from data row that is in html format)
  • 我们如何使用ActiveRecord从连接表中删除行?(How can we delete rows from a join table by using ActiveRecord?)
  • ng-class搞乱了类的顺序(ng-class messing with the order of classes)
  • oracle 12g无效数字错误(oracle 12g invalid number error)
  • 更改ng-src值onclick(Change ng-src value onclick)
  • 如何在android中自动添加自定义依赖项以创建新项目?(How to add custom dependencies automatically in android for ever a new project is created?)
  • datetime函数在PHP中(datetime function in php)
  • 在javascript中获取会话数组的值(in javascript get the value of a session array)
  • 如何在UTF8中编译LaTeX?(How can I compile LaTeX in UTF8? [closed])
  • Rspec:“array.should == another_array”,但不用担心订单(Rspec: “array.should == another_array” but without concern for order)
  • Logcat错误:无法在android片段中加载视图(Logcat error: unable to load view in android fragments)
  • JavaFX的。(JavaFX. Adding items to the list in different threads is not working)
  • 从GDATA日历资源迁移到Google Calendar Resource api(Migrate from GDATA calendar resource to Google Calendar Resource api)
  • SSRS 2008 - 以零情景处理分割(SSRS 2008 - Dealing with division by zero scenarios)
  • 我如何以编程方式添加一个listView列标题的点击事件(How can I add a listView column header a click event programmatically)
  • Wxpython:无法检索有关列表控件项XXX的信息(Wxpython: Couldn't retrieve information about list control item XXX)
  • 使用Tortoise SVN在SVN存储库中移动目录(Move Directory across SVN repository using Tortoise SVN)
  • 天蓝色服务结构集群中的web api无状态服务是否在一段时间不活动后进入休眠状态?(Do web api stateless services in azure service fabric cluster go to sleep after a period of inactivity?)
  • 我可以设置intelliJ来突出显示PHP编码风格吗?(Can I set intelliJ to highlight php coding style?)
  • 用javafx创建一个Truetype字体文件(Creating a Truetype Font file with javafx)
  • Spring ftp配置错误(Spring ftp configuration is wrong)
  • 使用gsub去除多个字符(Using gsub to strip multiple characters)
  • 续订推送证书并保持当前的App Store App正常工作(Renew Push certificate and keep current App Store App working)
  • js:ES5和ES6之间关于'this'关键字用法的一个令人困惑的观点(js: one confusing point about 'this' keyword usage between ES5 and ES6)
  • window.onload vs $(document).ready()(window.onload vs $(document).ready())
  • 在Swift中,如何声明一个符合一个或多个协议的特定类型的变量?(In Swift, how can I declare a variable of a specific type that conforms to one or more protocols?)