Merge pull request #4743 from wyvie/springboot-testing-fix

[KEYCLOAK-3837] fix to spring boot test application for jenkins
This commit is contained in:
Pavel Drozd 2017-11-27 15:07:22 +01:00 committed by GitHub
commit 87b17a6e6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 0 deletions

View file

@ -24,6 +24,8 @@
<java.version>1.8</java.version>
<keycloak.version>3.3.0.CR1-SNAPSHOT</keycloak.version>
<repo.url />
</properties>
<dependencies>
@ -119,8 +121,25 @@
</dependency>
</dependencies>
</profile>
<profile>
<id>repo-url</id>
<activation>
<property>
<name>repo.url</name>
</property>
</activation>
<repositories>
<repository>
<id>custom-repo</id>
<name>custom repo</name>
<url>${repo.url}</url>
</repository>
</repositories>
</profile>
</profiles>
<build>
<plugins>
<plugin>

View file

@ -15,6 +15,8 @@
<exclude.springboot>**/springboot/**/*Test.java</exclude.springboot>
<adapter.container>tomcat</adapter.container>
<repo.argument />
</properties>
<dependencies>
@ -67,6 +69,8 @@
<argument>spring-boot:run</argument>
<argument>-Dkeycloak.version=${project.version}</argument>
<argument>-Pspring-boot-adapter-${adapter.container}</argument>
<argument>-Dmaven.repo.local=${settings.localRepository}</argument>
<argument>${repo.argument}</argument>
</arguments>
</configuration>
</execution>
@ -83,6 +87,18 @@
</plugins>
</build>
</profile>
<profile>
<id>turn-on-repo-url</id>
<activation>
<property>
<name>repo.url</name>
</property>
</activation>
<properties>
<repo.argument>-Drepo.url=${repo.url}</repo.argument>
</properties>
</profile>
</profiles>