JDK,
Maven,
maven-apt-plugin,
QueryDSL,
You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse build make sure you run eclipse under JDK as well
QueryDSL 설정 시 Maven APT Plugin을 이클립스에서 사용 시 이슈가 있어서 아래와 같은 오류 메시지를 확인할 수 있다.
You need to run build with JDK or have tools.jar on the classpath.If this occures during eclipse build make sure you run eclipse under JDK as well
첫 번째 해결 방법으로는 커맨드 라인에서 직접 메이븐 빌드를 수행하는 것
mvn generate-sources
두 번째 해결 방법으로는 이클립스 설정 파일에 vm을 직접 설정해주는 것
이클립스가 위치한 폴더의 eclipse.ini (Spring Tool Suite의 경우 sts.ini)에서 아래와 같이 -vmargs 옵션의 위 쪽에 -vm 옵션을 추가해준다.
-vm
C:\Program Files\Java\jdk1.8.0_45\bin\javaw.exe
...
-vmargs