【问题标题】:apache maven installApache Maven 安装
【发布时间】:2012-09-11 13:06:59
【问题描述】:

我在计算机上安装 apache maven 时遇到问题, 我不知道如何解决它,任何人都可以提出一些找出如何解决问题的方法,提前谢谢

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.172s
[INFO] Finished at: Wed Sep 19 13:00:13 MSK 2012
[INFO] Final Memory: 2M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM
in this directory (C:\Documents and Settings\Saken). 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 swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
Exception

【问题讨论】:

    标签: maven-2 maven-3


    【解决方案1】:

    Maven 需要在工作目录下配置文件pom.xml。运行cd c:/path/to/your/project/folder,然后运行mvn <needed goals>

    【讨论】:

      【解决方案2】:

      首先你需要设置MAVEN_HOME 然后set PATH=%MAVEN_HOME%\bin;%PATH% 设置JAVA_HOMEPATH=%JAVA_HOME%\bin;%PATH% 这是 maven 配置的先决条件。

      我假设你已经处理了上面的问题。

      然后创建必须有 pom.xml 的 maven 项目并进行相应的配置。 转到 pom.xml 所在的目录并运行所需的配置

      【讨论】:

        猜你喜欢
        • 2016-02-22
        • 2016-08-08
        • 2017-04-19
        • 2013-06-19
        • 2011-10-30
        • 1970-01-01
        • 1970-01-01
        • 2015-12-05
        • 1970-01-01
        相关资源
        最近更新 更多