1. When packaging with maven in a springboot project, the following error is reported.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project aipp: Fatal error compiling: Invalid marks: -parameters -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
The reason is that I have two jdk’s, one 1.7 and one 1.8, my previous project was using 1.7 and now this springboot project is using 1.8, although the project’s Java build path libraries use 1.8 jre, but but
In Windows–>Java–>Installed JREs inside or check the 1.7 jdk, resulting in the above error when packaging, remember to change to check the 1.8
Similar Posts:
- Maven packaging failed invalid LOC header (bad signature)
- [Solved] Maven install failed (package com.google.gson does not exist)
- Could not transfer artifact org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT from/to jvnet-nexus-snapshots (https://maven.java.net/content/repositories/snapshots)
- [Solved] Could not resolve dependencies for project xxx: Could not find artifact xxx
- How to Solve compile error: package junit.framework does not exist
- Springboot 2.4 package error, missing web.xml
- [Solved] Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode)
- Error LifecyclePhaseNotFoundException, Unknown lifecycle phase “mvn”. You must specify a valid lifecycle
- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?