[JAVA] Twitter4j utilisé la source a échoué après le déploiement

■ J'ai échoué lors du déploiement de twitter4j

■ Erreur

[INFO] -------------------------------------------------------------
   [ERROR] COMPILATION ERROR : 
   [INFO] -------------------------------------------------------------
   [ERROR] /tmp/build_a4ed9f5ff44d78cc39ef296374348ae6/src/main/java/dev/GetTweetTest.java:[9,17] package twitter4j does not exist
   [ERROR] /tmp/build_a4ed9f5ff44d78cc39ef296374348ae6/src/main/java/dev/GetTweetTest.java:[10,17] package twitter4j does not exist
   [ERROR] /tmp/build_a4ed9f5ff44d78cc39ef296374348ae6/src/main/java/dev/GetTweetTest.java:[11,17] package twitter4j does not exist
   [ERROR] /tmp/build_a4ed9f5ff44d78cc39ef296374348ae6/src/main/java/dev/GetTweetTest.java:[12,17] package twitter4j does not exist
   [ERROR] /tmp/build_a4ed9f5ff44d78cc39ef296374348ae6/src/main/java/dev/GetTweetTest.java:[13,17] package twitter4j does not exist
   [ERROR] /tmp/build_a4ed9f5ff44d78cc39ef296374348ae6/src/main/java/dev/GetTweetTest.java:[14,17] package twitter4j does not exist
   [ERROR] /tmp/build_a4ed9f5ff44d78cc39ef296374348ae6/src/main/java/dev/GetTweetTest.java:[15,22] package twitter4j.conf does not exist
   [ERROR] /tmp/build_a4ed9f5ff44d78cc39ef296374348ae6/src/main/java/dev/GetTweet.java:[16,17] package twitter4j does not exist
   [ERROR] /tmp/build_a4ed9f5ff44d78cc39ef296374348ae6/src/main/java/dev/GetTweet.java:[17,17] package twitter4j does not exist
   [ERROR] /tmp/build_a4ed9f5ff44d78cc39ef296374348ae6/src/main/java/dev/GetTweet.java:[18,17] package twitter4j does not exist
   [ERROR] /tmp/build_a4ed9f5ff44d78cc39ef296374348ae6/src/main/java/dev/GetTweet.java:[19,17] package twitter4j does not exist
   [ERROR] /tmp/build_a4ed9f5ff44d78cc39ef296374348ae6/src/main/java/dev/GetTweet.java:[20,17] package twitter4j does not exist
   [ERROR] /tmp/build_a4ed9f5ff44d78cc39ef296374348ae6/src/main/java/dev/GetTweet.java:[21,17] package twitter4j does not exist
   [ERROR]/tmp/build_a4ed9f5ff44d78cc39ef296374348ae6/src/main/java/dev/GetTweet.java:[22,22] package twitter4j.conf does not exist

■ Cause

Maven ne pouvait pas voir

■ Contre-mesures

Ajout de ce qui suit à pom.xml.

<dependency>
    <groupId>org.twitter4j</groupId>
    <artifactId>twitter4j-stream</artifactId>
    <version>4.0.6</version>
</dependency>

■ Référence

Introduction de Twitter4J

Recommended Posts

Twitter4j utilisé la source a échoué après le déploiement
Lors de la lecture du code source
Source utilisée pour obtenir l'URL de la source de redirection en Java
[Java] Lors de l'écriture du source ... Mémorandum ①
Parlez de passer par le chemin source lorsque delombok
Erreur lors du déploiement d'EC2
Échec de la création de la machine virtuelle Java lors de l'installation d'Eclipse.
Spécifiez le code de caractère de la source lors de la construction avec Maven