You open the Module Project Properties dialog box by right-clicking a module project and choosing Properties.
| Element | Description | 
|---|---|
| Code Name Base | Displays the name that uniquely identifies the module. Sets OpenIDE-Modulein theMANIFEST.MFfile. This line in theMANIFEST.MFfile identifies the JAR file as a module, and provides its code name. If you expose APIs, the code name is what other modules will use to refer to your module when they declare a dependency on it. The standard convention is for the name to match the package structure of the module. | 
| Major Release Version | Specifies the major release version in MANIFEST.MF; may be blank or a non-negative integer. For example, if your module is calledorg.myorg.module, the major release version will be displayed as a forward slash with a number in theMANIFEST.MFfile:org.myorg.module/1. This is typically useful if your module exposes some APIs; modules can declare a dependency on a specific specification version of the module, so that the depending module will not be loaded if it requires version 2, but the version of your module that's installed is version 1. For modules with no API to expose, or which are trivial and unlikely ever to change, the major release version is not required. | 
| Specification Version | Sets OpenIDE-Module-Specification-Versionin theMANIFEST.MFfile. Typically when you add methods that are publicly available (part of the API of your module), you will increment this number by 0.1, so versions increment 1.0, 1.1, 1.2 and so forth. Thus other modules that need to use a method or class introduced in 1.1 can declare a dependency on 1.1, so they will not be loaded if that version is not present.Note: Increment this version whenever you wish a new version of the module to be pushed to users of an update center. | 
| Append Implementation Versions Automatically | |
| Implementation Version | Sets OpenIDE-Module-Implementation-Versionin theMANIFEST.MFfile. Modules declare, in theirMANIFEST.MFfile, what packages they make available to other modules, in thepublic-packagessection of thenbproject/project.xmlfile. If your module tries to use a class from another module which is public, but that class is not actually in one of the packages the other module declares as its "public packages", it will throw aNoClassDefFoundExceptionat runtime. | 
| Module Type | 
 | 
| Public Packages | Displays a list of all packages contained in the source directory plus any class-path-extensions. If checked, the package is included amongpublic-packagessection of thenbproject/project.xml file. | 
| Export Packages Only to Friends | Is checked if and only if there is at least one entry in the list below it. The list may include code name bases of other modules and is sorted. If not empty, packages are kept in friend-packagesinstead and the friends are listed innbproject/project.xml. | 
| Provided Tokens | Sets OpenIDE-Module-Providesin theMANIFEST.MFfile. | 
Related Topics
Developing Applications with NetBeans IDE,
Developing Applications with NetBeans IDE,
| Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |