Interface: org.sonatype.nexus.plugins.rest.NexusResourceBundle
This extension gathers and publishes static resources over HTTP. These resources are usually JavaScript files, CSS files, images, etc. Plugin developers do not need to use this extension directly since some of the features it exposes are automatic for all plugins. When the Nexus plugin manager discovers resources in plugin JAR under the path "/static", the Plugin Manager will create a special "plugin NexusResourceBundle" component on the fly.
If you do not want the plugin manager to automatically add a resource bundle you can define your own resource bundle implementation. The plugin manager will not add a resource bundle if:
- no resources found on "/static" path within plugin classpath, or
- a user created component of NexusResourceBundle exists within plugin
The "default plugin" resource bundle component uses MimeUtil from core to select MIME types of resources found within plugin, and will use same path to publish them (i.e. in plugin JAR "/static/image.png" will be published on "http://nexushost/nexus/static/image.png").