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 property, in Karaf -
etc/config.properties) "org.ops4j.pax.url.mvn.requireConfigAdminConfig" -
with this set (to any value), pax-url-aether will synchronously wait for
proper ConfigurationAdmin (otherwise it _could_ fallback to default
configuration).

I hope this will help.

regards
Grzegorz Grzybek

czw., 27 lut 2020 o 20:12 Jared Whiklo <[email protected]> napisał(a):

> 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:
>         java.io.IOException: Error resolving artifact
> org.apache.karaf:apache-karaf:zip:4.0.6: Could not transfer artifact
> org.apache.karaf:apache-karaf:zip:4.0.6 from/to central (
> http://repo1.maven.org/maven2/): Failed to transfer file:
> http://repo1.maven.org/maven2/org/apache/karaf/apache-karaf/4.0.6/apache-karaf-4.0.6.zip.
> Return code is: 501 , ReasonPhrase:HTTPS Required.
>
> Gradle Test Run :islandora-karaf:test > Gradle Test Executor 13 >
> ca.islandora.alpaca.karaf.KarafIT > executionError FAILED
>     java.lang.RuntimeException: Container never came up
>
> I tried to add and return additional options() in the config() method, but
> because the failure is occurring while trying to download the Karaf
> container for the test, I feel like it must not be using any of those
> settings.
>
> So I tried to setup a test-settings.xml file which defined a profile with
> a repository for Maven using the https URL, and have it activeByDefault.
> Then I tried to set this and via the
>
> final String settingsLocation = 
> getClass().getClassLoader().getResource("test-settings.xml").getPath();
> systemProperty("org.ops4j.pax.url.mvn.settings").value(settingsLocation);
>
>
> But this also did not have any effect.
>
> So I tried
>
> systemProperty("org.ops4j.pax.url.mvn.useFallbackRepositories").value("false");
> systemProperty("org.ops4j.pax.url.mvn.repositories")
>         .value("https://repo1.maven.org/maven2@id=central";);
>
>
> Which also didn't have any effect.
>
> Can someone explain where to set the settings explained on this page (
> https://ops4j1.jira.com/wiki/spaces/paxurl/pages/3833866/Mvn+Protocol) so
> that they are used when interpreting the karafDistributionConfiguration()
> and/or frameworkUrl() please?
>
> cheers,
> jared
>
> --
> --
> ------------------
> OPS4J - http://www.ops4j.org - [email protected]
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OPS4J" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ops4j/a9670011-f1ef-4f41-aadb-59dbaf0876ef%40googlegroups.com
> <https://groups.google.com/d/msgid/ops4j/a9670011-f1ef-4f41-aadb-59dbaf0876ef%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ops4j/CAAdXmhrJ8AGVCg032THLx-oWeTaVHmd-XGiRi-bfNHBVDQHvBQ%40mail.gmail.com.

Reply via email to