Merge pull request #4743 from wyvie/springboot-testing-fix
[KEYCLOAK-3837] fix to spring boot test application for jenkins
This commit is contained in:
commit
87b17a6e6c
2 changed files with 35 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue