I'm trying to package some Groovy code to be used by a ScriptRunner script during a workflow.
I've got a Script plugin configured which seems to be loaded and enabled, but I am unable to access the class.
When I examine the jar file, I see a lot of classes but not my Groovy classes. My pom.xml does include a plugin.scripts.roots parameter to the maven-jira-plugin that references the directory including my Groovy code.
During the build, I see a message regarding "Skipping OBR generation... no OSGI bundle manifest instructions found in pom.xml". Do I need to include some?
I had put my code under "src/main/groovy" but the Script plugin really wants it under "src/main/resources". Now my scripts appear in the jar.
And was able to try to execute a test script to access it. But now it fails with a null pointer exception.
So I guess we can consider this question answered.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.