You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sebastian Krebs <kr...@quipsy.de> on 2006/10/26 11:30:38 UTC

[M2] Maven searches jars in wrong repository

Hi,

 

I've the following problem:

 

I have two repositories, one for releases and one for snapshots ( snapshotRepository ) specified in a parent-pom.

 

Deploying my artefact works fine. This means if I have a version like this <version>1.0</version> the artefact will be pumped into my "normal" repo.

And if I have one like this <version>1.0-SNAPSHOT</version> it will be stored in my snapshotRepository.

So far so good.

 

Next step: A second project of mine needs the above named artefact. (dependeny)

 

This dependency looks like

<dependency>

            ...

            <version>[0.8,)</version> 

            ...

</dependency>

 

This means get an version greater than 0.8.

 

I get following error while compile this second project:

 

Downloading: http://{myServer}/internal/{groupId}/{artifactId}/1.0/{artifactId}-1.0.pom

Downloading: http://{myServer}/snapshot/{groupId}/{artifactId}/1.0/{artifactId}-1.0.jar

 

It looks like Maven searches the pom on my internal repo and the belonging  jar on the snapshotRepo.

And for sure, Maven can't find the jar in the snapshotRepository.

 

Does anyone know something about this issue?

 

 

Mit freundlichem Gruß / Best Regards

 

Sebastian Krebs

 

QUIPSY QUALITY GmbH

Stuttgarter Strasse 23

D-75179 Pforzheim

 

s.krebs@quipsy.de