I just downloaded 2.0.9 and am trying the procedure given in the "Maven
in 5 minutes" web page but it fails with the message

 

Cannot execute mojo: resources. It requires a project with an existing
pom.xml, but the build is not using one.

 

I searched the archives and found a couple of "works for me" responses
in the 2.0.2 timeframe.

 

JDK=1.5.0_12

 

C:\workspace\temp>mvn --version

Maven version: 2.0.9

Java version: 1.5.0_12

OS name: "windows 2003" version: "5.2" arch: "x86" Family: "windows"

 

C:\workspace\temp>mvn package

[INFO] Scanning for projects...

[INFO]
------------------------------------------------------------------------

[INFO] Building Maven Default Project

[INFO]    task-segment: [package]

[INFO]
------------------------------------------------------------------------

[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: 1 second

[INFO] Finished at: Wed Oct 01 17:42:39 CDT 2008

[INFO] Final Memory: 2M/5M

[INFO]
------------------------------------------------------------------------

 

Environment:

 

JAVA_HOME=C:\Java\jdk1.5.0_12

M2=c:\workspace\svn\trunk\vendor\maven\bin

M2_HOME=c:\workspace\svn\trunk\vendor\maven

Path=C:\Java\jdk1.5.0_12\bin;c:\workspace\svn\trunk\vendor\maven\bin;C:\
Program Files\Windows Resource
Kits\Tools\;D:\oracle\product\10.2.0\db\bin;d:\oracle\product\10.2.0\db_
1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL
Server\90\Tools\binn\;C:\Program Files\Microsoft SQL
Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL
Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft
Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Program
Files\TortoiseSVN\bin;C:\Program Files\smartmontools\bin;c:\Program
Files\WinZip

 

Suggestions?


http://www.troux.com/email
 
 

 
 

Reply via email to