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

Does work swagger-confluence-cli-all-2.2-RELEASE.jar with Confluence server 6.13.1+ ?

Does work swagger-confluence-cli-all-2.2-RELEASE.jar with Confluence server 6.13.1+ ?

I'm trying execute
java -jar swagger-confluence-cli-all-2.2-RELEASE.jar -u "http://localhost:8090/rest/api/" -b "....." -g "true" -p "[CLI]" -i "true" -k "..." -s "20190911.yaml" -t "Swagger example" -m "single" -a "....."

but

2019-09-11 15:33:48.300 INFO - [main] n.s.s.c.s.i.XHtmlToConfluenceServiceImpl
: Posting XHTML to Confluence...
Exception in thread "main" org.springframework.web.client.HttpClientErrorExcepti
on: 400 null
at org.springframework.web.client.DefaultResponseErrorHandler.handleErro
r(DefaultResponseErrorHandler.java:91)
at org.springframework.web.client.RestTemplate.handleResponse(RestTempla
te.java:641)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.ja
va:597)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java
:572)
at org.springframework.web.client.RestTemplate.exchange(RestTemplate.jav
a:493)
at net.slkdev.swagger.confluence.service.impl.XHtmlToConfluenceServiceIm
pl.addExistingPageData(XHtmlToConfluenceServiceImpl.java:443)
at net.slkdev.swagger.confluence.service.impl.XHtmlToConfluenceServiceIm
pl.postXHtmlToConfluence(XHtmlToConfluenceServiceImpl.java:108)
at net.slkdev.swagger.confluence.service.impl.SwaggerToConfluenceService
Impl.convertSwaggerToConfluence(SwaggerToConfluenceServiceImpl.java:75)
at net.slkdev.swagger.confluence.cli.SwaggerConfluence.runCLI(SwaggerCon
fluence.java:63)
at net.slkdev.swagger.confluence.cli.SwaggerConfluence.main(SwaggerConfl
uence.java:39)

 

1 answer

1 accepted

0 votes
Answer accepted

Sorry, it was my mistake: parameter -p "[CLI]" should be without brackets. Like this: -p "CLI"

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

397 views 11 11
Join discussion

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