Manually Registering an NBM File in an Update Center

See Also

The recommended way of registering an NBM file in an update center is to add a module project to a module suite project, and to then choose Create NBMs from the module suite project's contextual menu. For details, see Generating an Autoupdate Descriptor.

However, if you do not want to include your module project in a suite for purposes of generating the autoupdate descriptor, you can create the autoupdate descriptor manually.

To manually register an NBM file in an update center:

  1. Build the NBM file.
  2. Outside the IDE, open the NBM file. Because NBM files are just ZIP files with a special extension, you can use a tool such as WinZip to open it.
  3. One of the files inside the NBM file is called info.xml.
  4. Paste the content of the <module> tag in info.xml into a text file, between these tags:
    <?xml version="1.0" encoding="UTF-8" ?>
    
    <!DOCTYPE module_updates PUBLIC "-//NetBeans//DTD Autoupdate Catalog 2.3//EN"
    "http://www.netbeans.org/dtds/autoupdate-catalog-2_3.dtd">
    <module_updates timestamp="00/00/15/24/01/2006">
    
    <?xml version="1.0" encoding="UTF-8" ?>
    
    <!DOCTYPE module_updates PUBLIC "-//NetBeans//DTD Autoupdate Catalog 2.3//EN" 
    "http://www.netbeans.org/dtds/autoupdate-catalog-2_3.dtd">
    <module_updates timestamp="00/00/15/24/01/2006">
    
        PASTE THE CONTENT OF INFO.XML HERE
    
        <license name="no-license.txt"><![CDATA[[NO LICENSE SPECIFIED]
        ]]></license>
    
    </module_updates>
  5. Right-click the NBM file in your filesystem and then look at the value for "Size on Disk". It should say something like "28,672". Remove the comma. Now put that number (i.e., "28672") as the value of the "downloadsize" element.
  6. Look at the "distribution" element and make sure it points to the location and name of the NBM file. By default, the "distribution" element has this value: "http://www.netbeans.org". If the NBM file will be in the same directory as the autoupdate descriptor, you would have this value: "./name_of_nbm.nbm".
  7. Save the file.
See Also
About NetBeans Platform and Module Development
About the NetBeans Platform

Legal Notices