java.lang.ClassNotFoundException:com.jayway.jsonpath.Configuration $ Defaults

问题描述 投票:0回答:1

我正在尝试使用这个库Json2flat,我在我的pom中添加了这个依赖项:

<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>

当我做JFlat flatMe = new JFlat(json);我有这个例外:

java.lang.ClassNotFoundException: com.jayway.jsonpath.Configuration$Defaults

这是Github中图书馆的链接:

https://github.com/opendevl/Json2Flat

java json maven csv jsonpath
1个回答
0
投票

很可能你的'mvn clean install'失败了。我看到默认mvn repo中可用的最新版本是1.0.3,而你指定了2.2.0。尝试更新版本以反映实际情况(即1.0.3)

© www.soinside.com 2019 - 2024. All rights reserved.