Hi,
I’m using a maven project with the bnd-maven-plugin, and in my test project, I’m then using from my integration-test.bndrun file the aQute.bnd.repository.osgi.OSGiRepository plugin: it allows me to reuse an existing remote OBR.
here is my integration-test.bndrun file:
-plugin.1.OBR: aQute.bnd.repository.osgi.OSGiRepository; \
name=OBR; \
poll.time=-1; \
max.stale=-1; \
cache=${.}/target/cache; \
locations=https://.../repository/obr.xml
-runtrace: true
-standalone: true
-resolve.effective: resolve
Test-Cases: ${classes;CONCRETE;PUBLIC;NAMED;*Test}
Import-Package: org.osgi.framework.*;version="[1.8,2)",*
-runsystempackages: sun.reflect,\
com.sun.nio.sctp,sun.net.util,sun.security.action,com.sun.net.httpserver,sun.misc,\
com.sun.org.apache.xerces.internal.jaxp,sun.management,com.sun.management,\
sun.net.spi.nameservice,javax.xml.bind;version=2.3,javax.xml.bind.annotation;version=2.3,javax.xml.bind.annotation.adapters;version=2.3
-runfw: org.apache.felix.framework
-runee: JavaSE-1.8
-runsystemcapabilities: ${native_capability}
-runbundles: \
org.apache.servicemix.bundles.junit;version='[4.12.0,4.12.1)',\
...
now, when the OSGiRepository is using a local obr URL, like file://…/ , then the mvn clean install command works fine.
but when I configure the OSGiRepository with a remote OBR like:
-plugin.1.OBR: aQute.bnd.repository.osgi.OSGiRepository;
name=OBR;
poll.time=-1;
max.stale=-1;
cache=${.}/target/cache;
locations=https://…/repository/obr.xml
then when running my tests all downloads are failing with for example the following errors:
[ERROR] Error : Bundle file "java.io.IOException: **Invalid content checksum** 9B316CBEBAB5E9CE3AB9DB32B86E9E56306E59E4763944468AE1B9BFC356A040 for https:/.../repository/com/nokia/casr/com.nokia.as.util.gogoclient/1.0.2/com.nokia.as.util.gogoclient-1.0.2.jar; expected d6e1f97d43a3f31df67b445231b05946e3cf6f8aff9ee5d5197ab5a65698c445: null" does no
t exist, given error is java.io.IOException: **Invalid content checksum** 9B316CBEBAB5E9CE3AB9DB32B86E9E56306E59E4763944468AE1B9BFC356A040 for https://repo.lab.pl.alcatel-lucent.com/csf-mvn-deli
vered/com/nokia/casr/com.nokia.as.util.gogoclient/1.0.2/com.nokia.as.util.gogoclient-1.0.2.jar; expected d6e1f97d43a3f31df67b445231b05946e3cf6f8aff9ee5d5197ab5a65698c445
I tried to use http instead of https, and I’m still getting the “invalid content checksum” download exceptions. Is it really caused by a download network issue ? note that I could manually download the urls using the curl command,
any suggestions about this download checksum issue ?
thanks & regards
pierre