nbactions.xml的作用是什么? [英] What is nbactions.xml used for?

查看:109
本文介绍了nbactions.xml的作用是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

搜索了一会儿之后,我发现这与使用maven和net bean来构建应用程序有关,但是我似乎找不到关于它的好的文档. 使用nbaction.xml可以实现哪个目标?如果有Eclipse,那与Eclipse等效吗?

After searching for a little while I figured it has to do with using maven and net beans for building an application, but I can't seem to find good documentation on that. Which goal could be achieved by using nbaction.xml? Which would be its equivalent for Eclipse, if there even is one?

推荐答案

Netbeans使用 nbactions.xml 文件来调用自定义Maven目标.甚至可以使用NetBeans在NetBeans的构建,测试和运行"命令中更改其行为.

The nbactions.xml file is used by Netbeans to call custom Maven goals. It is even possible to change the behavior of the built in the "Build, Test and Run" commands in Netbeans using it.

项目属性>操作设置存储在此文件中.

The project Properties > Actions settings are stored in this file.

关于此堆栈溢出问题的公认答案中有更多详细信息,这些问题与在netbeans中定义目标有关:

There are more details in the accepted answer to this Stack Overflow question relating to defining goals in netbeans: Invoking Actions other than Build and Clean & Build

我最近没有使用过Eclipse,但是我怀疑您可以使用自定义运行配置轻松地复制此功能.我相信使用 m2eclipse 插件可以通过调用 Run as .../Maven build .

I have not been using Eclipse lately, but I suspect you can easily replicate this functionality using custom run configurations. I believe that using the m2eclipse plugin offers this functionality by invoking Run as... / Maven build.

您可能还会发现此其他Stack Overflow答案对配置m2eclipse很有帮助:

You may also find this other Stack Overflow answer helpful configuring m2eclipse: How do I start Maven "compile" goal on save in Eclipse?

这篇关于nbactions.xml的作用是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆