gpt4 book ai didi

java - 我在 spring Framework.social.facebook api 中使用 maven build 得到 Facebook Profile class not found 异常

转载 作者:行者123 更新时间:2023-12-01 11:39:13 25 4
gpt4 key购买 nike

请任何人帮助我!

使用 maven 构建步骤抛出 springframework.social.facebook.api.FacebookProfile 类未找到异常。

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project server: Compilation failure: Compilation failure:
[ERROR] /D:/Rajeev Gandhi/Project/server/src/main/java/com/axamit/core/impl/service/social/FacebookSocialServiceImpl.java:[309,9] cannot find symbol
[ERROR] symbol: class FacebookProfile
[ERROR] location: class com.axamit.core.impl.service.social.FacebookSocialServiceImpl
[ERROR] /D:/Rajeev Gandhi/Project/server/src/main/java/com/axamit/core/impl/service/social/FacebookSocialServiceImpl.java:[401,18] cannot find symbol
[ERROR] symbol: class FacebookProfile
[ERROR] location: class com.axamit.core.impl.service.social.FacebookSocialServiceImpl
[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

但是,.m2/repository jar 文件就在那里。我不知道为什么它显示以下错误。

最佳答案

FacebookProfile 在 v2.0.1 中被删除,并替换为 org.springframework.social.facebook.api.User,它似乎与 FacebookProfile 兼容(我猜只是重命名)。

关于java - 我在 spring Framework.social.facebook api 中使用 maven build 得到 Facebook Profile class not found 异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29681251/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com