Package util.json does not exist

Hello

I try to test invoice-cmis example with camunda 7.14 (https://github.com/camunda-consulting/code)
When I run the command mvn clean package

I got the following message :

package org.camunda.bpm.engine.impl.util.json does not exist
In javadoc I didn’t find it.
What should I change ?
Thank you for any help
B

That example is getting older, so you may bump your head a few times :slightly_smiling_face:

You could try adding the json.org dependency in the pom.xml:

<dependency>
    <groupId>org.json</groupId>
    <artifactId>json</artifactId>
    <version>20200518</version>
</dependency>

And then you’ll have to convert the org.camunda.bpm.engine.impl.util.json imports to:

import org.json.JSONArray;
import org.json.JSONObject;

I’m guessing at the time there was a reason to copy the json.org into the engine impl code that has since become unncessary. Hope it helps, but given the example hasn’t been kept up, you may run into other issues.

1 Like

Hi @jgigliotti
thanks a lpot for your help. I try and come back later.

Hello,

I make the changes you suggest and it seems working. Wait for next step !
Thank you.