hi,

you have to execute your maven build/deploy commands on the "my-app" folder
created when you invoke archetype:create. the reason is that your build
commands are looking for the "pom.xml" file (or project in that error).

ciao!

On 11/3/05, Balaji K M <[EMAIL PROTECTED]> wrote:
>
>   Hi,
>
>  After successful installation of Maven in the system.
>
>  I followed the instruction given in the "How do I make my first Maven
> project", then when I typed the following command
>
> mvn archetype:create -DgroupId=com.mycompany.app -DartifactId=my-app
>
>  I am getting the following error can anyone please help me how to solve
> this problem what need to be done to solve this problem. It will be grateful
> If you help in solving this problem
>
>  + Error stacktraces are turned on.
>
> [INFO] Scanning for projects...
>
> [INFO]
> -------------------------------------------------------------------------
>
> ---
>
> [INFO] Building Maven Default Project
>
> [INFO] task-segment: [archetype:create]
>
> [INFO]
> -------------------------------------------------------------------------
>
> ---
>
> [INFO]
> -------------------------------------------------------------------------
>
> ---
>
> [ERROR] BUILD ERROR
>
> [INFO]
> -------------------------------------------------------------------------
>
> ---
>
> [INFO] Cannot execute mojo: create. It requires a project, but the build
> is not
>
> using one.
> <snip>
>



--

"Programming, an artform that fights back"

Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else better
to do

Reply via email to