简体   繁体   English

Maven 项目在 netbeans 中不可用

[英]Maven project not available in netbeans

I'm trying to use flying saucer , and to do that I have to build it though their pom.xml .我正在尝试使用flying saucer ,为此我必须通过他们的pom.xml来构建它。 I'm also currently using NetBeans, and from my understanding it is supposed to be shipped with their later builds (later meaning 6.5+), however there is no such option for me to use maven when creating a project.我目前也在使用 NetBeans,据我所知,它应该随他们以后的版本一起提供(后来的意思是 6.5+),但是在创建项目时没有这样的选项可以使用 maven。

These are the options available for me atm;这些是可供我使用的选项; 可用的项目选项

Also, I checked the plugins, and there is no maven plugin there, do I have to install the plugin manually?另外,我检查了插件,那里没有maven插件,我必须手动安装插件吗?

Thanks for any responses!感谢您的任何回复!

you are likely missing a few plugins.您可能缺少一些插件。 Check Tools/Plugins main menu dialog and install the maven related plugins.检查工具/插件主菜单对话框并安装 maven 相关插件。

The issue was that I had installed NetBeans from the software manager, which did not include Maven, even though it was version 8.1.问题是我从软件管理器安装了 NetBeans,其中不包括 Maven,即使它是 8.1 版。

This was fixed by getting the NetBeans 8.2 version from oracle, that included the maven plug-in by default.这是通过从 oracle 获取 NetBeans 8.2 版本来解决的,默认情况下包含 maven 插件。

It seems rather misleading that according to NetBeans, maven is shipped with the default installation of NetBeans IDE, yet somehow it wasn't included.根据 NetBeans 的说法,maven 随 NetBeans IDE 的默认安装一起提供,这似乎具有误导性,但不知何故它并未包含在内。

NetBeans on maven Maven 上的 NetBeans

You can add maven support considering you can't update you can just download and use maven directly in the command line and build from the pom.xml考虑到您无法更新,您可以添加 maven 支持,您可以直接在命令行中下载和使用 maven 并从 pom.xml 构建

cd to dir..

mvn install

and it will do it's thing.它会做它的事情。

Download is here https://maven.apache.org/download.cgi下载在这里https://maven.apache.org/download.cgi

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

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