I thought I read somewhere that -fn makes maven look recursively for pom
files? Regardling the mojo-5 issue, that's just a parent pom so there is
no jar to go with it. 

-----Original Message-----
From: Kaare Nilsen [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 06, 2006 4:06 AM
To: [email protected]
Subject: Re: [mojo-user] BUILD ERROR: Cannot execute mojo

Well.. this is more a maven2 thing and not a mojo, but i see from the
errormessages why you posted here ;)

Well.. the thing is that in the path from where you type mvn install,
you would need a pom.xml so  /svn/magnolia should be a maven 2 project
to make this work.

/Kaare

On 06/01/06, Andreas Amstutz <[EMAIL PROTECTED]> wrote:
> Hi all
>
> Installing mojo to the maven repository does not seem to be complete 
> on my machine.
> ...
> svn co svn://svn.codehaus.org/mojo/scm/trunk/mojo
> cd mojo
> mvn -fn install
>
> after all that, I'm looking for jar generated for this project, but 
> there is none !
>
> ls -R ~/.m2/repository/org/codehaus/mojo/mojo/
> /Users/andreas/.m2/repository/org/codehaus/mojo/mojo:
> 5  maven-metadata-local.xml
>
> /Users/andreas/.m2/repository/org/codehaus/mojo/mojo/5:
> mojo-5.pom
>
> I expected to finde a mojo-5.jar in the same location as the pom file,

> but maybe I am wrong!?
>
> I am trying to install another oss which requires mojo afaict due to 
> the following exception:
>
> /svn/magnolia] andreas% mvn -e install ...
> ...
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO]
> ----------------------------------------------------------------------
> --
> ----
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [install]
> [INFO]
> ----------------------------------------------------------------------
> --
> ----
> [INFO]
> ----------------------------------------------------------------------
> --
> ----
> [ERROR] BUILD ERROR
> [INFO]
> ----------------------------------------------------------------------
> --
> ----
> [INFO] Cannot execute mojo: resources. It requires a project, but the 
> build is not using one.
> [INFO]
> ----------------------------------------------------------------------
> --
> ----
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute
> mojo: resources. It requires a project, but the build is not using
one.
>
> My env:
> Maven version: 2.0.1
> java version "1.4.2_09"
> Mac OSX 10.3.9
>
> - Andreas
>
>


Reply via email to