caused By:java.lang.IllegalArgumentException is because the JDK is high and the project needs a low version of the problem
1. Transfer the language level of idea or idea to a version that is appropriate for your project, such as installing a 1.8 project that requires 1.6 of the environment so that the local run should be no problem (it has not been tried before) do not use Maven to pack before you add this step So idea will use your bag to make the error.
2. If you want to resolve the server escalation such errors in the Pom file add the following: So even if the bag is not a problem
Pom file riga
<build>
<finalName>xxxxxx</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<!--The following is a revision of the JDK version of our compilation, even after a high version of the JDK, the package compilation will be performed according to the version of your settings.
<!--use the Java 6 language Features--
<source>1.6</source>
<!--want the compiled classes to being compatible with JVM 1.6-
<target>1.6</target>
<!--the-encoding argument for the Java compiler. -
<encoding>UTF8</encoding>
</configuration>
</plugin>
</plugins>
</build>
Caused by:java.lang.IllegalArgumentException