You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Petra Fiedler <Pe...@web.de> on 2005/10/29 11:01:36 UTC

Problems after installing Maven 2.0

Hey,

i've installed maven 2.0 as described on the website. then i tried to 
run the example which is there described. But when i invoke "mvn 
compile" i always get the same error message:

[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 not using one.

what could be the problem?

Thanks for help!
Petra

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Problems after installing Maven 2.0

Posted by Jo...@allianz.com.au.
Wendy,

I am new to maven and i cant get this thing started, apologies if the 
solution is already posted.

I get the following error, any help will be appreciated.


C:\...\.m2>mvn install
[INFO] Scanning for projects...
[INFO] 
-------------------------------------------------------------------------
---
[INFO] Building Maven Default Project
[INFO]    task-segment: [install]
[INFO] 
-------------------------------------------------------------------------
---
[INFO] 
-------------------------------------------------------------------------
---
[ERROR] BUILD ERROR
[INFO] 
-------------------------------------------------------------------------
---
[INFO] The plugin 'org.apache.maven.plugins:maven-resources-plugin' does 
not exi
st or no valid version could be found
[INFO] 
-------------------------------------------------------------------------
---
[INFO] For more information, run Maven with the -e switch
[INFO] 
-------------------------------------------------------------------------
---
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Nov 01 09:34:36 EST 2005
[INFO] Final Memory: 1M/2M
[INFO] 
-------------------------------------------------------------------------
---

**************************************************************************
C:\.....\.m2>mvn archetype:create -DgroupId=com.mycompany.
app -DartifactId=my-app
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] 
-------------------------------------------------------------------------
---
[ERROR] BUILD ERROR
[INFO] 
-------------------------------------------------------------------------
---
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does 
not exi
st or no valid version could be found
[INFO] 
-------------------------------------------------------------------------
---
[INFO] For more information, run Maven with the -e switch
[INFO] 
-------------------------------------------------------------------------
---
[INFO] Total time: < 1 second
[INFO] Finished at: Tue Nov 01 09:28:48 EST 2005
[INFO] Final Memory: 1M/2M
[INFO] 
-------------------------------------------------------------------------
---

Regards Joe Williams.




Wendy Smoak <ws...@apache.org> 
Sent by: wsmoak@gmail.com
30/10/2005 10:06 AM
Please respond to
"Maven Users List" <us...@maven.apache.org>


To
Maven Users List <us...@maven.apache.org>
cc

Subject
Re: Problems after installing Maven 2.0






On 10/29/05, Petra Fiedler <Pe...@web.de> wrote:
>
> ---
> [INFO] Cannot execute mojo: resources. It requires a project, but the
> build is not using one.
>
> what could be the problem?



That's usually what you get if you execute 'mvn' in a directory that does
not contain a pom.xml file. Are you sure you changed into the example
directory?

--
Wendy


 


This email and any attachments has been sent by Allianz Australia Insurance Limited (ABN 15 000 122 850) and is intended solely for the addressee.  It is confidential, may contain personal information and may be subject to legal professional privilege.  Unauthorised use is strictly prohibited and may be unlawful. If you have received this by mistake, confidentiality and any legal privilege are not waived or lost and we ask that you contact the sender and delete and destroy this and any other copies.   In relation to any legal use you may make of the contents of this email, you must ensure that you comply with the Privacy Act (Cth) 1988 and you should note that the contents may be subject to copyright and therefore may not be reproduced, communicated or adapted without the express consent of the owner of the copyright.  Allianz will not be liable in connection with any data corruption, interruption, delay, computer virus or unauthorised access or amendment to the contents of this email.  If this email is a commercial electronic message and you would prefer not to receive further commercial electronic messages from Allianz, please forward a copy of this email to unsubscribe@allianz.com.au with the word unsubscribe in the subject header.

Re: Problems after installing Maven 2.0

Posted by Wendy Smoak <ws...@apache.org>.
On 10/29/05, Petra Fiedler <Pe...@web.de> wrote:
>
> ---
> [INFO] Cannot execute mojo: resources. It requires a project, but the
> build is not using one.
>
> what could be the problem?



That's usually what you get if you execute 'mvn' in a directory that does
not contain a pom.xml file. Are you sure you changed into the example
directory?

--
Wendy

Re: Problems after installing Maven 2.0

Posted by Eric Biesterfeld <ib...@gmail.com>.
Try mvn install

I don't remember ever using the compile target.

On 10/29/05, Petra Fiedler <Pe...@web.de> wrote:
> Hey,
>
> i've installed maven 2.0 as described on the website. then i tried to
> run the example which is there described. But when i invoke "mvn
> compile" i always get the same error message:
>
> [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 not using one.
>
> what could be the problem?
>
> Thanks for help!
> Petra
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org