You have set your %JAVA_HOME
to jdk 1.7, but you are trying to compile using 1.8. Install jdk 1.8 and make sure your %JAVA_HOME
points to that or drop the target release to 1.7.
invalid target release: 1.8
The target release refers to the jdk version.
More Related Contents:
- How do I tell Maven to use the latest version of a dependency?
- How do you specify the Java compiler version in a pom.xml file?
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- Make Maven to copy dependencies into target/lib
- Eclipse can’t find XML related classes after switching build path to JDK 10
- How to set specific Java version to Maven?
- How do I add a Maven dependency in Eclipse?
- The method getDispatcherType() is undefined for the type HttpServletRequest
- leiningen – how to add dependencies for local jars?
- Create a Maven project in Eclipse complains “Could not resolve archetype” [duplicate]
- JAVA_HOME should point to a JDK not a JRE
- Ambari 2.7.5 installation failure on CentOS 7
- Maven project with JavaFX (with jar file in `lib`)
- Maven build Compilation error : Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Maven
- Maven BOM [Bill Of Materials] Dependency
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path [duplicate]
- Is there anyway to exclude artifacts inherited from a parent POM?
- NoSuchMethodError on startup in Java Jersey app
- Maven 3.3.1 ECLIPSE: -Dmaven.multiModuleProjectDirectory system propery is not set
- Running a specific Maven plugin goal from the command line in a sub-module of a multi-module reactor project
- Creating Two Executable Jars Using maven-assembly-plugin
- Maven adding mainClass in pom.xml with the right folder path
- Allure report: nothing shown in Chrome
- How to make gradle generate a valid pom.xml file at the root of a project for maven users?
- RESTEasy Client + NoSuchMethodError
- “java.lang.OutOfMemoryError: PermGen space” in Maven build [duplicate]
- get rid of POM not found warning for org.eclipse.m2e:lifecycle-mapping
- Difference between the maven-assembly-plugin, maven-jar-plugin and maven-shade-plugin?
- Proper fix for Java 10 complaining about illegal reflection access by jaxb-impl 2.3.0?
- Maven- No plugin found for prefix ‘spring-boot’ in the current project and in the plugin groups