I'm trying to use this library Json2flat, i've add in my pom this dependencies :
<dependency>
<groupId>com.github.opendevl</groupId>
<artifactId>json2flat</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>2.2.0</version><!--INO-MVN-MAN-VER$-->
</dependency>
When i do JFlat flatMe = new JFlat(json);
i got this exception :
java.lang.ClassNotFoundException: com.jayway.jsonpath.Configuration$Defaults
here is the link of the librairy in Github :
Most likely your 'mvn clean install' is failed. I see the latest version available in default mvn repo is 1.0.3 while you have specified 2.2.0. Try updating the version to reflect the actuals (ie, 1.0.3)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.