KEYCLOAK-12950 Use maven-plugin to configure shrinkwrap resolver

This commit is contained in:
mhajas 2020-02-12 09:32:03 +01:00 committed by Pavel Drozd
parent 42956bdfb7
commit 1bb238d20f
2 changed files with 6 additions and 2 deletions

View file

@ -349,8 +349,7 @@ public class AuthServerTestEnricher {
public void deployProviders(@Observes(precedence = -1) AfterStart event) throws DeploymentException { public void deployProviders(@Observes(precedence = -1) AfterStart event) throws DeploymentException {
if (isAuthServerRemote() && currentContainerName.contains("auth-server")) { if (isAuthServerRemote() && currentContainerName.contains("auth-server")) {
this.testsuiteProvidersArchive = ShrinkWrap.create(ZipImporter.class, "testsuiteProviders.jar") this.testsuiteProvidersArchive = ShrinkWrap.create(ZipImporter.class, "testsuiteProviders.jar")
.importFrom(Maven.resolver() .importFrom(Maven.configureResolverViaPlugin()
.loadPomFromFile("pom.xml")
.resolve("org.keycloak.testsuite:integration-arquillian-testsuite-providers") .resolve("org.keycloak.testsuite:integration-arquillian-testsuite-providers")
.withoutTransitivity() .withoutTransitivity()
.asSingleFile() .asSingleFile()

View file

@ -54,6 +54,11 @@
<artifactId>commons-csv</artifactId> <artifactId>commons-csv</artifactId>
<version>1.2</version> <version>1.2</version>
</dependency> </dependency>
<dependency>
<groupId>org.keycloak.testsuite</groupId>
<artifactId>integration-arquillian-testsuite-providers</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies> </dependencies>
<build> <build>