Hi -

Let's do some debugging...



On 10/22/2010 9:44 AM, Thilo Götz wrote:
> I got the "build" projects from svn.  There are no build
> instructions in there, so I cd'ed to each subdir and did
> a mvn install.  Some of those dirs contain various poms,
> and I'm obviously not supposed to mvn install them, as
> maven informs me.  Anyway.  Success otherwise.

This step (above) should be unnecessary, but it's ok to do.

>
> On to uimaj-core/aggregate-uimaj.  Doing a mvn install there
> gives me: 
...
> [ERROR]     Non-resolvable parent POM: Could not find artifact
> org.apache.uima:parent-pom-top:pom:7
...
> What am I doing wrong?

Nothing that I can see at the moment.  
Here's some guesses:

1) Maybe you didn't build the parent-pom-top project in build?
2) Maybe your Maven .m2/settings.xml file isn't set up to refer to the Apache
maven snapshot repository?

(For # 2, I realize that the instructions for doing this are missing from the
one-time-setup - I'll fix that).
Your settings.xml file needs to have these entries to find the snapshots:

    <repositories>
        <repository>
          <id>apache-nexus-snapshot</id>
          
<url>https://repository.apache.org/content/groups/snapshots-group/</url>
        </repository>
      </repositories>

You can avoid this if you have the parent-pom-top "mvn install"-ed into your
local repo, because it contains a ref to the Apache-wide common "POM", which
contains this repo info.  But, I can see there's a "bootstrapping" issue here.

If you go the route of adding this to your settings file, I think it has to go
inside a <profile> element, something like this:

    <profile>
      <id>local-build-configuration</id>
      <repositories>
            ... etc, insert above ...
      </repositories>
    </profile>

and then you need this to "activate" that profile, in your settings.xml:

  <activeProfiles>
    <activeProfile>local-build-configuration</activeProfile>
  </activeProfiles>

Do either of these things help?  If not, let's do some more debugging ...

-Marshall
 

Reply via email to