You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (Jira)" <ji...@apache.org> on 2020/02/18 14:33:00 UTC

[jira] [Comment Edited] (SLING-9085) Integration tests fail to download from Maven Central, https required

    [ https://issues.apache.org/jira/browse/SLING-9085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17039125#comment-17039125 ] 

Bertrand Delacretaz edited comment on SLING-9085 at 2/18/20 2:32 PM:
---------------------------------------------------------------------

Note that if the tests only need the Maven Central repository, adding the following pax option works:
{code:java}
import static org.ops4j.pax.exam.CoreOptions.repository;
...
repository("https://repo.maven.apache.org/maven2/").id("central"),
{code}
But multiple {{repository}} options do not work currently and require the workaround from [1] in the previous comment.


was (Author: bdelacretaz):
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)