Re: Maven in 5 Minutes - Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
On Wed, Oct 1, 2008 at 3:46 PM, Jim Garrison <[EMAIL PROTECTED]> wrote: > 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. ... > C:\workspace\temp>mvn --version It usually means there is no pom.xml in the current directory where you're trying to build. Perhaps you need to change into the subdirectory that contains your project? -- Wendy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Maven in 5 Minutes - Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
You must first create a project: http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html Check section: Creating a Project On Wed, Oct 1, 2008 at 7:46 PM, Jim Garrison <[EMAIL PROTECTED]> wrote: > 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? > > > > > > > > -- Allan Wojcik da Silva Ubuntu User # 4491 Microsoft gives you Windows, Linux gives you the whole House ! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Maven in 5 Minutes - Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one.
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