DBZ-3449 Moving QA releated plug-ins to separate profile, so to avoid loading them at all
This commit is contained in:
parent
98ce954332
commit
dc02b896cd
@ -112,8 +112,9 @@ You can skip the integration tests and docker-builds with the following command:
|
||||
|
||||
You can skip all non-essential plug-ins (tests, integration tests, CheckStyle, formatter, API compatibility check, etc.) using the "quick" build profile:
|
||||
|
||||
$ mvn clean verify -Pquick
|
||||
$ mvn clean verify -Dquick
|
||||
|
||||
This provides the fastes way for solely producing the output artifacts, without running any of the QA related Maven plug-ins.
|
||||
This comes in handy for producing connector JARs and/or archives as quickly as possible, e.g. for manual testing in Kafka Connect.
|
||||
|
||||
### Running tests of the Postgres connector using the wal2json or pgoutput logical decoding plug-ins
|
||||
|
@ -282,6 +282,12 @@
|
||||
</profile>
|
||||
<profile>
|
||||
<id>quick</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
<property>
|
||||
<name>quick</name>
|
||||
</property>
|
||||
</activation>
|
||||
<properties>
|
||||
<skipITs>true</skipITs>
|
||||
<docker.skip>true</docker.skip>
|
||||
|
@ -590,6 +590,12 @@
|
||||
</profile>
|
||||
<profile>
|
||||
<id>quick</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
<property>
|
||||
<name>quick</name>
|
||||
</property>
|
||||
</activation>
|
||||
<properties>
|
||||
<skipITs>true</skipITs>
|
||||
<docker.skip>true</docker.skip>
|
||||
|
@ -233,6 +233,12 @@
|
||||
</profile>
|
||||
<profile>
|
||||
<id>quick</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
<property>
|
||||
<name>quick</name>
|
||||
</property>
|
||||
</activation>
|
||||
<properties>
|
||||
<skipITs>true</skipITs>
|
||||
<docker.skip>true</docker.skip>
|
||||
|
@ -243,23 +243,6 @@
|
||||
</systemPropertyVariables>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.revapi</groupId>
|
||||
<artifactId>revapi-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<analysisConfiguration combine.children="append">
|
||||
<revapi.java>
|
||||
<filter>
|
||||
<packages>
|
||||
<include>
|
||||
<item>io.debezium.connector.postgresql.spi</item>
|
||||
</include>
|
||||
</packages>
|
||||
</filter>
|
||||
</revapi.java>
|
||||
</analysisConfiguration>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<resources>
|
||||
<!-- Apply the properties set in the POM to the resource files -->
|
||||
@ -326,12 +309,46 @@
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>qa</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>!quick</name>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.revapi</groupId>
|
||||
<artifactId>revapi-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<analysisConfiguration combine.children="append">
|
||||
<revapi.java>
|
||||
<filter>
|
||||
<packages>
|
||||
<include>
|
||||
<item>io.debezium.connector.postgresql.spi</item>
|
||||
</include>
|
||||
</packages>
|
||||
</filter>
|
||||
</revapi.java>
|
||||
</analysisConfiguration>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>quick</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
<property>
|
||||
<name>quick</name>
|
||||
</property>
|
||||
</activation>
|
||||
<properties>
|
||||
<skipITs>true</skipITs>
|
||||
<docker.skip>true</docker.skip>
|
||||
<revapi.skip>true</revapi.skip>
|
||||
</properties>
|
||||
</profile>
|
||||
<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
@ -256,6 +256,12 @@
|
||||
</profile>
|
||||
<profile>
|
||||
<id>quick</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
<property>
|
||||
<name>quick</name>
|
||||
</property>
|
||||
</activation>
|
||||
<properties>
|
||||
<skipITs>true</skipITs>
|
||||
<docker.skip>true</docker.skip>
|
||||
|
@ -74,54 +74,60 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<!-- https://github.com/antlr/antlr4test-maven-plugin -->
|
||||
<groupId>com.khubla.antlr</groupId>
|
||||
<artifactId>antlr4test-maven-plugin</artifactId>
|
||||
<version>1.11</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>MySql</id>
|
||||
<configuration>
|
||||
<verbose>false</verbose>
|
||||
<showTree>false</showTree>
|
||||
<entryPoint>root</entryPoint>
|
||||
<grammarName>MySql</grammarName>
|
||||
<packageName>io.debezium.ddl.parser.mysql.generated</packageName>
|
||||
<caseInsensitiveType>UPPER</caseInsensitiveType>
|
||||
<exampleFiles>src/test/resources/mysql/examples</exampleFiles>
|
||||
<enabled>${antlr.tests.enabled}</enabled>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>test</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>Oracle</id>
|
||||
<configuration>
|
||||
<verbose>false</verbose>
|
||||
<showTree>false</showTree>
|
||||
<entryPoint>sql_script</entryPoint>
|
||||
<grammarName>PlSql</grammarName>
|
||||
<packageName>io.debezium.ddl.parser.oracle.generated</packageName>
|
||||
<caseInsensitiveType>UPPER</caseInsensitiveType>
|
||||
<exampleFiles>src/test/resources/oracle/examples</exampleFiles>
|
||||
<enabled>${antlr.tests.enabled}</enabled>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>test</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>quick</id>
|
||||
<properties>
|
||||
<antlr.tests.enabled>false</antlr.tests.enabled>
|
||||
</properties>
|
||||
<id>qa</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>!quick</name>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<!-- https://github.com/antlr/antlr4test-maven-plugin -->
|
||||
<groupId>com.khubla.antlr</groupId>
|
||||
<artifactId>antlr4test-maven-plugin</artifactId>
|
||||
<version>1.11</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>MySql</id>
|
||||
<configuration>
|
||||
<verbose>false</verbose>
|
||||
<showTree>false</showTree>
|
||||
<entryPoint>root</entryPoint>
|
||||
<grammarName>MySql</grammarName>
|
||||
<packageName>io.debezium.ddl.parser.mysql.generated</packageName>
|
||||
<caseInsensitiveType>UPPER</caseInsensitiveType>
|
||||
<exampleFiles>src/test/resources/mysql/examples</exampleFiles>
|
||||
<enabled>${antlr.tests.enabled}</enabled>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>test</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>Oracle</id>
|
||||
<configuration>
|
||||
<verbose>false</verbose>
|
||||
<showTree>false</showTree>
|
||||
<entryPoint>sql_script</entryPoint>
|
||||
<grammarName>PlSql</grammarName>
|
||||
<packageName>io.debezium.ddl.parser.oracle.generated</packageName>
|
||||
<caseInsensitiveType>UPPER</caseInsensitiveType>
|
||||
<exampleFiles>src/test/resources/oracle/examples</exampleFiles>
|
||||
<enabled>${antlr.tests.enabled}</enabled>
|
||||
</configuration>
|
||||
<goals>
|
||||
<goal>test</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>skip-tests</id>
|
||||
|
@ -171,33 +171,6 @@
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>net.revelc.code.formatter</groupId>
|
||||
<artifactId>formatter-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>process-sources</phase>
|
||||
<goals>
|
||||
<goal>${format.formatter.goal}</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>net.revelc.code</groupId>
|
||||
<artifactId>impsort-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<removeUnused>true</removeUnused>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sort-imports</id>
|
||||
<goals>
|
||||
<goal>${format.imports.goal}</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
@ -269,40 +242,6 @@
|
||||
<useSystemClassLoader>${useSystemClassLoader}</useSystemClassLoader>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>io.debezium</groupId>
|
||||
<artifactId>debezium-checkstyle</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<configLocation>checkstyle.xml</configLocation>
|
||||
<suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
|
||||
<suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
|
||||
<consoleOutput>true</consoleOutput>
|
||||
<failsOnError>true</failsOnError>
|
||||
<linkXRef>false</linkXRef>
|
||||
<violationSeverity>error</violationSeverity>
|
||||
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
||||
<sourceDirectories>
|
||||
<sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
|
||||
<sourceDirectory>${project.build.testSourceDirectory}</sourceDirectory>
|
||||
</sourceDirectories>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>check-style</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>checkstyle</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<!-- Serves as support for configuring Revapi -->
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
@ -318,44 +257,117 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.revapi</groupId>
|
||||
<artifactId>revapi-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<failOnMissingConfigurationFiles>false</failOnMissingConfigurationFiles>
|
||||
<!-- Consider changes from the latest .Final version, not from the latest non-snapshot. -->
|
||||
<versionFormat>\d+\.\d+\.\d+\.Final</versionFormat>
|
||||
<ignoreSuggestionsFormat>xml</ignoreSuggestionsFormat>
|
||||
<analysisConfigurationFiles>
|
||||
<configurationFile>
|
||||
<!-- common API checking configuration -->
|
||||
<resource>revapi/revapi-configuration.xml</resource>
|
||||
</configurationFile>
|
||||
<configurationFile>
|
||||
<!-- API changes recorded in the support/revapi module -->
|
||||
<resource>revapi/debezium-api-changes.xml</resource>
|
||||
<roots>
|
||||
<!--
|
||||
The XML file has "<analysisConfiguration>" root node, underneath which
|
||||
there are nodes named after each version.
|
||||
This way we only need a single file for all releases of Debezium.
|
||||
-->
|
||||
<root>analysisConfiguration/version-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</root>
|
||||
</roots>
|
||||
</configurationFile>
|
||||
</analysisConfigurationFiles>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>check</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>qa</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>!quick</name>
|
||||
</property>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>net.revelc.code.formatter</groupId>
|
||||
<artifactId>formatter-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>process-sources</phase>
|
||||
<goals>
|
||||
<goal>${format.formatter.goal}</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>net.revelc.code</groupId>
|
||||
<artifactId>impsort-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<removeUnused>true</removeUnused>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>sort-imports</id>
|
||||
<goals>
|
||||
<goal>${format.imports.goal}</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-checkstyle-plugin</artifactId>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>io.debezium</groupId>
|
||||
<artifactId>debezium-checkstyle</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<configLocation>checkstyle.xml</configLocation>
|
||||
<suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
|
||||
<suppressionsFileExpression>checkstyle.suppressions.file</suppressionsFileExpression>
|
||||
<consoleOutput>true</consoleOutput>
|
||||
<failsOnError>true</failsOnError>
|
||||
<linkXRef>false</linkXRef>
|
||||
<violationSeverity>error</violationSeverity>
|
||||
<includeTestSourceDirectory>true</includeTestSourceDirectory>
|
||||
<sourceDirectories>
|
||||
<sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
|
||||
<sourceDirectory>${project.build.testSourceDirectory}</sourceDirectory>
|
||||
</sourceDirectories>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>check-style</id>
|
||||
<phase>verify</phase>
|
||||
<goals>
|
||||
<goal>checkstyle</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.revapi</groupId>
|
||||
<artifactId>revapi-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<failOnMissingConfigurationFiles>false</failOnMissingConfigurationFiles>
|
||||
<!-- Consider changes from the latest .Final version, not from the latest non-snapshot. -->
|
||||
<versionFormat>\d+\.\d+\.\d+\.Final</versionFormat>
|
||||
<ignoreSuggestionsFormat>xml</ignoreSuggestionsFormat>
|
||||
<analysisConfigurationFiles>
|
||||
<configurationFile>
|
||||
<!-- common API checking configuration -->
|
||||
<resource>revapi/revapi-configuration.xml</resource>
|
||||
</configurationFile>
|
||||
<configurationFile>
|
||||
<!-- API changes recorded in the support/revapi module -->
|
||||
<resource>revapi/debezium-api-changes.xml</resource>
|
||||
<roots>
|
||||
<!--
|
||||
The XML file has "<analysisConfiguration>" root node, underneath which
|
||||
there are nodes named after each version.
|
||||
This way we only need a single file for all releases of Debezium.
|
||||
-->
|
||||
<root>analysisConfiguration/version-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</root>
|
||||
</roots>
|
||||
</configurationFile>
|
||||
</analysisConfigurationFiles>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>check</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<!--
|
||||
###################################################################
|
||||
Enable remotely debugging on the command line
|
||||
|
@ -362,6 +362,12 @@
|
||||
</profile>
|
||||
<profile>
|
||||
<id>quick</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
<property>
|
||||
<name>quick</name>
|
||||
</property>
|
||||
</activation>
|
||||
<properties>
|
||||
<skipITs>true</skipITs>
|
||||
</properties>
|
||||
|
@ -144,6 +144,12 @@
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>quick</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
<property>
|
||||
<name>quick</name>
|
||||
</property>
|
||||
</activation>
|
||||
<properties>
|
||||
<skipITs>true</skipITs>
|
||||
<docker.skip>true</docker.skip>
|
||||
|
@ -138,6 +138,12 @@
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>quick</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
<property>
|
||||
<name>quick</name>
|
||||
</property>
|
||||
</activation>
|
||||
<properties>
|
||||
<skipITs>true</skipITs>
|
||||
<docker.skip>true</docker.skip>
|
||||
|
17
pom.xml
17
pom.xml
@ -296,13 +296,24 @@
|
||||
</plugins>
|
||||
</build>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>qa</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>!quick</name>
|
||||
</property>
|
||||
</activation>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>quick</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
<property>
|
||||
<name>quick</name>
|
||||
</property>
|
||||
</activation>
|
||||
<properties>
|
||||
<skipTests>true</skipTests>
|
||||
<checkstyle.skip>true</checkstyle.skip>
|
||||
<format.skip>true</format.skip>
|
||||
<docker.skip>true</docker.skip>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
|
Loading…
Reference in New Issue
Block a user