请任何人帮助我!
使用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文件就在那里。我不知道为什么它显示以下错误。
答案 0 :(得分:1)
FacebookProfile已在v2.0.1中删除,并替换为org.springframework.social.facebook.api.User,它似乎与FacebookProfile兼容(我想只是重命名)。