Fixed OSGi tests by overriding the Maven Central

location used by pax-exam.

Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
Simone Bordet 2020-03-07 19:49:44 +01:00
parent ac724a108d
commit 9182e30443
1 changed files with 3 additions and 0 deletions

View File

@ -84,7 +84,10 @@ public class TestJettyOSGiBootCore
String mavenRepoPath = System.getProperty( "mavenRepoPath" );
if (!StringUtil.isBlank( mavenRepoPath))
{
res.add( systemProperty( "org.ops4j.pax.url.mvn.localRepository" ).value( mavenRepoPath ) );
res.add(systemProperty("org.ops4j.pax.url.mvn.repositories").value("+https://repo1.maven.org/maven2@id=maven.central.repo"));
}
res.add(mavenBundle().groupId( "org.ow2.asm" ).artifactId( "asm" ).versionAsInProject().start());
res.add(mavenBundle().groupId( "org.ow2.asm" ).artifactId( "asm-commons" ).versionAsInProject().start());