简体   繁体   English

Eclipse Maven导出丢失

[英]Eclipse Maven Export Missing

I'm using Eclipse Kepler 64 bit . 我正在使用Eclipse Kepler 64位 It already has m2e (maven plugin) pre-installed by default. 默认情况下,它已经预安装了m2e(maven插件)。

The import wizard has a Maven option but the export one doesn't: 导入向导具有Maven选项,但导出选项没有:

http://i.stack.imgur.com/mEG5B.png

http://i.stack.imgur.com/38G5K.png

I tried installing m2e from the Marketplace but it said that there was nothing to install. 我尝试从Marketplace安装m2e,但它说没有任何安装。

How do I get it as export option as well? 我如何也将其作为导出选项?

As far as the M2E plugin is concerned, using Maven with Eclipse involve importing existing project, and making sure the pom.xml is complete (with the right "nature" added in it, in order to generate the right .project , as in this example ) M2E插件而言, 在Eclipse中使用Maven涉及导入现有项目,并确保pom.xml是完整的(在其中添加了正确的“ nature”,以便生成正确的.project ,如此处所示)例子
See " Importing Maven Projects " in the Sonatype book . 请参阅Sonatype书中的导入Maven项目 ”。

But once the project is imported, it becomes a regular project (with additional maven capabilities), without any maven-specific export options. 但是,一旦导入了项目,它便成为常规项目(具有附加的maven功能),而没有任何特定于maven的导出选项。

All you need to "export" a maven project are the sources and the pom.xml : anyone can then run maven to get all the dependencies (from the pom.xml specifications). 源代码和pom.xml是“导出” maven项目所需的全部:然后任何人都可以运行maven以获取所有依赖项(来自pom.xml规范)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM