1
0

More than 3 years have passed since last update.

デプロイ失敗

Posted at

エラー内容

   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time:  2.360 s
   [INFO] Finished at: 2020-03-15T14:42:24Z
   [INFO] ------------------------------------------------------------------------
   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project sf5-lounge: Compilation failure: Compilation failure: 
   [ERROR] /tmp/build_4af038e236977e9ba2fca9b5a329339f/src/main/java/dev/GetTweet.java:[129,43] diamond operator is not supported in -source 1.5
   [ERROR]   (use -source 7 or higher to enable diamond operator)
   [ERROR] /tmp/build_4af038e236977e9ba2fca9b5a329339f/src/main/java/dev/GetTweetTest.java:[111,44] diamond operator is not supported in -source 1.5
   [ERROR]   (use -source 7 or higher to enable diamond operator)

原因

pom.xmlに記載不備

対処

pom.xmlに以下追加

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-compiler-plugin</artifactId>
  <version>3.1</version>
  <configuration>
    <source>1.7</source>
    <target>1.7</target>
  </configuration>
</plugin>
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0