Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,410,596
Community Members
 
Community Events
169
Community Groups

Jira Swagger codegen compilation failure

Hello,

I am actually doing a rest api client for Jira for integration tools.

Firstly I was going to use jira-rest-java-client-api but it cannot manage project and user...

I found many discussions on the Jira swagger but when I try to generate the client code with swagger-codegen-maven-plugin, I got a compilation error with Java 11 :

FieldValueClause.java:[45,5] as of release 9, '_' is a keyword, and may not be used as an identifier

 

It looks like the swagger model is not working with java 11, so I changed my compiler to Java 8 but I got an other compilation error :

IssueTypeSchemesApi.java:[52,48] cannot find symbol
[ERROR] symbol: class IssueTypeIDs
[ERROR] location: class io.swagger.client.api.IssueTypeSchemesApi

 

I saw the class IssueTypeIDs has wrong name declaration, the file is named IssueTypeIDs but the class name is IssueTypeIds.

Related to this error report during compilation :

bad source file: C:\...\IssueTypeIDs.java
file does not contain class io.swagger.client.model.IssueTypeIDs
Please remove or make sure it appears in the correct subdirectory of the sourcepath.

 

Do you know a solution to this? I saw this tutorial : https://blog.developer.atlassian.com/update-to-jira-clouds-swagger-openapi-docs/ is using codegen directly but I prefer to use the maven plugin to generate the client code during compilation if possible.

 

My environment :

swagger json : swagger-v3.v3.json 

codegen version : swagger-codegen-maven-plugin 3.0.25 (tries with 3.0.24 and 3.0.20)

Java 8.

 

Thanks in advance.

 

Mathieu DELROCQ

1 comment

Ben Kelley Atlassian Team May 16, 2021

This should be fixed now. Try downloading a new copy of the spec.

Like Mathieu D. likes this

Comment

Log in or Sign up to comment