mvn install from blueprint directory gotcha (was: Re: Trying to commit parent pom structure)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

mvn install from blueprint directory gotcha (was: Re: Trying to commit parent pom structure)

Jeremy Hughes
Just thought I would mention this in case anyone else hits the same problem:

If you have cleared our your .m2 local repository directory and you
run mvn install from aries/trunk/blueprint then you'll get a failure
like this:

$ mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.aries
ArtifactId: java5-parent
Version: 1.0.0-incubating-SNAPSHOT

Reason: Unable to download the artifact from any repository

  org.apache.aries:java5-parent:pom:1.0.0-incubating-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  servicemix.m2 (http://svn.apache.org/repos/asf/servicemix/m2-repo)

This is because the java5-parent artifact is provided by the it's the
aries/trunk/parent module which of course hasn't been run and so isn't
in the local maven repository (~/.m2/repository dir)

To solve this either run mvn install in aries/trunk/parent first or
just run mvn install in aries/trunk.

Cheers,
Jeremy

2009/9/30 David Bosschaert <[hidden email]>:

> Hi all,
>
> I've just committed the parent pom structure and updated the Blueprint
> component to use it.
> You can now run 'mvn install' from the Aries trunk to build everything
> (which currently is just blueprint :).
>
> I guess this would be enough to get a Hudson build going... Anyone with the
> right credentials there fancy setting it up?
>
> Cheers,
>
> David
>