我在springframework.social.facebook api中使用maven build获得了Facebook Profile类未找到的异常

时间:2015-04-16 16:52:00

标签: java eclipse facebook spring maven

请任何人帮助我!

使用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文件就在那里。我不知道为什么它显示以下错误。

1 个答案:

答案 0 :(得分:1)

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