2015-09-11 2 views
0

Я новичок в установке maven. Выполняя файл .bat, который устанавливает maven, я получаю следующую ошибку. Не могли бы вы проверить:Ошибка плагина компилятора Maven v3.0.3

 Launching environment tests 
    checking Java 4 compile, java 4 run 
    [ERROR] COMPILATION ERROR : 
    [ERROR] Failure executing javac, but could not parse the error: 
    The system cannot find the path specified. 

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default 
    -compile) on project devenv-validate: Compilation failure 
    [ERROR] Failure executing javac, but could not parse the error: 
    [ERROR] The system cannot find the path specified. 
    [ERROR] -> [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 arti 
    cles: 
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 
    checking Java 4 compile, java 6 run 
    [ERROR] COMPILATION ERROR : 
    [ERROR] Failure executing javac, but could not parse the error: 
    The system cannot find the path specified. 

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default 
    -compile) on project devenv-validate: Compilation failure 
    [ERROR] Failure executing javac, but could not parse the error: 
    [ERROR] The system cannot find the path specified. 
    [ERROR] -> [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 arti 
    cles: 
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 
    checking Java 6 compile, java 6 run 

    ------------------------------------------------------- 
     T E S T S 
    ------------------------------------------------------- 
    Running TestDevEnvValidator 
    Java version : Actual [1.6.0_20], expected [1.6.0_20] 
    Java compiler : Actual [6], expected [6] 
    Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec 

    Results : 

    Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 

    Press any key to continue . . . 

Может кто-нибудь, пожалуйста, взгляните и скажите, почему он терпит неудачу. Заранее спасибо.

+0

Выполнить ту же команду МВН с опцией -X и опубликовать журнал отладки. Проблема в том, что Maven не может выполнить javac, но неясно, почему, пока вы не включите ведение журнала отладки. –

+0

Я уверен, что это не «_a .bat-файл, который устанавливает maven_», который вы выполнили, но Maven ('mvn ...'). Перед запуском его с '-X' выполните' mvn -version' и добавьте результат к вашему вопросу. –

ответ

Смежные вопросы