编译时报错 Error:(17, 19) java: 程序包net.sf.json不存在

提问 未结 3 75
Ericke Zhang
Ericke Zhang 2019-06-17
悬赏:20积分
版本:renren-security 4.0.0 浏览器:
img[//cdn.renren.io/7b6f3201906171037278183.jpg]
回帖
  • 重新拉取一下jar包试试
    0 回复
  • Ericke Zhang
    2019-06-20
    @Mark 还是这样的问题 [INFO] renren-security .................................... SUCCESS [ 5.318 s] [INFO] renren-common ...................................... SUCCESS [ 52.852 s] [INFO] renren-dynamic-datasource .......................... SUCCESS [ 6.862 s] [INFO] renren-admin ....................................... FAILURE [01:01 min] [INFO] renren-api ......................................... SKIPPED [INFO] renren-generator ................................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:08 min [INFO] Finished at: 2019-06-20T22:00:27+08:00 [INFO] Final Memory: 57M/361M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project renren-admin: Compilation failure: Compilation failure: [ERROR] ȡD:\.m2\repository\net\sf\json-lib\json-lib\2.4\json-lib-2.4-jdk15.jarʱ; error in opening zip file [ERROR] ȡD:\.m2\repository\net\sf\json-lib\json-lib\2.4\json-lib-2.4-jdk15.jarʱ; error in opening zip file [ERROR] /D:/workspaces/renren-security/renren-admin/src/main/java/io/renren/modules/oss/cloud/QcloudCloudStorageService.java:[17,19] net.sf.json [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :renren-admin
    0 回复
  • @ErickeZhang D:\.m2\repository\net\sf\json-lib\json-lib 这个目录删除重试
    0 回复