Skip to content

Commit

Permalink
HHH-13822 OSGi integration tests need to be able to download dependen…
Browse files Browse the repository at this point in the history
…cies from Maven Central using HTTPS

(cherry picked from commit 33fa24d)
  • Loading branch information
Sanne authored and gbadner committed Mar 26, 2020
1 parent 3005b4b commit 178518b
Showing 1 changed file with 9 additions and 2 deletions.
Expand Up @@ -80,6 +80,8 @@
public class OsgiIntegrationTest {

private static final boolean DEBUG = false;
private static final String jbossPublicRepository = "https://repository.jboss.org/nexus/content/groups/public-jboss/";
private static final String mavenCentralRepository = "https://repo.maven.apache.org/maven2/";

// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// Prepare the Karaf container
Expand Down Expand Up @@ -108,10 +110,15 @@ public Option[] config() throws Exception {
)
)
.useDeployFolder( false ),
editConfigurationFileExtend(
editConfigurationFilePut( // Erase the defaults: Maven Central uses HTTP by default, but HTTPS is required now.
"etc/org.ops4j.pax.url.mvn.cfg",
"org.ops4j.pax.url.mvn.repositories",
"https://repository.jboss.org/nexus/content/groups/public/"
mavenCentralRepository
+ "@id=central"
+ ", "
+ jbossPublicRepository
+ "@id=jboss-public-repository"
+ "https://repository.jboss.org/nexus/content/groups/public/"
),
configureConsole().ignoreLocalConsole().ignoreRemoteShell(),
when( debug ).useOptions( keepRuntimeFolder() ),
Expand Down

0 comments on commit 178518b

Please sign in to comment.