#NetBeans Repository plugin
The plugin is capable of populating the local or remote maven repository with module jars and NBM files from a given NetBeans installation. Useful for
module development, modules with public APIs are separated from those without a public API.
See the populate goal.
To get access to a repository with NetBeans.org module artifacts and metadata, add http://bits.netbeans.org/maven2/ repository to your project POM or the repository manager you are using. The repository hosts binaries of NetBeans 6.5 and later.
Also see: Maven NBM development FAQs
There is a populate goal that converts the NetBeans module information into Maven metadata
and is capable of uploading the module jar file, javadoc, sources and nbm files to local
and remote repositories.
For a binary-only upload (jar files and nbm files only), it's possible to download the bits from official sites. See below for URLs.
For the complete upload, you will need to checkout the sources of the IDE/Platform you want to upload. See this FAQ entry on HowTo checkout sources from Hg
The goal has multiple input parameters that link the goal to binaries prepared beforehand.
-
netbeansInstallDirectorydesignates the base directory where resides the NetBeans installation that shall be uploaded. It can be either downloaded as zip or built from sources. Runantin your local hg clone to build the distribution atnbbuild/netbeanssundirectory. -
netbeansNbmDirectorydesignates the base directory where the nbm files are located. Runant build-nbmsin your localhg cloneto build the nbms atnbbuild/nbmsdirectory or download it from the http://updates.netbeans.org/netbeans space eg. final 6.5 version at http://updates.netbeans.org/netbeans/6.5/final/uc/. Use a tool likewgetto download the complete directory tree to a directory designated by thenetbeansNbmDirectoryparameter. -
netbeansSourcesDirectorydesignates the base directory containing zip files with module jar sources. Runant build-source-zipsin your local hg clone to build the nbms atnbbuild/build/source-zipsdirectory. -
netbeansJavadocDirectorydesignates the base directory containing zip files with javadoc zips for modules with public apis. Runant build-javadocin your local hg clone to build the nbms atnbbuild/build/javadocdirectory. -
To have external dependencies correctly identified by their real GAV, you will need to download the index from central (or other) repository using the
downloadgoal.