[ https://issues.apache.org/jira/browse/SLING-9085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17039125#comment-17039125 ]
Bertrand Delacretaz commented on SLING-9085: -------------------------------------------- Note that if the tests only need the Maven Central repository, adding the following pax option works: {code} import static org.ops4j.pax.exam.CoreOptions.repository; ... repository("https://repo.maven.apache.org/maven2/").id("central"), {code} But multiple {{repository}} options to not work currently and require the workaround from [1] in the previous comment. > Integration tests fail to download from Maven Central, https required > --------------------------------------------------------------------- > > Key: SLING-9085 > URL: https://issues.apache.org/jira/browse/SLING-9085 > Project: Sling > Issue Type: Bug > Components: Repoinit > Reporter: Bertrand Delacretaz > Assignee: Bertrand Delacretaz > Priority: Minor > > The JCR repoinit integration tests fail if they need to download anything > from Maven Central, this needs to be fixed, for example in a similar way to > [1]. > The workaround is to download the missing dependencies to the local Maven > repository before running the tests, like > {code} > mvn dependency:get -DgroupId=org.apache.sling > -DartifactId=org.apache.sling.scripting.core -Dversion=2.0.56 > {code} > [1] > https://github.com/apache/sling-org-apache-sling-servlets-resolver/blob/master/src/test/java/org/apache/sling/servlets/resolver/it/ServletResolverTestSupport.java -- This message was sent by Atlassian Jira (v8.3.4#803005)