flink 1.17.1的pom.xml模板

flink 1.17.1的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>
  
  <url>http://www.example.comurl>

  <properties>
    <flink.version>1.17.1flink.version>
  properties>


  <dependencies>
    <dependency>
      <groupId>cn.hutoolgroupId>
      <artifactId>hutool-allartifactId>
      <version>5.7.12version>
    dependency>

    <dependency>
    <groupId>org.apache.flinkgroupId>
    <artifactId>flink-streaming-javaartifactId>
    <version>${flink.version}version>
    <scope>providedscope>
  dependency>

  <dependency>
    <groupId>org.apache.flinkgroupId>
    <artifactId>flink-clientsartifactId>
    <version>${flink.version}version>
    <scope>providedscope>
  dependency>

  <dependency>
    <groupId>org.apache.flinkgroupId>
    <artifactId>flink-runtime-webartifactId>
    <version>${flink.version}version>
    <scope>providedscope>
  dependency>


  <dependency>
    <groupId>org.apache.flinkgroupId>
    <artifactId>flink-connector-filesartifactId>
    <version>${flink.version}version>
    <scope>providedscope>
  dependency>

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

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

  <dependency>
    <groupId>mysqlgroupId>
    <artifactId>mysql-connector-javaartifactId>
    <version>8.0.27version>
  dependency>

  
  <dependency>
    <groupId>org.apache.flinkgroupId>
    <artifactId>flink-connector-jdbcartifactId>
    <version>1.17-SNAPSHOTversion>
  dependency>

  <dependency>
    <groupId>org.apache.flinkgroupId>
    <artifactId>flink-statebackend-rocksdbartifactId>
    <version>${flink.version}version>
    <scope>providedscope>
  dependency>

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

  <dependency>
    <groupId>org.apache.flinkgroupId>
    <artifactId>flink-statebackend-changelogartifactId>
    <version>${flink.version}version>
    <scope>runtimescope>
  dependency>

  <dependency>
    <groupId>com.google.code.findbugsgroupId>
    <artifactId>jsr305artifactId>
    <version>1.3.9version>
  dependency>


  <dependency>
    <groupId>org.apache.flinkgroupId>
    <artifactId>flink-table-api-java-bridgeartifactId>
    <version>${flink.version}version>
  dependency>
  <dependency>
    <groupId>org.apache.flinkgroupId>
    <artifactId>flink-table-planner-loaderartifactId>
    <version>${flink.version}version>
  dependency>

  <dependency>
    <groupId>org.apache.flinkgroupId>
    <artifactId>flink-table-runtimeartifactId>
    <version>${flink.version}version>
  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,大数据)