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.