简体   繁体   English

如何在NetBeans 7.0.1上打开Apache Maven项目

[英]How to open a Apache Maven project on NetBeans 7.0.1

I'm trying to open a project created with Apache Maven in NetBeans, with no success. 我正在尝试在NetBeans中打开使用Apache Maven创建的项目,但没有成功。 I followed the directions given by this link: http://wiki.netbeans.org/MavenBestPractices but the Open Project dialog does not recognizes the project in the folder. 我按照此链接给出的指示: http//wiki.netbeans.org/MavenBestPractices但是“打开项目”对话框无法识别文件夹中的项目。 When I point to the folder that contains the pom.xml file, it shows as if the folder is empty, except for the sub-folders. 当我指向包含pom.xml文件的文件夹时,它显示该文件夹为空,但子文件夹除外。 Apparently Apache Maven is disabled, but I can't find how to enable it. 显然Apache Maven已禁用,但我找不到如何启用它。 Could someone point what is the mistake that I'm doing? 有人能指出我在做什么错误吗?

please make sure the maven modules are actually installed in your distribution. 请确保maven模块实际安装在您的发行版中。 (Tools/Plugins I believe). (我相信工具/插件)。 And the latest NetBeans version is 7.4, 7.0.1 is fairly old already. 最新的NetBeans版本是7.4,7.0.1已经相当陈旧了。

I installed the NetBeans 7.4 from here: http://www.oracle.com/technetwork/java/javase/downloads/jdk-7-netbeans-download-432126.html and it worked! 我从这里安装了NetBeans 7.4: http//www.oracle.com/technetwork/java/javase/downloads/jdk-7-netbeans-download-432126.html它工作正常! Probably the build from Ubuntu repositories has issues. 可能来自Ubuntu存储库的构建存在问题。 Thanks for the suggestions! 谢谢你的建议!

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

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