PDA

View Full Version : Cannot build spring-osgi-1.1.0-m2: missing dependency


Gisbert
May 2nd, 2008, 10:04 AM
I've downloaded the spring-osgi-1.1.0-m2 Zip file only today from sourceforge. When I try to build it using this command line:

mvn -P equinox,it clean install

I get this error:

[INFO] Failed to resolve artifact.

Missing:
----------
1) net.java.dev.jets3t:jets3t:jar:0.5.1-20080115

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=net.java.dev.jets3t -DartifactId=jets3t -Dversion=0.5.1-20080115 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=net.java.dev.jets3t -DartifactId=jets3t -Dversion=0.5.1-20080115 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.springframework.osgi:spring-osgi:pom:1.1.0-m2
2) net.java.dev.jets3t:jets3t:jar:0.5.1-20080115

----------
1 required artifact is missing.

for artifact:
org.springframework.osgi:spring-osgi:pom:1.1.0-m2

from the specified remote repositories:
safehaus-repository (http://m2.safehaus.org),
...

And, yes, there is no jets3t*jar at http://m2.safehaus.org. What can I do?

bjoern.voss
May 2nd, 2008, 11:01 AM
It's the maven.springframework.org host problem again.

I could build it, if I change the repository urls in the pom to http://s3.amazonaws.com/maven.springframework.org/...

Costin Leau
May 3rd, 2008, 06:09 AM
Hi guys,

I've contacted the system admin regarding this problem and hope to get it fixed fairly soon. It's weekend though so it might take a bit of extra time.
Cheers,

mbrinkma
Oct 7th, 2008, 11:26 AM
Hi,

I just downloaded spring-osgi 1.1.2 and have the same problem:

Missing:
----------
1) net.java.dev.jets3t:jets3t:jar:0.5.1-20080115

Try downloading the file manually from the project website.

I tried to fix the problem as described, but had no success.

kind regards
Michael

Costin Leau
Oct 9th, 2008, 03:30 AM
Make sure you have
<repository>
<id>spring-external</id>
<name>Spring Portfolio External Repository</name>
<url>http://maven.springframework.org/external</url>
</repository>

present into your pom.
jets3t is a transitive dependency from the S3 transport. An upgrade has been performed in 1.2.0 which should address the problem.

mbrinkma
Oct 9th, 2008, 05:11 AM
thank you for your help. The suggested fix did not work, mvn (Version 2.0.9) tries to download the file from the repo but does not find it.

So I downloaded the file manually (which worked fine) and installed it into my local repo.