安装Maven 时错误!

在安装 Maven的时候出现以下错误

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16 seconds
[INFO] Finished at: Wed Feb 15 08:11:59 CST 2012
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------


Google以下发现了解决办法


You're right: I had to cd into the directory:
- svn co https://svn.apache.org/repos/asf/incubator/nmaven/trunk nmaven
- cd nmaven
- mvn install

I forgot to cd. For a newbie it's not obvious though, I'd expected that on the webpage. Thanks for your quick help!

While looking around, some odds and ends attracted my attention:
- On several pages, for instance the page http://incubator.apache.org/nmaven, the link 'nmaven' on the upper right links to the incubator home instead of the nmaven home page.
- The 0.16 page is a little bit hidden, although it contains more information: on the home page the links 'getting started' and 'features' link to the 0.15 version. Maybe that is on purpose.
- On the page 'Source Repository' of the 0.15 version, the links of the svn web access do not work.
http://svn.apache.org/viewvc/incubator/nmaven/trunk/maven-site/maven-site-versioned should probably shortened to http://svn.apache.org/viewvc/incubator/nmaven/trunk/.

Matthias


你可能感兴趣的:(maven,SVN,Build,features)