控制檯錯誤
未能就項目streamingTwitter執行目標:無法解析項目com.mycompany依賴關係: streamingTwitter:jar:1.0-SNAPSHOT:下列工件無法解析:org.scribe:scribe:jar:1.3.4,org.spark:spark:jar:0.9.9.4-SNAPSHOT:找不到org.scribe:scribe :jar:1.3.4在http://maven.springframework.org/release是在本地資源庫中被緩存,分辨率將不被重試,直到彈簧行家釋放的更新間隔已過或更新被迫 - > [幫助1]
的pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>streamingTwitter</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<properties>
<project.build.sourceEncoding>UTF- 8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<repositories>
<repository>
<id>spring-maven-release</id>
<name>Spring Maven Release Repository</name>
<url>http://maven.springframework.org/release</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.github.scribejava</groupId>
<artifactId>scribejava-apis</artifactId>
<version>2.4.0</version>
</dependency>
<dependency>
<groupId>org.scribe</groupId>
<artifactId>scribe</artifactId>
<version>1.3.4</version>
</dependency>
<dependency>
<groupId>org.spark</groupId>
<artifactId>spark</artifactId>
<version>0.9.9.4-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
我在關注本教程 http://www.jeffkuchta.com/Tutorial/2013/02/21/java--twitter-public-streams-with-support-from-heroku-spark--oauth/。 感謝您的任何幫助,浪費了很多時間纔來到這裏。
Twitter示例幫助了我.https://github.com/scribejava/scribejava/blob/master/scribejava-apis/src/test/java/com/github/scribejava/apis/examples/TwitterExample.java – naan
而請如果您認爲它顯示了一些研究並可以幫助其他人,請將問題標記出來 – naan