https://github.com/born2snipe/nbm-center
A local Netbeans update center
https://github.com/born2snipe/nbm-center
java nbm netbeans netbeans-plugin
Last synced: 10 months ago
JSON representation
A local Netbeans update center
- Host: GitHub
- URL: https://github.com/born2snipe/nbm-center
- Owner: born2snipe
- License: other
- Created: 2013-03-01T05:24:29.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-02T03:42:54.000Z (over 13 years ago)
- Last Synced: 2025-05-15T17:50:55.884Z (about 1 year ago)
- Topics: java, nbm, netbeans, netbeans-plugin
- Language: Java
- Size: 184 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# NBM Center
This is an application that will host NBMs for Netbeans it's self or for a Netbeans platform application.
## Getting started
- Download the latest jar file
- From the command line type the following:
`java -jar nbm-center-.jar`
This will setup a H2 database and start the server and you are ready to start uploading your modules to the center.
## Available Endpoints
- GET to `/module/all` - returns JSON of all the modules in the center
- POST to `/module` - uploads a NBM to be saved or updated in the center and returns JSON of that module
- GET from `/module/{id}.nbm` - streams the NBM file contents
- DELETE from `/module/{id}.nbm` - removes a NBM from the center
- GET from `/catalog.xml` - streams the catalog XML used by Netbeans or a platform application
- GET from `/catalog.xml.gz` - streams the catalog XML compressed using gzip this is also can be used by Netbeans or a platform application
#### Note: This application was built using [DropWizard](http://dropwizard.codahale.com) so you also have access to the default endpoints provided by the framework.
## FAQ
- Can I change the type of database (MySQL, Oracle, etc)?
- To do this all you need to do is put your JDBC driver in the classpath.
- Create your own YAML configuration file. You can see the default YAML file [here](https://github.com/born2snipe/nbm-center/blob/master/src/main/resources/default.yml).
- To run just type the following at the command line: `java -jar nbm-center-.jar migrateAndRun `
- How to upload a NBM to the center?
- Using curl: `curl -F "file=@my-fancy-plugin.nbm" http://localhost:8080/module`