09
Апр
2016

Не запускается mvn compile, mvn install

Пробую собрать проект с помощью Maven, уже много источников прочла, не могу понять в чем проблема. Каждый раз, после ввода в консоль mvn verify, mvn compile, mvn install вижу следующий результат:

    C:\Users\1>mvn -version
    Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 
    Maven home: C:\Program Files\Java\apache-maven-3.3.9
    Java version: 1.8.0_51, vendor: Oracle Corporation
    Java home: C:\Program Files\Java\jdk1.8.0_51\jre


    C:\Users\1>mvn verify
    [INFO] Scanning for projects...
    [INFO] -----------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] -----------------------------------------------------------------
    [INFO] Total time: 0.113 s
    [INFO] Finished at: 2016-04-09T20:22:41+03:00
    [INFO] Final Memory: 5M/77M
    [INFO] ---------------------------------------------------------------- 
    [ERROR] The goal you specified requires a project to execute but there
    is no POM  in this directory (C:\Users\1). Please verify you
    invoked Maven from the  correct directory. -> [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/MissingProjectException

Источник: https://ru.stackoverflow.com/questions/511496/%D0%9D%D0%B5-%D0%B7%D0%B0%D0%BF%D1%83%D1%81%D0%BA%D0%B0%D0%B5%D1%82%D1%81%D1%8F-mvn-compile-mvn-install

Share

Тебе может это понравится...