mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-13822 OSGi integration tests need to be able to download dependencies from Maven Central using HTTPS
(cherry picked from commit 33fa24d9359116a8ba31c9812e0c00f13f03d5b7)
This commit is contained in:
parent
3005b4bc60
commit
178518b424
@ -80,6 +80,8 @@
|
|||||||
public class OsgiIntegrationTest {
|
public class OsgiIntegrationTest {
|
||||||
|
|
||||||
private static final boolean DEBUG = false;
|
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
|
// Prepare the Karaf container
|
||||||
@ -108,10 +110,15 @@ public Option[] config() throws Exception {
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
.useDeployFolder( false ),
|
.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",
|
"etc/org.ops4j.pax.url.mvn.cfg",
|
||||||
"org.ops4j.pax.url.mvn.repositories",
|
"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(),
|
configureConsole().ignoreLocalConsole().ignoreRemoteShell(),
|
||||||
when( debug ).useOptions( keepRuntimeFolder() ),
|
when( debug ).useOptions( keepRuntimeFolder() ),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user