Skip to content

Commit 5fc5d83

Browse files
committed
add integration profile
1 parent b462c39 commit 5fc5d83

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

  • spring-cloud/spring-cloud-ribbon-client

‎spring-cloud/spring-cloud-ribbon-client/pom.xml‎

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@
5656
<groupId>org.springframework.boot</groupId>
5757
<artifactId>spring-boot-maven-plugin</artifactId>
5858
</plugin>
59+
60+
<plugin>
61+
<groupId>org.apache.maven.plugins</groupId>
62+
<artifactId>maven-surefire-plugin</artifactId>
63+
<configuration>
64+
<excludes>
65+
<exclude>**/*IntegrationTest.java</exclude>
66+
</excludes>
67+
</configuration>
68+
</plugin>
5969
</plugins>
6070
</build>
6171

@@ -77,4 +87,42 @@
7787
</snapshots>
7888
</repository>
7989
</repositories>
90+
91+
<profiles>
92+
<profile>
93+
<id>integration</id>
94+
<build>
95+
96+
<plugins>
97+
98+
<plugin>
99+
<groupId>org.apache.maven.plugins</groupId>
100+
<artifactId>maven-surefire-plugin</artifactId>
101+
<executions>
102+
<execution>
103+
<phase>integration-test</phase>
104+
<goals>
105+
<goal>test</goal>
106+
</goals>
107+
<configuration>
108+
<excludes>
109+
<exclude>**/*LiveTest.java</exclude>
110+
</excludes>
111+
<includes>
112+
<include>**/*IntegrationTest.java</include>
113+
</includes>
114+
</configuration>
115+
</execution>
116+
</executions>
117+
<configuration>
118+
<systemPropertyVariables>
119+
<test.mime>json</test.mime>
120+
</systemPropertyVariables>
121+
</configuration>
122+
</plugin>
123+
</plugins>
124+
125+
</build>
126+
</profile>
127+
</profiles>
80128
</project>

0 commit comments

Comments
 (0)