Maven install報MojoFailureException

[ERROR] 位置: 類 com.spark.test.JavaDirectKafkaWordCount
[ERROR] /I:/TrueTimeControlOnSparkByJava/src/main/java/com/spark/test/JavaDirectKafkaWordCount.java:[31,13] 找不到符號
[ERROR] 符號: 類 JavaStreamingContext
[ERROR] 位置: 類 com.spark.test.JavaDirectKafkaWordCount
[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
 
解決辦法:
工程右鍵Maven---------》 Update Project
 
工程右鍵Run As ---------》Maven install
相關文章
相關標籤/搜索