本文介绍了Netbeans 团队许可证标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在团队环境中,有没有办法强制为 Netbeans Maven 项目中的每个新 Java 文件插入许可证标头?我检查了这个链接:http://forums.netbeans.org/viewtopic.php?p=95280#95280

In a team environment, is there a way to enforce a license header to be inserted for every new Java file in Netbeans Maven project?I checked this link: http://forums.netbeans.org/viewtopic.php?p=95280#95280

但是我需要配置自己的模板的方式似乎并没有同步到其他人的工作区.有什么想法吗?

However the way I need to configure my own templates does not seem to be synchronized to other people's workspace.Any idea?

推荐答案

直到它在一般的 netbeans 级别上重新设计,maven 支持在那里做不了多少.

until it's reworked on the general netbeans level, maven support cannot do much there.

AFAIK 你唯一的选择是提出一个定义许可证的 netbeans 模块,并让每个人都安装该模块.但仍不理想.

AFAIK your only option there is to come up with a netbeans module that defines the license and have everyone install that module. But still suboptimal.

这篇关于Netbeans 团队许可证标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-02 14:02