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 {
if (isAuthServerRemote() && currentContainerName.contains("auth-server")) {
this.testsuiteProvidersArchive = ShrinkWrap.create(ZipImporter.class, "testsuiteProviders.jar")
.importFrom(Maven.resolver()
.loadPomFromFile("pom.xml")
.importFrom(Maven.configureResolverViaPlugin()
.resolve("org.keycloak.testsuite:integration-arquillian-testsuite-providers")
.withoutTransitivity()
.asSingleFile()

View file

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