spark-datax-connector-protobuf
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>io.github.seabow</groupId> <artifactId>spark-datax-connector-protobuf</artifactId> <version>0.4.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"> <parent> <artifactId>spark-datax</artifactId> <groupId>io.github.seabow</groupId> <version>0.4.0</version> <relativePath>../../pom.xml</relativePath> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>spark-datax-connector-protobuf</artifactId> <properties> <maven.compiler.source>8</maven.compiler.source> <maven.compiler.target>8</maven.compiler.target> <protoc-jar-maven-plugin.version>3.11.4</protoc-jar-maven-plugin.version> <scala.version.major>2.12</scala.version.major> </properties> <dependencies> <dependency> <groupId>io.github.seabow</groupId> <artifactId>spark-datax-core</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-core_${scala.version.major}</artifactId> <version>${spark.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-catalyst_${scala.version.major}</artifactId> <version>${spark.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.google.protobuf</groupId> <artifactId>protobuf-java</artifactId> <version>3.21.12</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.google.protobuf</groupId> <artifactId>protobuf-java-util</artifactId> <version>3.19.4</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-sql_${scala.version.major}</artifactId> <version>${spark.version}</version> <scope>provided</scope> <exclusions> <exclusion> <groupId>com.google.protobuf</groupId> <artifactId>protobuf-java</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.scalatest</groupId> <artifactId>scalatest_${scala.version.major}</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.github.mrpowers</groupId> <artifactId>spark-fast-tests_2.12</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>com.vladsch.flexmark</groupId> <artifactId>flexmark-all</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-core_${scala.version.major}</artifactId> <version>${spark.version}</version> <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-catalyst_${scala.version.major}</artifactId> <version>${spark.version}</version> <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-sql_${scala.version.major}</artifactId> <version>${spark.version}</version> <type>test-jar</type> <scope>test</scope> </dependency> <dependency> <groupId>org.scalacheck</groupId> <artifactId>scalacheck_${scala.version.major}</artifactId> <version>1.17.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.scalatestplus</groupId> <artifactId>scalacheck-1-17_${scala.version.major}</artifactId> <version>3.2.16.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.scalatestplus</groupId> <artifactId>mockito-4-11_${scala.version.major}</artifactId> <version>3.2.16.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.scalatestplus</groupId> <artifactId>selenium-4-9_${scala.version.major}</artifactId> <version>3.2.16.0</version> <scope>test</scope> </dependency> </dependencies> <build> <pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>com.github.os72</groupId> <artifactId>protoc-jar-maven-plugin</artifactId> <version>${protoc-jar-maven-plugin.version}</version> <!-- Generates Java classes and descriptor files from Protobuf files. --> <executions> <execution> <phase>generate-test-sources</phase> <goals> <goal>run</goal> </goals> <configuration> <protocArtifact>com.google.protobuf:protoc:3.21.12</protocArtifact> <protocVersion>3.21.12</protocVersion> <inputDirectories> <include>src/test/resources/protobuf</include> </inputDirectories> <includeStdTypes>true</includeStdTypes> <outputTargets> <outputTarget> <type>java</type> <addSources>test</addSources> </outputTarget> <outputTarget> <type>descriptor</type> <addSources>test</addSources> </outputTarget> </outputTargets> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.2.0</version> <configuration> <createDependencyReducedPom>false</createDependencyReducedPom> <artifactSet> <includes> <include>com.google.protobuf:*</include> </includes> </artifactSet> <relocations> <relocation> <pattern>com.google.protobuf</pattern> <shadedPattern>org.sparkproject.spark_protobuf.protobuf</shadedPattern> <includes> <include>com.google.protobuf.**</include> </includes> </relocation> </relocations> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>google/protobuf/**</exclude> </excludes> </filter> </filters> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.scalatest</groupId> <artifactId>scalatest-maven-plugin</artifactId> <version>2.0.2</version> <configuration> <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory> <junitxml>.</junitxml> <filereports>WDF TestResult.txt</filereports> <htmlreporters>${project.build.directory}/site/scalatest</htmlreporters> <testFailureIgnore>false</testFailureIgnore> <suffixes>Test</suffixes> </configuration> <executions> <execution> <id>test</id> <phase>test</phase> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>