Skip to content

Commit

Permalink
Consistent structure in the jdbc deployment artifacts to disable DevS…
Browse files Browse the repository at this point in the history
…ervice tests based on profile
  • Loading branch information
Sanne committed Feb 7, 2022
1 parent 9899274 commit 104797c
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 11 deletions.
9 changes: 7 additions & 2 deletions extensions/jdbc/jdbc-db2/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
<excludes>
<exclude>**/DevServices*TestCase.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
Expand All @@ -94,7 +96,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>false</skip>
<excludes>
<!-- force the default, overriding the DevServices exclude -->
<exclude>**/*$*</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
Expand Down
10 changes: 7 additions & 3 deletions extensions/jdbc/jdbc-mariadb/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,14 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
<excludes>
<exclude>**/DevServices*TestCase.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>


<profiles>
<profile>
<id>test-devservices</id>
Expand All @@ -89,7 +90,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>false</skip>
<excludes>
<!-- force the default, overriding the DevServices exclude -->
<exclude>**/*$*</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
Expand Down
9 changes: 7 additions & 2 deletions extensions/jdbc/jdbc-mssql/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
<excludes>
<exclude>**/DevServices*TestCase.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
Expand All @@ -94,7 +96,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>false</skip>
<excludes>
<!-- force the default, overriding the DevServices exclude -->
<exclude>**/*$*</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
Expand Down
9 changes: 7 additions & 2 deletions extensions/jdbc/jdbc-mysql/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
<excludes>
<exclude>**/DevServices*TestCase.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
Expand All @@ -88,7 +90,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>false</skip>
<excludes>
<!-- force the default, overriding the DevServices exclude -->
<exclude>**/*$*</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
Expand Down
9 changes: 7 additions & 2 deletions extensions/jdbc/jdbc-postgresql/deployment/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
<excludes>
<exclude>**/DevServices*TestCase.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
Expand All @@ -98,7 +100,10 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>false</skip>
<excludes>
<!-- force the default, overriding the DevServices exclude -->
<exclude>**/*$*</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 104797c

Please sign in to comment.