mysql-binlog-connector-java
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.github.shyiko</groupId> <artifactId>mysql-binlog-connector-java</artifactId> <version>0.21.0</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.github.shyiko</groupId> <artifactId>mysql-binlog-connector-java</artifactId> <version>0.21.0</version> <name>mysql-binlog-connector-java</name> <description>MySQL Binary Log connector</description> <url>https://github.com/shyiko/mysql-binlog-connector-java</url> <licenses> <license> <name>Apache License, Version 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo</distribution> </license> </licenses> <scm> <connection>scm:git:git@github.com:shyiko/mysql-binlog-connector-java.git</connection> <developerConnection>scm:git:git@github.com:shyiko/mysql-binlog-connector-java.git</developerConnection> <url>git@github.com:shyiko/mysql-binlog-connector-java.git</url> </scm> <developers> <developer> <id>shyiko</id> <email>stanley.shyiko@gmail.com</email> <name>Stanley Shyiko</name> </developer> </developers> <distributionManagement> <repository> <id>maven-central</id> <name>Sonatype Nexus Staging</name> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> </repository> </distributionManagement> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <vagrant.bin>vagrant</vagrant.bin> <vagrant.integration.box>${basedir}/supplement/vagrant/mysql-5.7.15-sandbox-prepackaged</vagrant.integration.box> </properties> <dependencies> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <version>6.8.5</version> <scope>test</scope> </dependency> <dependency> <groupId>org.skyscreamer</groupId> <artifactId>jsonassert</artifactId> <version>1.4.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>1.9.5</version> <scope>test</scope> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.15</version> <scope>test</scope> </dependency> </dependencies> <reporting> <plugins> <plugin> <!-- added to suppress "[WARNING] Unable to locate Source XRef to link to - DISABLED" --> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> <version>2.3</version> </plugin> </plugins> </reporting> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.0.2</version> <configuration> <archive> <manifestEntries> <!-- for class.getPackage().getImplementationVersion() --> <Implementation-Version>${project.version}</Implementation-Version> </manifestEntries> </archive> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.2</version> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.10</version> <configuration> <excludes> <exclude>**/*IntegrationTest.java</exclude> </excludes> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <version>2.15</version> <configuration> <includes> <include>**/*IntegrationTest.java</include> </includes> </configuration> <executions> <execution> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> </execution> </executions> </plugin> <!-- unfortunately net.ju-n.maven.plugins:vagrant-maven-plugin does not support vagrant 1.1+ at the moment, so I'm gonna use exec-maven-plugin instead --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.1.1</version> <executions> <execution> <id>start-vagrant-vm</id> <phase>pre-integration-test</phase> <goals> <goal>exec</goal> </goals> <configuration> <workingDirectory>${vagrant.integration.box}</workingDirectory> <executable>${vagrant.bin}</executable> <arguments> <argument>up</argument> </arguments> <skip>${skipTests}</skip> </configuration> </execution> <execution> <id>destroy-vagrant-vm</id> <phase>post-integration-test</phase> <goals> <goal>exec</goal> </goals> <configuration> <workingDirectory>${vagrant.integration.box}</workingDirectory> <executable>${vagrant.bin}</executable> <arguments> <argument>destroy</argument> <argument>--force</argument> </arguments> <skip>${skipTests}</skip> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-checkstyle-plugin</artifactId> <version>2.9.1</version> <configuration> <failsOnError>true</failsOnError> <configLocation>supplement/codequality/checkstyle.xml</configLocation> <headerLocation>supplement/codequality/license.header</headerLocation> <includeTestSourceDirectory>true</includeTestSourceDirectory> <consoleOutput>true</consoleOutput> </configuration> <executions> <execution> <phase>verify</phase> <goals> <goal>checkstyle</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>com.github.shyiko</groupId> <artifactId>checkstyle-nonstandard</artifactId> <version>0.1.0</version> </dependency> </dependencies> </plugin> <plugin> <groupId>com.github.shyiko.usage-maven-plugin</groupId> <artifactId>usage-maven-plugin</artifactId> <version>1.0.0</version> <configuration> <usage> # build everything (append "-DskipTests=true" if you wish to skip tests) ./mvnw clean package # run unit + integration tests, validate codebase using checkstyle ./mvnw -P coverage clean verify # use -Dvagrant.integration.box= to switch between MySQL sandboxes # for aggregated coverage over different mysql releases use ./mvnw clean ./mvnw -P coverage verify \ -Dvagrant.integration.box=supplement/vagrant/mysql-5.5.27-sandbox-prepackaged ./mvnw -P coverage verify \ -Dvagrant.integration.box=supplement/vagrant/mysql-5.6.12-sandbox-prepackaged ./mvnw -P coverage verify \ -Dvagrant.integration.box=supplement/vagrant/mysql-5.7.15-sandbox-prepackaged ./mvnw -P coverage,mysql-8-compat verify \ -Dvagrant.integration.box=supplement/vagrant/mysql-8.0.1-sandbox-prepackaged # submit coverage report to coveralls ./mvnw -P coverage coveralls:jacoco -DrepoToken=<coveralls.io> # publish a new version ./mvnw versions:set -DnewVersion=<version> ./mvnw -Ddeploy=maven-central git tag <version> && git push origin <version> </usage> </configuration> </plugin> </plugins> <extensions> <extension> <groupId>com.github.shyiko.usage-maven-plugin</groupId> <artifactId>usage-maven-plugin</artifactId> <version>1.0.0</version> </extension> </extensions> </build> <profiles> <profile> <id>mysql-8-compat</id> <dependencies> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.7-dmr</version> <scope>test</scope> </dependency> </dependencies> </profile> <profile> <id>coverage</id> <build> <plugins> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.7.9</version> <configuration> <destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile> <dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile> <append>true</append> <excludes> <exclude>**/ClientCapabilities.*</exclude> </excludes> </configuration> <executions> <execution> <id>jacoco-initialize</id> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>jacoco-site</id> <phase>post-integration-test</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.eluder.coveralls</groupId> <artifactId>coveralls-maven-plugin</artifactId> <version>2.0.0</version> </plugin> </plugins> </build> </profile> <profile> <id>deploy-to-maven-central</id> <activation> <property> <name>deploy</name> <value>maven-central</value> </property> </activation> <build> <defaultGoal>clean deploy</defaultGoal> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.0.1</version> <executions> <execution> <id>attach-sources</id> <phase>verify</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.10.4</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> <configuration> <additionalparam>-Xdoclint:none</additionalparam> <quiet>true</quiet> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.7</version> <extensions>true</extensions> <configuration> <nexusUrl>https://oss.sonatype.org/</nexusUrl> <serverId>maven-central</serverId> <skipStagingRepositoryClose>true</skipStagingRepositoryClose> <!--<autoReleaseAfterClose>true</autoReleaseAfterClose>--> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>