You should create the project first by executing this command:
mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
then cd to the created project (cd my_app) and execute: mvn compile
Sean Hennessy wrote:
mvn site cannot find the pom.xml "It requires a project, but the build
is not using one."
cd to your <artifact-id> folder where the pom.xml resides and try
again..
if you used my_app as the artifact-id then
cd my_app
mvn site
-----Original Message-----
From: HappyGoLucky [mailto:[EMAIL PROTECTED]
Sent: Friday, November 18, 2005 8:20 AM
To: users@maven.apache.org
Subject: Maven 2.0 installation
Greetings,
I have installed maven 2.0, as per the installation
document. I have created the project as mentioned in
"getting started guide". Maven fails when I issues mvn
compile command with the following error
C:\mvntest>mvn compile
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Building Maven Default Project
[INFO] task-segment: [compile]
[INFO]
------------------------------------------------------------------------
-
---
[INFO]
------------------------------------------------------------------------
-
---
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Cannot execute mojo: resources. It requires a
project, but the build is n
ot using one.
[INFO]
------------------------------------------------------------------------
-
---
[INFO] For more information, run Maven with the -e
switch
[INFO]
------------------------------------------------------------------------
-
---
[INFO] Total time: 1 second
[INFO] Finished at: Fri Nov 18 11:18:22 EST 2005
[INFO] Final Memory: 1M/3M
[INFO]
------------------------------------------------------------------------
-
---
Could anyone guide me?
Thanks in advance,
RJ
__________________________________
Yahoo! Mail - PC Magazine Editors' Choice 2005
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]