nexus-webhook-plugin | Nexus plugin that provides WebHook notifications | Build Tool library
kandi X-RAY | nexus-webhook-plugin Summary
kandi X-RAY | nexus-webhook-plugin Summary
Nexus WebHook Plugin This is a Nexus plugin that provides WebHook notifications when new (Maven) artifacts are stored in a Nexus instance. Basically it POST an HTTP request to one or more urls, with the details of the event as a JSON document in the request body. See for more information about WebHooks. LICENSE : The Apache Software License, Version 2.0 See the LICENSE file, or
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Inspect an event
- Gets the web hook urls for the given repository
- Instantiates a new HttpClient instance
- Notify all registered webhook listeners
- Returns a string representation of this artifactStoredEvent
- Returns a string representation of the given GAV
- Performs an HTTP POST request
- Reloads the configuration
- Returns the path protection
- The resource uri
- Returns the list of supported variants
- Create a unique hash code for this instance
- Checks if this event is equal to the given object
nexus-webhook-plugin Key Features
nexus-webhook-plugin Examples and Code Snippets
Community Discussions
Trending Discussions on nexus-webhook-plugin
QUESTION
Edit: i think i figured out that i have to use EventBus. Therefor i have to register my listener class (the one with @subscribe method) to the EventBus. How do i get the instance of Nexus' EventBus to register my "listener"?
i'm currently developing a webhook plugin for Nexus 2, more specifically OSS 2.13.0-01. Something like this (for Nexus 1.x). The eventinspector though does not work like that in Nexus 2.x. I browsed the source code of Nexus 2.x here, but i did not get the clue, yet. My idea initially was that i just have to implement a Listener and that's it, but i'm not able to get any event, nor do i see any good debugging opportunities to find out how. So: How can i listen to events to call my methods on occurrence of that event in nexus 2.x? Is the eventbus the way to go?
Thanks! bigcrash
...ANSWER
Answered 2017-Mar-15 at 14:24I am not sure what events you are interested in, but I built a plugin that detects whether new artifacts are added to Nexus. I implemented a class
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nexus-webhook-plugin
You can use nexus-webhook-plugin like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the nexus-webhook-plugin component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page