You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Broekstra, Jeen" <je...@wur.nl> on 2010/08/23 15:50:15 UTC

Resolving dependencies of type pom

Hi there,

I'm running into trouble trying to configure my project, which depends on a maven artifact living somewhere else. That other artifact has a (transitive) dependency of type 'pom', with the scope set to 'import'. 

For some reason, however, when I only add a direct dependency to the artifact I need, it fails to correctly resolve the transitive pom-type dependency. However, when I explicitly add the pom-type dependency to my _own_ pom, it seems to work. But unless I misunderstand something, it shouldn't be necessary to include such a transitive dependency in my own pom.

To be more specific, my project has a dependency as follows:

	<dependency>
	    <groupId>org.openrdf.sesame</groupId>
	    <artifactId>sesame-runtime</artifactId>
	    <version>2.3.2</version>
	</dependency>

This artifact can be found at:
 http://repo.aduna-software.org/maven2/releases/org/openrdf/sesame/sesame-runtime/2.3.2/ 

The pom of that particular artifact inherits some dependencies from an (indirect) parent pom: 
 http://repo.aduna-software.org/maven2/releases/org/openrdf/sesame/sesame/2.3.2/sesame-2.3.2.pom 

In that pom the following dependency is declared:

 	<dependency>
		<groupId>info.aduna.appbase</groupId>
		<artifactId>aduna-appbase</artifactId>
		<version>${aduna.appbase.version}</version>
		<type>pom</type>
		<scope>import</scope>
	</dependency>

This pom-type artifact lives in the same maven-repository.

However, when running a maven target (e.g. eclipse:eclipse) on my project, I get the following error:

[ERROR] An error occurred during dependency resolution of the following artifact:
    org.openrdf.sesame:sesame-runtime:2.3.2
Caused by: Unable to get dependency information: Unable to read the metadata file for artifact 'org.
openrdf.sesame:sesame-runtime:jar': POM 'info.aduna.appbase:aduna-appbase' not found in repository:
Unable to download the artifact from any repository

  info.aduna.appbase:aduna-appbase:pom:3.9.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project info.aduna.appbase:aduna-appbase
  org.openrdf.sesame:sesame-runtime:jar:2.3.2

from the specified remote repositories:
  aperture-repo (http://aperture.sourceforge.net/maven),
  central (http://repo1.maven.org/maven2),
  aduna-opensource.releases (http://repo.aduna-software.org/maven2/releases)

Sofar, the only way I have found to get rid of this error is to explicitly add a dependency on the aduna-appbase artifact to my own project. But I don't understand why that is necesary.

Anybody got any idea why this is happening? Is there some mistake in the poms in the remote repository, or in my maven settings? Is this a bug in maven? Or is this normal?

Yours in bafflement,

Jeen Broekstra

PS I am running a maven 2.2.1 client on Windows, using a Cygwin bash command shell. 

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