简体   繁体   English

如何正确配置Netbeans以构建openCMS核心?

[英]How to properly configure Netbeans to build openCMS core?

I'm trying to set up a development environment to build openCMS 10.5 with Netbeans 8.2 under Linux(Linux Mint 32-Bit, but I would be flexible there). 我正在尝试建立一个开发环境,以在Linux(Linux Mint 32位,但我会很灵活)下使用Netbeans 8.2构建openCMS 10.5。

Now I'm getting as far as cloning the openCMS core from git. 现在我要从git克隆openCMS核心。 But I have trouble with creating the Netbeans project(s) so the openCMS core can be build properly. 但是我在创建Netbeans项目时遇到了麻烦,因此可以正确构建openCMS核心。

What I need to know is: How many projects do I need to create in Netbeans? 我需要知道的是:我需要在Netbeans中创建多少个项目? There are several src-folders, does it need to be one project for each folder? 有多个src文件夹,每个文件夹是否需要一个项目?

What kind of project(s) do I need to create? 我需要创建什么样的项目? There are several types of project like Java Application or Enterprise Application,... 有几种类型的项目,例如Java Application或Enterprise Application,...

There is an Ant-build-script in the git-clone. git-clone中有一个Ant-build-script。 Can I use this to create the Netbeans project(s)? 我可以使用它来创建Netbeans项目吗?

First of all, you don't need an IDE to build opencms. 首先,您不需要IDE即可构建opencms。 Just invoke gradle from the command line: 只需从命令行调用gradle即可:

gradle bindist

If you want to use NetBeans, you don't need to create any project. 如果要使用NetBeans,则无需创建任何项目。 NetBeans provides support for gradle projects via plugins. NetBeans通过插件为gradle项目提供支持。 Install the "Gradle JavaEE Support" and "Gradle Support" plugins, and open the already cloned directory: 安装“ Gradle JavaEE Support”和“ Gradle Support”插件,然后打开已经克隆的目录:

netbeans中的opencms:屏幕截图

Admittedly, the current gradle project description doesn't make it easy to work with the code (every module have the same set of sources, rendering the project view quite cumbersome), but you can get used to it. 诚然,当前的gradle项目描述使使用代码变得不容易(每个模块具有相同的源集,使得项目视图相当繁琐),但是您可以习惯它。

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

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