본문 바로가기

Dev. Tool/Maven

메이븐 빌드 - Fatal error compiling: tools.jar not found

Goals 에서 clean package -Plocal 했는데,

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project test: Fatal error compiling: tools.jar not found: C:\Program Files\Java\jre7\..\lib\tools.jar -> [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


에러가 난다.


tools.jar을 추가하자.




'Dev. Tool > Maven' 카테고리의 다른 글

error configuring application listener of class xxx  (0) 2018.05.14
No compiler is provided in this environment  (0) 2018.05.14