I'm having trouble installing one of the plugins found on Bitbucket (stash-example-hook-protect-ref) for example. I downloaded the repository, unzipped, and packaged the files up in a .jar file, and tried to install on Stash, but got a "could not find handler..." error. Do I need to change values in the pom.xml and atlassian-plugin.xml files? If so, what? Does the .jar file include everything in the unzipped directory?
Community moderators have prevented the ability to post new answers.
Hi Dominique,
It's not just a matter of compressing the files into a JAR, you'll need to compile the sources and package them up in the Atlassian plugin format. The easiest way to do this is cloning the source repository, installing the SDK and running the atlas-package
command, which will write the JAR file into the /target
directory inside the repository.
You can see the SDK in action (and learn a little bit about plugin structure) in this video tutorial: https://developer.atlassian.com/blog/2015/01/beer-o-clock-stash-plugin-tutorial/
cheers,
Tim
I've tried this, but with my network, I cannot connect to the Maven repositories, so I cannot run any atlas commands from the Atlassian SDK at the moment. Is there another way around this? Are there other ways aside from using the Atlassian SDK?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.