• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

cmd에서는 spring-boot가 정상적으로 실행되는데 IntelliJ에서는 실행되지 않습니다.

22.06.20 09:00 작성 조회수 295

0

환경설정시 원 강의는 자바 8 이었지만
현재 깃허브 레포지토리는 자바 11 기반으로 만들어져 있어
자바 11로 환경변수를 설정하였고 진행하였습니다.
 
그리고 cmd 에서 spring-boot:run 을 이용하면 정상적으로 서버가 켜지고 페이지가 잘 작동함을 확인하였습니다.
 
그러나 intelliJ에서 spring-boot:run을 실행시 아래와 같은 오류가 발생합니다.
[INFO] Finished at: 2022-06-20T08:51:52+09:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project spring-petclinic: Error reading old mojo status C:\Users\sh\Desktop\spring-petclinic-main\target\maven-status\maven-compiler-plugin\compile\default-compile\inputFiles.lst: Input length = 1 -> [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
 
intelli J project structure 에서 설정역시 sdk는 11 language도 11로
모듈도 11버전으로 다 맞춰놨는데 왜 저런 오류가 뜨는것일까요?
old mojo는 무슨 오류인가요?
아래의 링크도 확인해봤지만 플러그인의 오류다 같은 말만 나오고 무슨 말인지 잘 모르겠네요 ㅜㅜ
 
물론 실습 자체는 CMD로 확인하면 될거라 생각하지만 어느 환경설정때문에 잘 안되는것인지 의아합니다.

답변 1

답변을 작성해보세요.

0

안녕하세요. mvn compile을 했을 때는 어떤 에러가 보이는지 확인해 주실 수 있을까요?