Peter
Peter

Reputation: 173

Twitter4j via maven - classes are missing

I have integrated twitter4j into my project via maven, using the depndencies / repositories as shown on the twitter4j homepage :

    <dependency>
     <groupId>org.twitter4j</groupId>
     <artifactId>twitter4j-core</artifactId>
     <version>[2.2,)</version>
    </dependency>
..
    <repository>
     <id>twitter4j.org</id>
     <name>twitter4j.org Repository</name>
     <url>http://twitter4j.org/maven2</url>
     <releases>
        <enabled>true</enabled>
     </releases>
     <snapshots>
        <enabled>true</enabled>
     </snapshots>
    </repository>

Unfortunately, not all resourcesfrom the twitter4j core project are available in my project. For example, the interface "StatusListener" is not. Can maybe someone give me a hint what is wrong?

Upvotes: 4

Views: 946

Answers (1)

matts
matts

Reputation: 6897

Looks like the twitter4j.StatusListener class moved to the twitter4j-stream artifact in version 2.2.0. Add it to your dependency list.

Upvotes: 5

Related Questions