Proxy iTests are failing with the exception below when building on a clean system (cleared out .m2 repository), it seems to work ok on systems that have the required files already in the local repo.
It looks as though PAX runner is trying to download from http://osgi.sonatype.org (which redirects to https://repository.sonatype.org), and fails as it is not following the redirect (see the content of the jar, which looks like the HTTP response I can't see where osgi.sonatype.org is set as a repository, and setting a Maven mirror doesn't change anything. Is this an Aries or Maven/PAX runner issue? Thanks, Simon. ------------------------------------------------------------------------------- Test set: org.apache.aries.proxy.itests.BasicProxyBundlesTest ------------------------------------------------------------------------------- Tests run: 12, Failures: 0, Errors: 12, Skipped: 0, Time elapsed: 4.658 sec <<< FAILURE! checkProxyFinalClass [equinox/3.5.0](org.apache.aries.proxy.itests.BasicProxyBundlesTest) Time elapsed: 2.115 sec <<< ERROR! java.lang.RuntimeException: org.ops4j.pax.runner.platform.PlatformException: [mvn:org.junit/com.springsource.org.junit/4.4.0] is not a valid bundle at org.ops4j.pax.runner.Run.startPlatform(Run.java:675) at org.ops4j.pax.runner.Run.start(Run.java:220) at org.ops4j.pax.runner.Run.start(Run.java:176) at org.ops4j.pax.exam.container.def.internal.PaxRunnerTestContainer.start(PaxRunnerTestContainer.java:282) [org.ops4j.pax.url.mvn.internal.Connection] : Possible download locations for [mvn:org.junit/com.springsource.org.junit/4.4.0] [org.ops4j.pax.url.mvn.internal.Connection] : Version [4.4.0] from URL [file:/home/sgormley/.m2/repository/org/junit/com.springsource.org.junit/4.4.0/com.springsource.org.junit-4.4.0.jar] [org.ops4j.pax.url.mvn.internal.Connection] : Version [4.4.0] from URL [ http://osgi.sonatype.org/content/groups/pax-runner/org/junit/com.springsource.org.junit/4.4.0/com.springsource.org.junit-4.4.0.jar ] [org.ops4j.pax.url.mvn.internal.Connection] : Downloading [Version [4.4.0] from URL [file:/home/sgormley/.m2/repository/org/junit/com.springsource.org.junit/4.4.0/com.springsource.org.junit-4.4.0.jar]] [org.ops4j.pax.runner.OptionResolverImpl] : Resolving option [org.ops4j.pax.url.mvn.proxySupport] [org.ops4j.pax.runner.OptionResolverImpl] : Option [org.ops4j.pax.url.mvn.proxySupport] resolved to [null] [org.ops4j.pax.url.mvn.internal.Connection] : Could not download [Version [4.4.0] from URL [file:/home/sgormley/.m2/repository/org/junit/com.springsource.org.junit/4.4.0/com.springsource.org.junit-4.4.0.jar]] [org.ops4j.pax.url.mvn.internal.Connection] : Reason [java.io.FileNotFoundException: /home/sgormley/.m2/repository/org/junit/com.springsource.org.junit/4.4.0/com.springsource.org.junit-4.4.0.jar (No such file or directory)] [org.ops4j.pax.url.mvn.internal.Connection] : Downloading [Version [4.4.0] from URL [ http://osgi.sonatype.org/content/groups/pax-runner/org/junit/com.springsource.org.junit/4.4.0/com.springsource.org.junit-4.4.0.jar ]] [org.ops4j.pax.runner.OptionResolverImpl] : Resolving option [org.ops4j.pax.url.mvn.proxySupport] [org.ops4j.pax.runner.OptionResolverImpl] : Option [org.ops4j.pax.url.mvn.proxySupport] resolved to [null] [org.ops4j.pax.runner.platform.internal.StreamUtils] : mvn:org.junit/com.springsource.org.junit/4.4.0 : 185 bytes @ [ 185kBps ] [org.ops4j.pax.runner.platform.internal.PlatformImpl] : Succesfully downloaded to [/tmp/paxexam_runner_sgormley/bundles/-1983489640.jar] [sgormley@sgormley-tp ~]$ cat /tmp/paxexam_runner_sgormley/bundles/-1983489640.jar <html> <head><title>301 Moved Permanently</title></head> <body bgcolor="white"> <center><h1>301 Moved Permanently</h1></center> <hr><center>nginx/0.8.54</center> </body> </html> Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
