Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Installing plugins over 1GB.

DonPerera
Contributor
March 18, 2020

I am working on a custom plug-in and found that my jar file size is over 1GB. This is because the jar includes stanford-corenlp-3.9.2 jar files as dependencies, which are needed for a NLP module I have integrated. I want to know if it is possible to externally add dependencies to the plugin installation directory in Jira without bundling the oversized dependencies to the plugin itself? Or is there any other way I can reduce file size? Please help. Thanks in advance.

1 answer

0 votes
Jack [AppFox]
Atlassian Partner
March 18, 2020

Hi @DonPerera,

Jira is built on the OSGi model, so you can bundle packages into other plugin files and mark them as 'provided' - this is how your plugin can access the Jira components - as in the *.pom file, they are marked as such - this would reduce your main *.jar file as requested.

That said, this sounds like a bad idea - you will use a lot of resources loading this dependency and sounds like you'd be better off running this in a separate process and interfacing with Jira in a different way - perhaps through the REST API?

Further to this, if you intend to upload your *.jar or *.obr to the Atlassian Marketplace, be aware there is a 100mb limit, but I'm not sure this limit is enforced when installing locally.

Hope that helps!

-Jack

DonPerera
Contributor
March 18, 2020

Hi Jack,

If we bundle the dependency into another plugin file, then the size of that plugin would again be 1GB even if the size of the main plugin is reduced right? 

Is there any way we can add the dependency to the jira lib directly ?

Thanks and regards,

Rukshan Perera

Jack [AppFox]
Atlassian Partner
March 18, 2020

You're correct, I don't think it solves that problem.

I haven't done that particular action before, but the location would be as follows for your jar file:

JIRA/atlassian-jira/WEB-INF/lib

I'd be interested to know if that works for you.

Suggest an answer

Log in or Sign up to answer