일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 오블완
- 티스토리챌린지
- 리눅스
- Linux
- 자바
- mssql
- group by
- SQL
- top
- DBMS
- 명령어
- MongoDB
- mysql
- Javascript
- Python
- 차이점
- JPA
- analytics4
- spring
- rsync
- 트랜잭션
- MariaDB
- java
- docker
- IntelliJ
- API
- git
- PostgreSQL
- oracle
- network
- Today
- Total
hanker
Spring boot - compile error (Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project "" Fatal error compiling: java.lang.NoSuchFieldError) 본문
Spring boot - compile error (Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project "" Fatal error compiling: java.lang.NoSuchFieldError)
hanker 2024. 10. 5. 14:21[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project "" Fatal error compiling: java.lang.NoSuchFieldError: Class cohttp://m.sun.tools.javac.tree.JCTree$JCImport does not have member field 'cohttp://m.sun.tools.javac.tree.JCTree qualid' -> [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
Process finished with exit code 1
Maven 프로젝트 compile시 발생하는 error 이다.
해결방법은 간단한데, pom.xml에 mave-compiler-plugin 버전을 맞춰주면 된다.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
</plugin>
</plugins>
</build>
변경 후 clean - install 시 build가 잘 되는 것을 확인할 수 있다.