메이븐을 build 하는 과정에서 아래와 같은 에러가 날 때가 있습니다.
The method getTextContent() is undefined for the type Node
문제 원인
자바 실행 도구에 문제가 생긴 것입니다.
이클립스에는 기본적으로 자바 실행 도구가 JRE(Java Runtime Environment) 로 연결이 되어 있습니다.
하지만 해당 환경에서는 JRE 가 아닌 JDK(Java Development Kit)를 필요로 합니다.
문제해결
properties > Java Build Path > edit > jdk로 변경
'트러블슈팅 > SPRING' 카테고리의 다른 글
[스프링] Maven build error(Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved) (2) | 2022.10.12 |
---|---|
SVN Connector 에러(SVN: '0x0400006': Validate Repository Location) (0) | 2022.10.05 |
[스프링부트]No identifier specified for entity (0) | 2022.09.27 |
[JAVA] JRE System Library 우선 순위 문제 (0) | 2022.01.25 |
[spring] STS에서 자바 버전 문제 (0) | 2022.01.25 |