Deployment failed

error contents

   [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)

Cause

Incomplete description in pom.xml

Coping

Add the following to 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>

Recommended Posts

Deployment failed
Deployment error
Automate deployment