[JAVA] When deploying the source used twitter4j failed

■ Deploying twitter4j failed

■ Error

[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 could not be referenced

■ Countermeasures

Added the following to pom.xml.

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

■ Reference

Introduction of Twitter4J

Recommended Posts

When deploying the source used twitter4j failed
When reading the source code
Source used to get the redirect source URL in Java
[Java] When writing the source ... A memorandum of understanding ①
Talk about going through the source path when delombok
Error when deploying EC2
Failed to create the Java Virtual Machine when installing Eclipse.
Specify the character code of the source when building with Maven