Cannot use JRJC in Confluence plug-in

I’ve got a question on how to use the JRJC rest interface to connect to a Jira instance through a Confluence plug-in. What I don’t want to do is, to call the REST-API of Jira through Jersey etc. libraries, because there has already been a JRJC library for Java and therefore don’t develop it again.

My problem is, that I didn’t found any example on how to use this library WITHIN a Confluence plug-in and I am getting many error messages with missing dependencies.

Can you help me here?

Thank you in advance.