flink 1.13.2的pom.xml文件模板

flink 1.13.2的pom.xml文件模板



<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.0modelVersion>

  <groupId>com.zbqgroupId>
  <artifactId>myflinkartifactId>
  <version>1.0-SNAPSHOTversion>

  <name>myflinkname>


  <properties>
    <flink.version>1.13.2flink.version>
    <java.version>1.8java.version>
    <scala.binary.version>2.12scala.binary.version>
    <slf4j.version>1.7.30slf4j.version>
  properties>

  <dependencies>
    
    <dependency>
      <groupId>org.apache.flinkgroupId>
      <artifactId>flink-javaartifactId>
      <version>${flink.version}version>
    dependency>
    <dependency>
      <groupId>org.apache.flinkgroupId>
      <artifactId>flink-streaming-java_${scala.binary.version}artifactId>
      <version>${flink.version}version>
    dependency>
    <dependency>
      <groupId>org.apache.flinkgroupId>
      <artifactId>flink-clients_${scala.binary.version}artifactId>
      <version>${flink.version}version>
    dependency>

    <dependency>
      <groupId>org.apache.flinkgroupId>
      <artifactId>flink-connector-kafka_${scala.binary.version}artifactId>
      <version>${flink.version}version>
    dependency>
    <dependency>
      <groupId>org.apache.bahirgroupId>
      <artifactId>flink-connector-redis_2.11artifactId>
      <version>1.0version>
    dependency>
    <dependency>
      <groupId>org.apache.flinkgroupId>
      <artifactId>flink-connector-elasticsearch6_${scala.binary.version}artifactId>
      <version>${flink.version}version>
    dependency>
    <dependency>
      <groupId>org.apache.flinkgroupId>
      <artifactId>flink-connector-jdbc_${scala.binary.version}artifactId>
      <version>${flink.version}version>
    dependency>
    <dependency>
      <groupId>mysqlgroupId>
      <artifactId>mysql-connector-javaartifactId>
      <version>5.1.47version>
    dependency>

    <dependency>
      <groupId>org.apache.flinkgroupId>
      <artifactId>flink-statebackend-rocksdb_${scala.binary.version}artifactId>
      <version>1.13.0version>
    dependency>

    <dependency>
      <groupId>org.apache.flinkgroupId>
      <artifactId>flink-table-api-java-bridge_${scala.binary.version}artifactId>
      <version>${flink.version}version>
    dependency>
    <dependency>
      <groupId>org.apache.flinkgroupId>
      <artifactId>flink-table-planner-blink_${scala.binary.version}artifactId>
      <version>${flink.version}version>
    dependency>
    <dependency>
      <groupId>org.apache.flinkgroupId>
      <artifactId>flink-streaming-scala_${scala.binary.version}artifactId>
      <version>${flink.version}version>
    dependency>

    <dependency>
      <groupId>org.apache.flinkgroupId>
      <artifactId>flink-csvartifactId>
      <version>${flink.version}version>
    dependency>

    <dependency>
      <groupId>org.apache.flinkgroupId>
      <artifactId>flink-cep_${scala.binary.version}artifactId>
      <version>${flink.version}version>
    dependency>

    
    <dependency>
      <groupId>org.slf4jgroupId>
      <artifactId>slf4j-apiartifactId>
      <version>${slf4j.version}version>
    dependency>
    <dependency>
      <groupId>org.slf4jgroupId>
      <artifactId>slf4j-log4j12artifactId>
      <version>${slf4j.version}version>
    dependency>
    <dependency>
      <groupId>org.apache.logging.log4jgroupId>
      <artifactId>log4j-to-slf4jartifactId>
      <version>2.14.0version>
    dependency>

    <dependency>
      <groupId>org.apache.hadoopgroupId>
      <artifactId>hadoop-clientartifactId>
      <version>2.7.5version>
      <scope>providedscope>
    dependency>

  dependencies>


  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.pluginsgroupId>
        <artifactId>maven-shade-pluginartifactId>
        <version>3.2.4version>
        <executions>
          <execution>
            <phase>packagephase>
            <goals>
              <goal>shadegoal>
            goals>
            <configuration>
              <artifactSet>
                <excludes>
                  <exclude>com.google.code.findbugs:jsr305exclude>
                  <exclude>org.slf4j:*exclude>
                  <exclude>log4j:*exclude>
                  <exclude>org.apache.hadoop:*exclude>
                excludes>
              artifactSet>
              <filters>
                <filter>
                  
                  <artifact>*:*artifact>
                  <excludes>
                    <exclude>META-INF/*.SFexclude>
                    <exclude>META-INF/*.DSAexclude>
                    <exclude>META-INF/*.RSAexclude>
                  excludes>
                filter>
              filters>
              <transformers combine.children="append">
                <transformer
                        implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer">
                transformer>
              transformers>
            configuration>
          execution>
        executions>
      plugin>
    plugins>
  build>

project>

你可能感兴趣的:(flink,xml,大数据)