开发者

Should I put nbproject directory under source control in NetBeans

开发者 https://www.devze.com 2023-03-16 01:51 出处:网络
I\'m using NetBeans to develop J2EE web service. NetBeans create a directory called nbproject inside my project directory.

I'm using NetBeans to develop J2EE web service. NetBeans create a directory called nbproject inside my project directory. I'm wondering if I should put this directory under source control. I think it is required to build the project without Ne开发者_StackOverflowtBeans.


This is usually not required. Think of it this way: If I was to check out your project but happened to be using a different IDE, I would not require your nbproject directory. In other words: This directory is machine specific, not project specific. Hope this helps.


The nbProject folder contains all the netbeans metadata about your project. When you go Project -> properties all the settings (and others) that you find there are stored in the nbProjects folder.

EDIT: This has been answered in another question, and the answer there is more complete and accurate

In short you should include nbproject, but not nbproject/private


If you are building your project with Maven or Gradle you should definitely exclude the folder from the VCS.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号