Re: Maven Aether configuration

2020-03-06 Thread Jared Whiklo
Thank you Grzegorz, that helps alot. I can work through the rest now that I know that systemProperty() will have the necessary effect. cheers, jared On 2020-03-06 7:03 a.m., Grzegorz Grzybek wrote: > Hello > > I've debugged your `./gradlew test` and in this moment: > > "Test worker@1428" prio=

Re: Maven Aether configuration

2020-03-06 Thread Grzegorz Grzybek
You're welcome ;) Have a good weekend! ~Grzegorz pt., 6 mar 2020 o 17:17 Jared Whiklo napisał(a): > Thank you Grzegorz, that helps alot. > > I can work through the rest now that I know that systemProperty() will > have the necessary effect. > > cheers, > jared > > On 2020-03-06 7:03 a.m., Grzeg

Re: Maven Aether configuration

2020-03-06 Thread Grzegorz Grzybek
Hello I've debugged your `./gradlew test` and in this moment: "Test worker@1428" prio=5 tid=0xf nid=NA runnable java.lang.Thread.State: RUNNABLE at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.resolve(AetherBasedResolver.java:576) at org.ops4j.pax.url.mvn.internal.AetherBasedResolver.re

Re: Maven Aether configuration

2020-03-05 Thread Jean-Baptiste Onofré
Not, this action is performed once karaf is downloaded and before started. Your problem here is when Pax Exam tries to download Karaf. The problem is in your pom.xml. Don't you a section in your pom or parent pom ? Did you try to just add the correct in your pom.xml ? Regards JB On Thu, Mar 5

Re: Maven Aether configuration

2020-03-05 Thread Jared Whiklo
I have this: https://github.com/whikloj/Alpaca/blob/fix-pax-exam/karaf/src/test/java/ca/islandora/alpaca/karaf/KarafIT.java#L146-L150 Is that correct? Because it is not being used to download apache-karaf and instead I fallback to the http://repo1.maven.org/maven2 and get Caused by: jav

Re: Maven Aether configuration

2020-03-05 Thread Jared Whiklo
Right and the problem we are facing is that Central is now forcing us to use "https" to do this step https://github.com/apache/karaf/blob/master/itests/common/src/main/java/org/apache/karaf/itests/KarafTestSupport.java#L177 and instead the fallback repository that pax url aether resolver is using

Re: Maven Aether configuration

2020-03-05 Thread Jean-Baptiste Onofré
Hi Jared, I mean that you can define the pax-url configuration in the @Configuration. It's where you can define the repositories URL, especially you have to use https for Central (it will be changed by default in Karaf 4.2.9): https://github.com/apache/karaf/blob/master/itests/common/src/main/jav

Re: Maven Aether configuration

2020-03-05 Thread Jared Whiklo
Sorry JB, I don't know what you mean by that? Is this outside of the actual test? Is there a configuration file I should have somewhere specific that defines this? I am really quite a novice at Pax Exam stuff. cheers, jared On 2020-03-05 1:32 p.m., Jean-Baptiste Onofré wrote: > Why not simply u

Re: Maven Aether configuration

2020-03-05 Thread Jean-Baptiste Onofré
Why not simply update the pax url cfg file in the pax exam config ? Regards JB Le jeu. 5 mars 2020 à 20:01, Jared Whiklo a écrit : > Thank you Grzegorz, > > Here is the test currently > > > https://github.com/whikloj/Alpaca/blob/fix-pax-exam/karaf/src/test/java/ca/islandora/alpaca/karaf/KarafIT

Re: Maven Aether configuration

2020-03-05 Thread Jared Whiklo
No need to worry about jumping in late, I'm still missing what I am doing wrong so any help is appreciated. I am on OSX, but our Travis CI testing infrastructure is Ubuntu. We are using Java 8 still. I think (but don't know) this is a maven configuration problem, amplified by the fact that we

Re: Maven Aether configuration

2020-03-05 Thread Jared Whiklo
Thank you Grzegorz, Here is the test currently https://github.com/whikloj/Alpaca/blob/fix-pax-exam/karaf/src/test/java/ca/islandora/alpaca/karaf/KarafIT.java The only solution I have found is to change my personal maven settings.xml to include a repository or mirror for Maven central with the h

Re: Maven Aether configuration

2020-03-04 Thread Jean-Baptiste Onofré
Hi Sorry I jump late on this thread. I don’t have any problem in Karaf (we have bunch of tests running daily without problem). I guess you are on Windows platform right ? Which jdk version ? Anything special about network (like a proxy to access Internet) ? Regards JB Le mer. 4 mars 2020 à 22

Re: Maven Aether configuration

2020-03-04 Thread Grzegorz Grzybek
Hello Can you share your failing test via Github? I run many Karaf Pax-Exam tests everyday... regards Grzegorz Grzybek śr., 4 mar 2020 o 22:40 Jared Whiklo napisał(a): > So I went ahead and modified the test to have a hardcoded maven URL for > the apache-karaf artifact. > > final String karafD

Re: Maven Aether configuration

2020-03-04 Thread Jared Whiklo
So I went ahead and modified the test to have a hardcoded maven URL for the apache-karaf artifact. final String karafDistributionUrl = "https://repo1.maven.org/maven2/org/apache/karaf/apache-karaf/"; + karafVersion + "/apache-karaf-" + karafVersion + ".zip"; But the ArchiveExtractor doe

Re: Maven Aether configuration

2020-02-28 Thread Jared Whiklo
I tried adding a file containing org.ops4j.pax.url.mvn.repositories=https://repo1.maven.org/maven2@id=central org.ops4j.pax.url.mvn.useFallbackRepositories=false org.ops4j.pax.url.mvn.requireConfigAdminConfig=true and using the below as the start (but not complete) return from t

Re: Maven Aether configuration

2020-02-27 Thread Grzegorz Grzybek
Hello Both org.ops4j.pax.url.mvn.useFallbackRepositories and org.ops4j.pax.url.mvn.repositories properties are OK, but only if you specify them in org.ops4j.pax.url.mvn PID (ConfigAdmin) or context property (in Pax-Exam - frameworkProperty()). There's additional _context property_ (framework prop

Re: Maven Aether configuration

2020-02-27 Thread Jared Whiklo
Coming back to this post 4.13.2 release and I'm clearly missing something and am still getting Gradle Test Run :islandora-karaf:test > Gradle Test Executor 13 > ca.islandora.alpaca.karaf.KarafIT > classMethod FAILED java.lang.RuntimeException: Problem starting container Caused by:

Re: Maven Aether configuration

2020-02-20 Thread Jared Whiklo
Thanks Oliver, I'll watch for the release. On 2020-02-19 4:09 p.m., Oliver Lietz wrote: > On Wednesday, February 19, 2020 10:52:49 PM CET Jared Whiklo wrote: >> Hi all, > > Hi Jared, > >> I'm relatively new to Pax-Exam stuff, but have been using it to test >> deployment of some resources in a Ka

Re: Maven Aether configuration

2020-02-19 Thread Oliver Lietz
On Wednesday, February 19, 2020 10:52:49 PM CET Jared Whiklo wrote: > Hi all, Hi Jared, > I'm relatively new to Pax-Exam stuff, but have been using it to test > deployment of some resources in a Karaf container. This was working until > such time as the recent switch to required SSL for maven cen

Maven Aether configuration

2020-02-19 Thread Jared Whiklo
Hi all, I'm relatively new to Pax-Exam stuff, but have been using it to test deployment of some resources in a Karaf container. This was working until such time as the recent switch to required SSL for maven central. So I need to switch out any default repositories urls from "http://repo1.mave