메이븐 install 시 오류나네요
- 작성자 :
- 이*순
- 작성일 :
- 2010-02-22 15:15:09
- 조회수 :
- 4,004
- 구분 :
- 개발환경
- 진행상태 :
- 완료
Q
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building test
[INFO]
[INFO] Id: egov:test:war:1.0.0
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 10 source files to C:\workspace\egov.test\target\classes
[ERROR]
Mojo:
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
FAILED for project:
egov:test:war:1.0.0
Reason:
Unable to locate the Javac Compiler in:
C:\Program Files\Java\jre1.5.0_21\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
개발환경에서 제공하는 샘플소스를 maven install 하는데 오류게 계속납니다 ㅠㅠ
그리고 settings.xml 파일은 샘플이 없나요?
[INFO] ------------------------------------------------------------------------
[INFO] Building test
[INFO]
[INFO] Id: egov:test:war:1.0.0
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 10 source files to C:\workspace\egov.test\target\classes
[ERROR]
Mojo:
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
FAILED for project:
egov:test:war:1.0.0
Reason:
Unable to locate the Javac Compiler in:
C:\Program Files\Java\jre1.5.0_21\..\lib\tools.jar
Please ensure you are using JDK 1.4 or above and
not a JRE (the com.sun.tools.javac.Main class is required).
In most cases you can change the location of your Java
installation by setting the JAVA_HOME environment variable.
개발환경에서 제공하는 샘플소스를 maven install 하는데 오류게 계속납니다 ㅠㅠ
그리고 settings.xml 파일은 샘플이 없나요?
A
안녕하세요.. 이윤순님..
eclipse의 해당 project를 선택하신 후에.. 오른쪽 properties 메뉴 선택 후..
"Java Build Path"의 Libraries 항목(tab)에서 JRE 설정을 다시 잡아주시기 바랍니다.
현재 JRE 또는 JDK 설정이 맞지 않는 것 같습니다.
그럼.. 즐거운 하루되십시오.
감사합니다.
eclipse의 해당 project를 선택하신 후에.. 오른쪽 properties 메뉴 선택 후..
"Java Build Path"의 Libraries 항목(tab)에서 JRE 설정을 다시 잡아주시기 바랍니다.
현재 JRE 또는 JDK 설정이 맞지 않는 것 같습니다.
그럼.. 즐거운 하루되십시오.
감사합니다.