Hej Kåre
Well .. as an old ant and maven1 user I had to learn a little bit and
am actually glad that I had to :-)
Found out that the exception only is thrown when executing mvn install
on the root pom.xml.
Executing one of the subprojects does the trick and even builds all the
related projects as well - I kind of like mvn2 :-)
Thanks for the response
- Andreas
On 6. jan 2006, at 10.06, Kaare Nilsen wrote:
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