Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to include Apache Poi dependency in Jira Plugin ?

Just putting this dependeny in the pom.xml file of a Jira Plugin crashes the whole application:

<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>5.0.0</version>
</dependency>

 First it says :

Failed to execute goal com.atlassian.maven.plugins:jira-maven-plugin:8.1.0:validate-banned-dependencies (default-validate-banned-dependencies) on project aanf-transformer: Some Enforcer rules have failed.

Why is this happening. I cannot execute lifecycle mvn install 

2 answers

@Albert Cameron The error message tells everything, version 5.0.0 has some banned dependencies, and it did not pass the verification.

Please downgrade to the version 4.x.x. This works for me on Jira Server 8.13.4

<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>4.1.2</version>
</dependency>

Wow amazing :) At least I can package it now :) What could be reason 

<version>5.0.0</version>

 is not working. But really thanks :)

When I upload it unfortunately I get another error:

Caused by: org.osgi.framework.BundleException: Unable to resolve de.myCompany.area27.myPlugin [269](R 269.0): missing requirement [de.myCompany.area27.myPlugin [269](R 269.0)] osgi.wiring.package; (osgi.wiring.package=com.github.luben.zstd) Unresolved requirements: [[de.myCompany.area27.myPlugin [269](R 269.0)] osgi.wiring.package;

If you open the pom.xml file, you will see the <import-package>. Please add the text ;resolution:="optional" after the symbol * as in the code.

<Import-Package>
org.springframework.osgi.*;resolution:="optional",
org.eclipse.gemini.blueprint.*;resolution:="optional",
*;resolution:="optional"
</Import-Package>

wow. cool . It looks like the last line *;resolution:="optional"  made the difference . All the other was already in my pom.xml .

This is some configuration from the  jira-maven-plugin which caused all the trouble. Thanks a lot :)  

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

How we use Jira Service Management for our recruitment process! - Part 2

It is never about setting up a process and being done with it. Rather, the focus should always be on optimizing it for the best outcomes. Thus, we didn’t stop at setting up JSM for our recruitment pr...

193 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you