trino402版本在Windows上源码部署

1、场景介绍

 因为公司的业务场景,很多需要支持的数据源在332这个版本上不太健全,在查询的时候会出现问题,所以需要部署最新版的源码来测试功能。当最新版的功能健全,而332版本不全时,会将最新版的部分源码移植到332版本中。毕竟在公司的主业务还是依托332这个版本。下面这篇文档是我在部署402环境的配置过程,特此记录一下。

2、jdk安装环境

通过官方文档的要求,402的jdk是要求在17的,所以需要下载jdk17,下载链接如下:

https://download.oracle.com/graalvm/17/archive/graalvm-jdk-17.0.8_windows-x64_bin.zip

下载完成后进行解压部署,由于我电脑配置了jdk1.8 和jdk17双环境,我就截图展示一下,具体的配置问题可以百度看看

 3、maven配置

我的maven配置是3.8.8 ,因为我看官网上的介绍是3.8.0以上的版本,在官网也就3.8.8最显眼,也就懒得找了

然后是关于这个setting.xml配置文件的配置,在这个配置文件中首先要将自己的仓库放在.m2这个仓库路径下,因为在项目中的初始地址是这个,所以尽量用初始地址。下面是我的配置文件,当中配置了阿里云加速

<?xml version="1.0" encoding="UTF-8"?>

<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
-->

<!--
 | This is the configuration file for Maven. It can be specified at two levels:
 |
 |  1. User Level. This settings.xml file provides configuration for a single user,
 |                 and is normally provided in ${user.home}/.m2/settings.xml.
 |
 |                 NOTE: This location can be overridden with the CLI option:
 |
 |                 -s /path/to/user/settings.xml
 |
 |  2. Global Level. This settings.xml file provides configuration for all Maven
 |                 users on a machine (assuming they're all using the same Maven
 |                 installation). It's normally provided in
 |                 ${maven.conf}/settings.xml.
 |
 |                 NOTE: This location can be overridden with the CLI option:
 |
 |                 -gs /path/to/global/settings.xml
 |
 | The sections in this sample file are intended to give you a running start at
 | getting the most out of your Maven installation. Where appropriate, the default
 | values (values used when the setting is not specified) are provided.
 |
 |-->
<settings xmlns="http://maven.apache.org/SETTINGS/1.2.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 http://maven.apache.org/xsd/settings-1.2.0.xsd">
  <!-- localRepository
   | The path to the local repository maven will use to store artifacts.
   |
   | Default: ${user.home}/.m2/repository
  <localRepository>/path/to/local/repo</localRepository>
  -->
  <localRepository>C:\Users\Administrator\.m2\repository</localRepository>

  <!-- interactiveMode
   | This will determine whether maven prompts you when it needs input. If set to false,
   | maven will use a sensible default value, perhaps based on some other setting, for
   | the parameter in question.
   |
   | Default: true
  <interactiveMode>true</interactiveMode>
  -->

  <!-- offline
   | Determines whether maven should attempt to connect to the network when executing a build.
   | This will have an effect on artifact downloads, artifact deployment, and others.
   |
   | Default: false
  <offline>false</offline>
  -->

  <!-- pluginGroups
   | This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.
   | when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers
   | "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.
   |-->
  <pluginGroups>
    <!-- pluginGroup
     | Specifies a further group identifier to use for plugin lookup.
    <pluginGroup>com.your.plugins</pluginGroup>
    -->
  </pluginGroups>

  <!-- proxies
   | This is a list of proxies which can be used on this machine to connect to the network.
   | Unless otherwise specified (by system property or command-line switch), the first proxy
   | specification in this list marked as active will be used.
   |-->
  <proxies>
    <!-- proxy
     | Specification for one proxy, to be used in connecting to the network.
     |
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>proxyuser</username>
      <password>proxypass</password>
      <host>proxy.host.net</host>
      <port>80</port>
      <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
    </proxy>
    -->
  </proxies>

  <!-- servers
   | This is a list of authentication profiles, keyed by the server-id used within the system.
   | Authentication profiles can be used whenever maven must make a connection to a remote server.
   |-->
  <servers>
    <!-- server
     | Specifies the authentication information to use when connecting to a particular server, identified by
     | a unique name within the system (referred to by the 'id' attribute below).
     |
     | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are
     |       used together.
     |
    <server>
      <id>deploymentRepo</id>
      <username>repouser</username>
      <password>repopwd</password>
    </server>
    -->

    <!-- Another sample, using keys to authenticate.
    <server>
      <id>siteServer</id>
      <privateKey>/path/to/private/key</privateKey>
      <passphrase>optional; leave empty if not used.</passphrase>
    </server>
    -->
  </servers>

  <!-- mirrors
   | This is a list of mirrors to be used in downloading artifacts from remote repositories.
   |
   | It works like this: a POM may declare a repository to use in resolving certain artifacts.
   | However, this repository may have problems with heavy traffic at times, so people have mirrored
   | it to several places.
   |
   | That repository definition will have a unique id, so we can create a mirror reference for that
   | repository, to be used as an alternate download site. The mirror site will be the preferred
   | server for that repository.
   |-->
  <mirrors>
    <!-- mirror
     | Specifies a repository mirror site to use instead of a given repository. The repository that
     | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
     | for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
     |
    <mirror>
      <id>mirrorId</id>
      <mirrorOf>repositoryId</mirrorOf>
      <name>Human Readable Name for this Mirror.</name>
      <url>http://my.repository.com/repo/path</url>
    </mirror>
     -->
	 
    <!--<mirror>
      <id>maven-default-http-blocker</id>
      <mirrorOf>external:http:*</mirrorOf>
      <name>Pseudo repository to mirror external repositories initially using HTTP.</name>
      <url>http://0.0.0.0/</url>
      <blocked>true</blocked>
    </mirror>
	
	
	<mirror>   
        <id>maven</id>
        <name>maven</name>
        <url>http://nexus.tdcops.club/repository/maven-public/</url>
        <mirrorOf>central</mirrorOf> 
	</mirror>
	-->
	<mirror>
        <id>alimaven</id>
        <mirrorOf>central</mirrorOf>
        <name>aliyun maven</name>
        <url>https://maven.aliyun.com/repository/central/</url>
  </mirror>
   <mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>        
    </mirror>
  </mirrors>

  <!-- profiles
   | This is a list of profiles which can be activated in a variety of ways, and which can modify
   | the build process. Profiles provided in the settings.xml are intended to provide local machine-
   | specific paths and repository locations which allow the build to work in the local environment.
   |
   | For example, if you have an integration testing plugin - like cactus - that needs to know where
   | your Tomcat instance is installed, you can provide a variable here such that the variable is
   | dereferenced during the build process to configure the cactus plugin.
   |
   | As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles
   | section of this document (settings.xml) - will be discussed later. Another way essentially
   | relies on the detection of a system property, either matching a particular value for the property,
   | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a
   | value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.
   | Finally, the list of active profiles can be specified directly from the command line.
   |
   | NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact
   |       repositories, plugin repositories, and free-form properties to be used as configuration
   |       variables for plugins in the POM.
   |
   |-->
  <profiles>
    <!-- profile
     | Specifies a set of introductions to the build process, to be activated using one or more of the
     | mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>
     | or the command line, profiles have to have an ID that is unique.
     |
     | An encouraged best practice for profile identification is to use a consistent naming convention
     | for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.
     | This will make it more intuitive to understand what the set of introduced profiles is attempting
     | to accomplish, particularly when you only have a list of profile id's for debug.
     |
     | This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.
    <profile>
      <id>jdk-1.4</id>

      <activation>
        <jdk>1.4</jdk>
      </activation>

      <repositories>
        <repository>
          <id>jdk14</id>
          <name>Repository for JDK 1.4 builds</name>
          <url>http://www.myhost.com/maven/jdk14</url>
          <layout>default</layout>
          <snapshotPolicy>always</snapshotPolicy>
        </repository>
      </repositories>
    </profile>
    -->

    <!--
     | Here is another profile, activated by the system property 'target-env' with a value of 'dev',
     | which provides a specific path to the Tomcat instance. To use this, your plugin configuration
     | might hypothetically look like:
     |
     | ...
     | <plugin>
     |   <groupId>org.myco.myplugins</groupId>
     |   <artifactId>myplugin</artifactId>
     |
     |   <configuration>
     |     <tomcatLocation>${tomcatPath}</tomcatLocation>
     |   </configuration>
     | </plugin>
     | ...
     |
     | NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to
     |       anything, you could just leave off the <value/> inside the activation-property.
     |
    <profile>
      <id>env-dev</id>

      <activation>
        <property>
          <name>target-env</name>
          <value>dev</value>
        </property>
      </activation>

      <properties>
        <tomcatPath>/path/to/tomcat/instance</tomcatPath>
      </properties>
    </profile>
    -->
	
	<profile>
		<!-- maven使用jdk1.8 --> 
		<id>jdk-1.8</id>
			  <!-- 开启jdk --> 
		<activation>
			<activeByDefault>true</activeByDefault>
			<jdk>1.8</jdk>
		</activation>
			
		<properties>
			  <!-- 配置编译器信息 -->
			<maven.compiler.source>1.8</maven.compiler.source>
			<maven.compiler.target>1.8</maven.compiler.target>
			<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
		</properties>
	</profile>
  </profiles>

  <!-- activeProfiles
   | List of profiles that are active for all builds.
   |
  <activeProfiles>
    <activeProfile>alwaysActiveProfile</activeProfile>
    <activeProfile>anotherAlwaysActiveProfile</activeProfile>
  </activeProfiles>
  -->
</settings>

配置完这些,只能说是将初始的过程完成了,下面就是加载项目、下载对应的jar包,在项目打包的时候我也遇到很多问题,所以将这个步骤粘贴出来。

4、idea配置

 要确保项目用的是jdk17 

 

 

1、项目打包 安装

完成上述这些步骤,项目应该就可以打包了。但是在打包之前需要注销一部分maven的配置文件,不然在打包的过程中有一些不知名的插件会出现异常的报错。我将自己的配置文件粘贴出来,你们可以自己对比着粘贴,当然也可以直接复制

按住CTRL健后点击下图的地方,进入到pom文件中,然后将下列配置文件信息粘贴进去

 

<?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>io.airlift</groupId>
    <artifactId>airbase</artifactId>
    <version>130</version>
    <packaging>pom</packaging>

    <name>airbase</name>
    <description>Base POM for Airlift</description>
    <url>https://github.com/airlift/airbase</url>

    <inceptionYear>2013</inceptionYear>

    <licenses>
        <license>
            <name>Apache License 2.0</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

<!--    <scm>-->
<!--        <connection>scm:git:git@github.com/airlift/airbase.git</connection>-->
<!--        <developerConnection>scm:git:git@github.com:airlift/airbase.git</developerConnection>-->
<!--        <url>https://github.com/airlift/airbase</url>-->
<!--        <tag>130</tag>-->
<!--    </scm>-->

    <developers>
        <!-- see git log -->
        <developer>
            <name>Airlift</name>
        </developer>
    </developers>

    <repositories>
        <repository>
            <id>sonatype-nexus-snapshots</id>
            <name>Sonatype Nexus Snapshots</name>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
    </repositories>

    <pluginRepositories>
        <pluginRepository>
            <id>sonatype-nexus-snapshots</id>
            <name>Sonatype Nexus Snapshots</name>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>

    <distributionManagement>
        <snapshotRepository>
            <id>${air.repository.snapshot.id}</id>
            <name>${air.repository.snapshot.name}</name>
            <url>${air.repository.snapshot.url}</url>
        </snapshotRepository>
        <repository>
            <id>${air.repository.release.id}</id>
            <name>${air.repository.release.name}</name>
            <url>${air.repository.release.url}</url>
        </repository>
    </distributionManagement>

    <properties>
        <!-- see http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding -->
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.build.targetJdk>8</project.build.targetJdk>
        <project.report.outputEncoding>UTF-8</project.report.outputEncoding>
        <project.report.inputEncoding>UTF-8</project.report.inputEncoding>

        <!-- airlift build specific options are prefixed air.build. -->

        <!-- Default jvm size for compiler, tests etc. -->
        <air.build.jvmsize>1024m</air.build.jvmsize>

        <!-- whether a release:perform automatically pushes the created files and tags to -->
        <!-- the upstream repository. Default is no. -->
        <air.release.push-changes>false</air.release.push-changes>
        <air.release.auto-version-submodules>true</air.release.auto-version-submodules>
        <air.release.release-profiles>oss-release</air.release.release-profiles>
        <air.release.preparation-goals>clean install</air.release.preparation-goals>
        <air.release.tag-name-format>@{project.version}</air.release.tag-name-format>

        <!-- define the thread count for parallel tests. -->
        <air.test.thread-count>1</air.test.thread-count>

        <!-- define the parallel mode for tests.  -->
        <!-- Check https://testng.org/doc/documentation-main.html#parallel-running for the possible values of this setting. -->
        <!-- At the time of this writing, the supported values for parallelism in testng for maven-surefire-plugin are: classes, methods. -->
        <air.test.parallel />

        <!-- define the JVM timezone to use when running tests. Default is 'UTC. -->
        <air.test.timezone>UTC</air.test.timezone>

        <!-- define the JVM language to use when running tests. Default is 'en'. -->
        <air.test.language>en</air.test.language>

        <!-- define the JVM region to use when running tests. Default is 'US'. -->
        <air.test.region>US</air.test.region>

        <!-- define the JVM size for forked tests. Defaults to build JVM size. -->
        <air.test.jvmsize>${air.build.jvmsize}</air.test.jvmsize>

        <!-- provide additional options for test JVM -->
        <air.test.jvm.additional-arguments />

        <!-- Lint mode for Javadoc. Defaults to 'all'. -->
        <air.javadoc.lint>all</air.javadoc.lint>

        <!-- Target Java version for Modernizer -->
        <air.modernizer.java-version>${project.build.targetJdk}</air.modernizer.java-version>

        <!-- compiler warnings treated as errors -->
        <air.compiler.fail-warnings>false</air.compiler.fail-warnings>

        <!-- Controls all the checkers run when building the project.            -->
        <!-- Can be activated with -Dair.check.skip-all=true on the command line. -->
        <air.check.skip-all>false</air.check.skip-all>
        <!-- Controls the basic checkers run when building the project.          -->
        <air.check.skip-basic>${air.check.skip-all}</air.check.skip-basic>
        <!-- Controls the extended checkers run when building the project.       -->
        <air.check.skip-extended>${air.check.skip-all}</air.check.skip-extended>

        <!-- basic checks -->
        <air.check.skip-enforcer>${air.check.skip-basic}</air.check.skip-enforcer>
        <air.check.skip-dependency>${air.check.skip-basic}</air.check.skip-dependency>
        <air.check.skip-duplicate-finder>${air.check.skip-basic}</air.check.skip-duplicate-finder>
        <air.check.skip-dependency-scope>${air.check.skip-basic}</air.check.skip-dependency-scope>

        <!-- extended checks -->
        <air.check.skip-spotbugs>${air.check.skip-extended}</air.check.skip-spotbugs>
        <air.check.skip-pmd>${air.check.skip-extended}</air.check.skip-pmd>
        <air.check.skip-license>${air.check.skip-extended}</air.check.skip-license>
        <air.check.skip-jacoco>${air.check.skip-extended}</air.check.skip-jacoco>
        <air.check.skip-modernizer>${air.check.skip-extended}</air.check.skip-modernizer>
        <air.check.skip-checkstyle>${air.check.skip-extended}</air.check.skip-checkstyle>

        <!-- all checks -->
        <air.check.fail-all>true</air.check.fail-all>
        <air.check.fail-basic>${air.check.fail-all}</air.check.fail-basic>
        <air.check.fail-extended>${air.check.fail-all}</air.check.fail-extended>

        <!-- basic checks -->
        <air.check.fail-enforcer>${air.check.fail-basic}</air.check.fail-enforcer>
        <air.check.fail-dependency>${air.check.fail-basic}</air.check.fail-dependency>
        <air.check.fail-duplicate-finder>${air.check.fail-basic}</air.check.fail-duplicate-finder>
        <air.check.fail-dependency-scope>${air.check.fail-basic}</air.check.fail-dependency-scope>

        <!-- extended checks -->
        <air.check.fail-spotbugs>${air.check.fail-extended}</air.check.fail-spotbugs>
        <air.check.fail-pmd>${air.check.fail-extended}</air.check.fail-pmd>
        <air.check.fail-license>${air.check.fail-extended}</air.check.fail-license>
        <air.check.fail-modernizer>${air.check.fail-extended}</air.check.fail-modernizer>
        <air.check.fail-checkstyle>${air.check.fail-basic}</air.check.fail-checkstyle>

        <!-- minimum maven version to build -->
        <air.maven.version>3.6.3</air.maven.version>

        <!-- minimum Java version to build -->
        <air.java.version>11</air.java.version>

        <!-- In Multimodule builds, override this to point at the parent directory for e.g. the license resources. -->
        <!-- See http://stackoverflow.com/questions/1012402/maven2-property-that-indicates-the-parent-directory    -->
        <air.main.basedir>${project.basedir}</air.main.basedir>

        <!-- ${argLine} is used by Jacoco to store commands to enable its agent, and then used in Surefire configuration.
             When Jacoco is not enabled, it will stay empty, otherwise it will be overwritten. -->
        <argLine />

        <!-- Plugin versions used in multiple places -->
        <dep.plugin.scm.version>1.8.1</dep.plugin.scm.version>
        <dep.plugin.surefire.version>3.0.0-M5</dep.plugin.surefire.version>

        <!-- Packaging for the tarball deployment -->
        <dep.packaging.version>0.163</dep.packaging.version>

        <!-- Dependency versions that should be the same everywhere. -->
        <dep.guice.version>5.1.0</dep.guice.version>
        <dep.guava.version>31.1-jre</dep.guava.version>
        <dep.slf4j.version>1.7.36</dep.slf4j.version>
        <dep.logback.version>1.2.11</dep.logback.version>
        <dep.javax-inject.version>1</dep.javax-inject.version>
        <dep.javax-validation.version>2.0.1.Final</dep.javax-validation.version>
        <dep.javax-servlet.version>4.0.1</dep.javax-servlet.version>
        <dep.bval.version>2.0.5</dep.bval.version>
        <dep.jackson.version>2.13.4</dep.jackson.version>
        <dep.jmxutils.version>1.21</dep.jmxutils.version>
        <dep.joda.version>2.11.1</dep.joda.version>
        <dep.spotbugs-annotations.version>4.7.2</dep.spotbugs-annotations.version>
        <dep.testng.version>6.10</dep.testng.version>
        <dep.assertj-core.version>3.18.1</dep.assertj-core.version>
        <dep.slice.version>0.44</dep.slice.version>
        <dep.modernizer.version>2.4.0</dep.modernizer.version>
        <dep.jmh.version>1.35</dep.jmh.version>
        <dep.junit.version>5.8.1</dep.junit.version>

        <!-- license headers -->
        <air.license.owner>${project.organization.name}</air.license.owner>
        <air.license.default-value>Copyright (C) ${project.inceptionYear} ${air.license.owner}</air.license.default-value>
        <air.license.ensure-match>Copyright \(C\) \d{4} .+</air.license.ensure-match>
        <air.license.header-file>license/apache-header.txt</air.license.header-file>
        <air.license.skip-existing-headers>false</air.license.skip-existing-headers>

        <!-- Checkstyle -->
        <air.checkstyle.config-file>checkstyle/airbase-checks.xml</air.checkstyle.config-file>

        <!-- Readme for launcher -->
        <air.readme.file>README.txt</air.readme.file>
        <air.readme.type>txt</air.readme.type>

        <!-- Properties for controlling distributionManagement -->
        <air.repository.snapshot.id>ossrh</air.repository.snapshot.id>
        <air.repository.snapshot.name>Sonatype Nexus Snapshots</air.repository.snapshot.name>
        <air.repository.snapshot.url>https://oss.sonatype.org/content/repositories/snapshots</air.repository.snapshot.url>
        <air.repository.release.id>ossrh</air.repository.release.id>
        <air.repository.release.name>Sonatype Release Snapshots</air.repository.release.name>
        <air.repository.release.url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</air.repository.release.url>
    </properties>

    <build>
        <extensions>
            <extension>
                <groupId>org.apache.maven.scm</groupId>
                <artifactId>maven-scm-provider-gitexe</artifactId>
                <version>${dep.plugin.scm.version}</version>
            </extension>
            <extension>
                <groupId>org.apache.maven.scm</groupId>
                <artifactId>maven-scm-manager-plexus</artifactId>
                <version>${dep.plugin.scm.version}</version>
            </extension>
        </extensions>

        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-scm-plugin</artifactId>
                    <version>${dep.plugin.scm.version}</version>
                    <configuration>
                        <connectionType>developerConnection</connectionType>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>2.8.2</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>3.0.0</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-install-plugin</artifactId>
                    <version>2.5.2</version>
                </plugin>

                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>build-helper-maven-plugin</artifactId>
                    <version>1.7</version>
                </plugin>

<!--                <plugin>-->
<!--                    <groupId>org.apache.maven.plugins</groupId>-->
<!--                    <artifactId>maven-enforcer-plugin</artifactId>-->
<!--                    <version>3.0.0</version>-->
<!--                    <dependencies>-->
<!--                        <dependency>-->
<!--                            <groupId>org.codehaus.mojo</groupId>-->
<!--                            <artifactId>extra-enforcer-rules</artifactId>-->
<!--                            <version>1.4</version>-->
<!--                        </dependency>-->
<!--                    </dependencies>-->
<!--                    <executions>-->
<!--                        <execution>-->
<!--                            <id>default</id>-->
<!--                            <phase>validate</phase>-->
<!--                            <goals>-->
<!--                                <goal>enforce</goal>-->
<!--                            </goals>-->
<!--                        </execution>-->
<!--                    </executions>-->
<!--                    <configuration>-->
<!--                        <skip>${air.check.skip-enforcer}</skip>-->
<!--                        <fail>${air.check.fail-enforcer}</fail>-->
<!--                        <failFast>false</failFast>-->
<!--                        <rules>-->
<!--                            &lt;!&ndash; The following dependencies are hazardous for builds. &ndash;&gt;-->
<!--                            <bannedDependencies>-->
<!--                                <excludes>-->
<!--                                    &lt;!&ndash; clashes with commons-logging:commons-logging &ndash;&gt;-->
<!--                                    <exclude>commons-logging:commons-logging-api</exclude>-->
<!--                                    &lt;!&ndash; old versions of junit repackage hamcrest &ndash;&gt;-->
<!--                                    <exclude>junit:junit</exclude>-->
<!--                                    &lt;!&ndash; use guava &ndash;&gt;-->
<!--                                    <exclude>com.google.collections:google-collections</exclude>-->
<!--                                    &lt;!&ndash; but not the badly numbered ones... &ndash;&gt;-->
<!--                                    <exclude>com.google.guava:guava</exclude>-->
<!--                                    &lt;!&ndash; the non-empty verison overlaps with classes in guava &ndash;&gt;-->
<!--                                    <exclude>com.google.guava:listenablefuture</exclude>-->
<!--                                    &lt;!&ndash; Contains FindBugs annotations, JSR-305 and JCIP annotations &ndash;&gt;-->
<!--                                    <exclude>com.google.code.findbugs:annotations</exclude>-->
<!--                                    &lt;!&ndash; Use the official version at javax.servlet:javax.servlet-api &ndash;&gt;-->
<!--                                    <exclude>org.eclipse.jetty.orbit:javax.servlet</exclude>-->
<!--                                    &lt;!&ndash; Renamed airlift modules &ndash;&gt;-->
<!--                                    <exclude>io.airlift:discovery-experimental</exclude>-->
<!--                                    <exclude>io.airlift:event-experimental</exclude>-->
<!--                                    <exclude>io.airlift:http-client-experimental</exclude>-->
<!--                                    <exclude>io.airlift:jmx-http-experimental</exclude>-->
<!--                                    <exclude>io.airlift:jmx-http-rpc-experimental</exclude>-->
<!--                                    <exclude>io.airlift:rack-experimental</exclude>-->
<!--                                    <exclude>io.airlift:rack-launcher-experimental</exclude>-->
<!--                                    <exclude>io.airlift:rack-packaging-experimental</exclude>-->
<!--                                    <exclude>io.airlift:rack-server-base-experimental</exclude>-->
<!--                                    &lt;!&ndash; log4j2 versions < 2.15.0 are vulnerable to the Log4Shell RCE (CVE-2021-44228) &ndash;&gt;-->
<!--                                    <exclude>org.apache.logging.log4j:log4j-core:(,2.15.0)</exclude>-->
<!--                                </excludes>-->
<!--                                <includes>-->
<!--                                    &lt;!&ndash; whitelist the well numbered guava releases &ndash;&gt;-->
<!--                                    <include>com.google.guava:guava:[10.0.1,)</include>-->
<!--                                    &lt;!&ndash; newer versions of junit do not repackage hamcrest &ndash;&gt;-->
<!--                                    <include>junit:junit:[4.11,)</include>-->
<!--                                </includes>-->
<!--                            </bannedDependencies>-->
<!--                            <banDuplicatePomDependencyVersions />-->
<!--                            <requireUpperBoundDeps />-->
<!--                            <requireMavenVersion>-->
<!--                                <version>${air.maven.version}</version>-->
<!--                            </requireMavenVersion>-->
<!--                            <requireJavaVersion>-->
<!--                                <version>${air.java.version}</version>-->
<!--                            </requireJavaVersion>-->
<!--                            <enforceBytecodeVersion>-->
<!--                                <maxJdkVersion>${project.build.targetJdk}</maxJdkVersion>-->
<!--                                <ignoredScopes>test</ignoredScopes>-->
<!--                                <excludes>-->
<!--                                    <exclude>org.eclipse.jetty:jetty-alpn-java-client</exclude>-->
<!--                                    <exclude>org.eclipse.jetty:jetty-alpn-java-server</exclude>-->
<!--                                </excludes>-->
<!--                            </enforceBytecodeVersion>-->
<!--                        </rules>-->
<!--                    </configuration>-->
<!--                </plugin>-->

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-dependency-plugin</artifactId>
                    <version>3.3.0</version>
                    <configuration>
                        <skip>${air.check.skip-dependency}</skip>
                        <failOnWarning>${air.check.fail-dependency}</failOnWarning>
                        <ignoreNonCompile>true</ignoreNonCompile>
                    </configuration>
<!--                    <executions>-->
<!--                        <execution>-->
<!--                            <id>default</id>-->
<!--                            <phase>process-test-classes</phase>-->
<!--                            <goals>-->
<!--                                <goal>analyze-only</goal>-->
<!--                                <goal>analyze-duplicate</goal>-->
<!--                            </goals>-->
<!--                        </execution>-->
<!--                    </executions>-->
                </plugin>

                <!-- Tweak the compiler to use more memory and use UTF-8 for the source code. -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.9.0</version>
                    <configuration>
                        <source>${project.build.targetJdk}</source>
                        <release>${project.build.targetJdk}</release>
                        <encoding>${project.build.sourceEncoding}</encoding>
                        <maxmem>${air.build.jvmsize}</maxmem>
                        <failOnWarning>${air.compiler.fail-warnings}</failOnWarning>
                        <showWarnings>true</showWarnings>
                        <fork>true</fork>
                        <parameters>true</parameters>
                    </configuration>
                </plugin>

                <!-- Resource plugins should always use UTF-8 -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>3.2.0</version>
                    <configuration>
                        <encoding>${project.build.sourceEncoding}</encoding>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <version>3.3.0</version>
                    <configuration>
                        <!-- must be true for jar-with-dependencies builds -->
                        <appendAssemblyId>true</appendAssemblyId>
                        <!-- Always use Posix tar mode. -->
                        <tarLongFileMode>posix</tarLongFileMode>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>${dep.plugin.surefire.version}</version>
                    <configuration>
                        <systemPropertyVariables>
                            <sun.jnu.encoding>${project.build.sourceEncoding}</sun.jnu.encoding>
                            <java.awt.headless>true</java.awt.headless>
                            <java.util.logging.SimpleFormatter.format>%1$tY-%1$tm-%1$tdT%1$tH:%1$tM:%1$tS.%1$tL%1$tz %4$s %5$s%6$s%n</java.util.logging.SimpleFormatter.format>
                        </systemPropertyVariables>
                        <trimStackTrace>false</trimStackTrace>
                        <runOrder>random</runOrder>
                        <failIfNoTests>true</failIfNoTests>
                        <parallel>${air.test.parallel}</parallel>
                        <threadCount>${air.test.thread-count}</threadCount>
                        <!-- @{argLine} is for Jacoco: https://www.eclemma.org/jacoco/trunk/doc/prepare-agent-mojo.html -->
                        <argLine>
                            @{argLine}

                            <!-- Pass the following three directly to the JVM,
                                 because systemPropertyVariables are not passed correctly by Maven -->
                            -Duser.timezone=${air.test.timezone}
                            -Duser.language=${air.test.language}
                            -Duser.region=${air.test.region}

                            -Dfile.encoding=${project.build.sourceEncoding}
                            -Xmx${air.test.jvmsize}
                            -Xms${air.test.jvmsize}
                            -XX:+ExitOnOutOfMemoryError
                            -XX:+HeapDumpOnOutOfMemoryError
                            -XX:-OmitStackTraceInFastThrow
                            ${air.test.jvm.additional-arguments}
                        </argLine>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.5</version>
                    <configuration>
                        <releaseProfiles>${air.release.release-profiles}</releaseProfiles>
                        <autoVersionSubmodules>${air.release.auto-version-submodules}</autoVersionSubmodules>
                        <mavenExecutorId>forked-path</mavenExecutorId>
                        <pushChanges>${air.release.push-changes}</pushChanges>
                        <localCheckout>true</localCheckout>
                        <preparationGoals>${air.release.preparation-goals}</preparationGoals>
                        <tagNameFormat>${air.release.tag-name-format}</tagNameFormat>
                        <useReleaseProfile>false</useReleaseProfile>
                        <goals>deploy</goals>
                    </configuration>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <version>3.2.0</version>
                    <configuration>
                        <quiet>true</quiet>
                        <source>${project.build.targetJdk}</source>
                        <encoding>${project.build.sourceEncoding}</encoding>
                        <maxmemory>${air.build.jvmsize}</maxmemory>
                        <doclint>${air.javadoc.lint}</doclint>
                    </configuration>
                    <executions>
                        <execution>
                            <id>attach-javadocs</id>
                            <phase>verify</phase>
                            <goals>
                                <goal>jar</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>

                <!-- Always build a jar with the test classes -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-jar-plugin</artifactId>
                    <version>3.2.0</version>
<!--                    <executions>-->
<!--                        <execution>-->
<!--                            <id>attach-tests</id>-->
<!--                            <phase>package</phase>-->
<!--                            <goals>-->
<!--                                <goal>test-jar</goal>-->
<!--                            </goals>-->
<!--                        </execution>-->
<!--                    </executions>-->
                    <configuration>
                        <!-- do not build an empty jar if the project is
                             e.g. a pom project -->
                        <skipIfEmpty>true</skipIfEmpty>
                        <archive>
                            <manifest>
                                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                                <addClasspath>false</addClasspath>
                            </manifest>
                            <manifestEntries>
                                <!-- This is actually the time when the build was done -->
                                <Build-Time>${git.build.time}</Build-Time>
                                <Git-Commit-Id>${git.commit.id}</Git-Commit-Id>
                                <Implementation-Version>${git.commit.id.describe}</Implementation-Version>
                            </manifestEntries>
                        </archive>
                    </configuration>
                </plugin>

<!--                <plugin>-->
<!--                    <groupId>pl.project13.maven</groupId>-->
<!--                    <artifactId>git-commit-id-plugin</artifactId>-->
<!--                    <version>4.0.5</version>-->
<!--                    <configuration>-->
<!--                        &lt;!&ndash; Include only properties used above to speed up build (https://github.com/git-commit-id/git-commit-id-maven-plugin/issues/462) &ndash;&gt;-->
<!--                        <includeOnlyProperties>-->
<!--                            <includeOnlyProperty>\Qgit.build.time</includeOnlyProperty>-->
<!--                            <includeOnlyProperty>\Qgit.commit.id</includeOnlyProperty>-->
<!--                            <includeOnlyProperty>\Qgit.commit.id.describe</includeOnlyProperty>-->
<!--                        </includeOnlyProperties>-->
<!--                        <dateFormat>yyyy-MM-dd'T'HH:mm:ssZZ</dateFormat>-->
<!--                        <gitDescribe>-->
<!--                            <tags>true</tags>-->
<!--                        </gitDescribe>-->
<!--                    </configuration>-->
<!--                </plugin>-->

                <!-- bundle up source code into jars for both the main and the test sources -->
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>3.2.0</version>
                    <executions>
                        <execution>
                            <id>attach-sources</id>
                            <phase>package</phase>
                            <goals>
                                <goal>jar-no-fork</goal>
                                <goal>test-jar-no-fork</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>

<!--                <plugin>-->
<!--                    <groupId>org.basepom.maven</groupId>-->
<!--                    <artifactId>duplicate-finder-maven-plugin</artifactId>-->
<!--                    <version>1.5.0</version>-->
<!--                    <executions>-->
<!--                        <execution>-->
<!--                            <id>default</id>-->
<!--                            <phase>process-test-classes</phase>-->
<!--                            <goals>-->
<!--                                <goal>check</goal>-->
<!--                            </goals>-->
<!--                        </execution>-->
<!--                    </executions>-->
<!--                    <configuration>-->
<!--                        <skip>${air.check.skip-duplicate-finder}</skip>-->
<!--                        <failBuildInCaseOfConflict>${air.check.fail-duplicate-finder}</failBuildInCaseOfConflict>-->
<!--                        <exceptions>-->
<!--                            &lt;!&ndash; Well done, Apache... &ndash;&gt;-->
<!--                            <exception>-->
<!--                                <conflictingDependencies>-->
<!--                                    <dependency>-->
<!--                                        <groupId>commons-beanutils</groupId>-->
<!--                                        <artifactId>commons-beanutils</artifactId>-->
<!--                                    </dependency>-->
<!--                                    <dependency>-->
<!--                                        <groupId>commons-beanutils</groupId>-->
<!--                                        <artifactId>commons-beanutils-core</artifactId>-->
<!--                                    </dependency>-->
<!--                                    <dependency>-->
<!--                                        <groupId>commons-collections</groupId>-->
<!--                                        <artifactId>commons-collections</artifactId>-->
<!--                                    </dependency>-->
<!--                                </conflictingDependencies>-->
<!--                                <classes>-->
<!--                                    <class>org.apache.commons.collections.ArrayStack</class>-->
<!--                                    <class>org.apache.commons.collections.Buffer</class>-->
<!--                                    <class>org.apache.commons.collections.BufferUnderflowException</class>-->
<!--                                    <class>org.apache.commons.collections.FastHashMap</class>-->
<!--                                </classes>-->
<!--                            </exception>-->
<!--                            <exception>-->
<!--                                <conflictingDependencies>-->
<!--                                    <dependency>-->
<!--                                        <groupId>commons-beanutils</groupId>-->
<!--                                        <artifactId>commons-beanutils</artifactId>-->
<!--                                    </dependency>-->
<!--                                    <dependency>-->
<!--                                        <groupId>commons-beanutils</groupId>-->
<!--                                        <artifactId>commons-beanutils-core</artifactId>-->
<!--                                    </dependency>-->
<!--                                </conflictingDependencies>-->
<!--                                <packages>-->
<!--                                    <package>org.apache.commons.beanutils</package>-->
<!--                                </packages>-->
<!--                            </exception>-->
<!--                        </exceptions>-->
<!--                        &lt;!&ndash; Ruby is hopeless &ndash;&gt;-->
<!--                        <ignoredDependencies>-->
<!--                            <dependency>-->
<!--                                <groupId>org.jruby</groupId>-->
<!--                                <artifactId>jruby-complete</artifactId>-->
<!--                            </dependency>-->
<!--                        </ignoredDependencies>-->
<!--                        <ignoredResourcePatterns>-->
<!--                            <ignoredResourcePattern>.*\.html</ignoredResourcePattern>-->
<!--                            <ignoredResourcePattern>META-INF/.*</ignoredResourcePattern>-->
<!--                            <ignoredResourcePattern>about_files/.*</ignoredResourcePattern>-->
<!--                            <ignoredResourcePattern>plugin\.properties</ignoredResourcePattern>-->
<!--                            <ignoredResourcePattern>.*\.java</ignoredResourcePattern>-->
<!--                            <ignoredResourcePattern>THIRD-PARTY</ignoredResourcePattern>-->
<!--                        </ignoredResourcePatterns>-->
<!--                    </configuration>-->
<!--                </plugin>-->

                <plugin>
                    <groupId>com.hubspot.maven.plugins</groupId>
                    <artifactId>dependency-scope-maven-plugin</artifactId>
                    <version>0.10</version>
                    <executions>
<!--                        <execution>-->
<!--                            <goals>-->
<!--                                <goal>check</goal>-->
<!--                            </goals>-->
<!--                            <configuration>-->
<!--                                <skip>${air.check.skip-dependency-scope}</skip>-->
<!--                                <fail>${air.check.fail-dependency-scope}</fail>-->
<!--                            </configuration>-->
<!--                        </execution>-->
                    </executions>
                </plugin>

<!--                <plugin>-->
<!--                    <groupId>com.github.spotbugs</groupId>-->
<!--                    <artifactId>spotbugs-maven-plugin</artifactId>-->
<!--                    <version>4.2.3</version>-->
<!--                    <configuration>-->
<!--                        <skip>${air.check.skip-spotbugs}</skip>-->
<!--                        <jvmArgs>-Xmx${air.build.jvmsize}</jvmArgs>-->
<!--                        <failOnError>${air.check.fail-spotbugs}</failOnError>-->
<!--                    </configuration>-->
<!--                    <executions>-->
<!--                        <execution>-->
<!--                            <id>default</id>-->
<!--                            <phase>verify</phase>-->
<!--                            <goals>-->
<!--                                <goal>check</goal>-->
<!--                            </goals>-->
<!--                        </execution>-->
<!--                    </executions>-->
<!--                </plugin>-->

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-pmd-plugin</artifactId>
                    <version>3.12.0</version>
                    <configuration>
                        <skip>${air.check.skip-pmd}</skip>
                        <failOnViolation>${air.check.fail-pmd}</failOnViolation>
                        <targetJdk>${project.build.targetJdk}</targetJdk>
                        <sourceEncoding>${project.build.sourceEncoding}</sourceEncoding>
                        <minimumTokens>100</minimumTokens>
                        <excludes>
                            <exclude>**/*Bean.java</exclude>
                            <exclude>**/generated/*.java</exclude>
                        </excludes>
                        <excludeRoots>
                            <excludeRoot>target/generated-sources/stubs</excludeRoot>
                        </excludeRoots>
                        <rulesets>
                            <ruleset>/rulesets/java/basic.xml</ruleset>
                            <ruleset>/rulesets/java/clone.xml</ruleset>
                            <ruleset>/rulesets/java/finalizers.xml</ruleset>
                        </rulesets>
                    </configuration>
                    <executions>
                        <execution>
                            <id>default</id>
                            <phase>verify</phase>
                            <goals>
                                <goal>check</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>

                <plugin>
                    <groupId>com.mycila</groupId>
                    <artifactId>license-maven-plugin</artifactId>
                    <version>3.0</version>
                    <dependencies>
                        <!-- This version must match the Airbase version. It will be updated by -->
                        <!-- the Maven Release plugin. The "project.version" property cannot be -->
                        <!-- used here as it will resolve to the version of the child project.  -->
                        <dependency>
                            <groupId>io.airlift</groupId>
                            <artifactId>airbase-policy</artifactId>
                            <version>130</version>
                        </dependency>
                    </dependencies>
                    <configuration>
                        <skip>${air.check.skip-license}</skip>
                        <skipExistingHeaders>${air.license.skip-existing-headers}</skipExistingHeaders>
                        <failIfMissing>${air.check.fail-license}</failIfMissing>
                        <header>${air.license.header-file}</header>
                        <mapping>
                            <java>SLASHSTAR_STYLE</java>
                            <g>SLASHSTAR_STYLE</g>
                            <g4>SLASHSTAR_STYLE</g4>
                        </mapping>
                        <properties>
                            <inceptionYear>${project.inceptionYear}</inceptionYear>
                        </properties>
                        <headerSections>
                            <headerSection>
                                <key>COPYRIGHT_SECTION</key>
                                <defaultValue>${air.license.default-value}</defaultValue>
                                <ensureMatch>${air.license.ensure-match}</ensureMatch>
                                <multiLineMatch>false</multiLineMatch>
                            </headerSection>
                        </headerSections>
                        <strictCheck>true</strictCheck>
                        <aggregate>true</aggregate>
                        <useDefaultExcludes>true</useDefaultExcludes>
                        <encoding>${project.build.sourceEncoding}</encoding>
                        <excludes>
                            <exclude>.*/**</exclude>
                            <exclude>**/*.md</exclude>
                            <exclude>**/*.sh</exclude>
                            <exclude>**/*.txt</exclude>
                            <exclude>**/*.thrift</exclude>
                            <exclude>**/*.sql</exclude>
                            <exclude>**/*.releaseBackup</exclude>
                            <exclude>**/*.st</exclude>
                            <exclude>**/*.raw</exclude>
                            <exclude>**/*.ser</exclude>
                            <exclude>**/*.html</exclude>
                            <exclude>**/*.rst</exclude>
                            <exclude>**/*.xml</exclude>
                            <exclude>**/*.csv</exclude>
                            <exclude>**/*.tsv</exclude>
                            <exclude>**/*.properties</exclude>
                            <exclude>**/src/license/**</exclude>
                            <exclude>**/src/*/resources/**</exclude>
                        </excludes>
                        <includes>
                            <include>src/**</include>
                        </includes>
                    </configuration>
                    <executions>
                        <execution>
                            <id>default</id>
                            <phase>validate</phase>
                            <goals>
                                <goal>check</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>

                <plugin>
                    <groupId>org.jacoco</groupId>
                    <artifactId>jacoco-maven-plugin</artifactId>
                    <version>0.8.8</version>
                    <executions>
                        <execution>
                            <id>default</id>
                            <goals>
                                <goal>prepare-agent</goal>
                            </goals>
                        </execution>
                        <execution>
                            <id>report</id>
                            <phase>prepare-package</phase>
                            <goals>
                                <goal>report</goal>
                            </goals>
                        </execution>
                    </executions>
                    <configuration>
                        <skip>${air.check.skip-jacoco}</skip>
                    </configuration>
                </plugin>

<!--                <plugin>-->
<!--                    <groupId>org.gaul</groupId>-->
<!--                    <artifactId>modernizer-maven-plugin</artifactId>-->
<!--                    <version>${dep.modernizer.version}</version>-->
<!--                    <configuration>-->
<!--                        <skip>${air.check.skip-modernizer}</skip>-->
<!--                        <failOnViolations>${air.check.fail-modernizer}</failOnViolations>-->
<!--                        <javaVersion>${air.modernizer.java-version}</javaVersion>-->
<!--                    </configuration>-->
<!--                    <executions>-->
<!--                        <execution>-->
<!--                            <id>modernizer</id>-->
<!--                            <goals>-->
<!--                                <goal>modernizer</goal>-->
<!--                            </goals>-->
<!--                        </execution>-->
<!--                    </executions>-->
<!--                </plugin>-->

<!--                <plugin>-->
<!--                    <groupId>org.apache.maven.plugins</groupId>-->
<!--                    <artifactId>maven-checkstyle-plugin</artifactId>-->
<!--                    <version>3.2.0</version>-->
<!--                    <dependencies>-->
<!--                        <dependency>-->
<!--                            <groupId>com.puppycrawl.tools</groupId>-->
<!--                            <artifactId>checkstyle</artifactId>-->
<!--                            <version>10.3.3</version>-->
<!--                        </dependency>-->
<!--                        &lt;!&ndash; This version must match the Airbase version. It will be updated by &ndash;&gt;-->
<!--                        &lt;!&ndash; the Maven Release plugin. The "project.version" property cannot be &ndash;&gt;-->
<!--                        &lt;!&ndash; used here as it will resolve to the version of the child project.  &ndash;&gt;-->
<!--                        <dependency>-->
<!--                            <groupId>io.airlift</groupId>-->
<!--                            <artifactId>airbase-policy</artifactId>-->
<!--                            <version>130</version>-->
<!--                        </dependency>-->
<!--                    </dependencies>-->
<!--                    <executions>-->
<!--                        <execution>-->
<!--                            <id>checkstyle</id>-->
<!--                            <phase>validate</phase>-->
<!--                            <goals>-->
<!--                                <goal>check</goal>-->
<!--                            </goals>-->
<!--                            <configuration>-->
<!--                                <skip>${air.check.skip-checkstyle}</skip>-->
<!--                                <failOnViolation>${air.check.fail-checkstyle}</failOnViolation>-->
<!--                                <includeTestSourceDirectory>true</includeTestSourceDirectory>-->
<!--                                <configLocation>${air.checkstyle.config-file}</configLocation>-->
<!--                            </configuration>-->
<!--                        </execution>-->
<!--                    </executions>-->
<!--                </plugin>-->

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-gpg-plugin</artifactId>
                    <version>1.4</version>
                    <configuration>
                        <useAgent>true</useAgent>
                    </configuration>
                    <executions>
                        <execution>
                            <id>sign-artifacts</id>
                            <phase>verify</phase>
                            <goals>
                                <goal>sign</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>3.2</version>
                </plugin>

                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-shade-plugin</artifactId>
                    <version>3.2.1</version>
                </plugin>
            </plugins>
        </pluginManagement>

        <!-- This is the list of plugins used for the main build. -->
        <!-- Check plugins (except dependency-plugin) are enabled using profiles. -->
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
            </plugin>

<!--            <plugin>-->
<!--                <groupId>pl.project13.maven</groupId>-->
<!--                <artifactId>git-commit-id-plugin</artifactId>-->
<!--                <executions>-->
<!--                    <execution>-->
<!--                        <id>default</id>-->
<!--                        <phase>initialize</phase>-->
<!--                        <goals>-->
<!--                            <goal>revision</goal>-->
<!--                        </goals>-->
<!--                    </execution>-->
<!--                </executions>-->
<!--            </plugin>-->
        </plugins>
    </build>

    <!-- The following dependency should be the same everywhere. -->
    <dependencyManagement>
        <dependencies>
            <!-- Google Guice -->
            <dependency>
                <groupId>com.google.inject</groupId>
                <artifactId>guice</artifactId>
                <version>${dep.guice.version}</version>
            </dependency>
            <dependency>
                <groupId>com.google.inject.extensions</groupId>
                <artifactId>guice-servlet</artifactId>
                <version>${dep.guice.version}</version>
            </dependency>
            <dependency>
                <groupId>com.google.inject.extensions</groupId>
                <artifactId>guice-assistedinject</artifactId>
                <version>${dep.guice.version}</version>
            </dependency>
            <dependency>
                <groupId>com.google.inject.extensions</groupId>
                <artifactId>guice-throwingproviders</artifactId>
                <version>${dep.guice.version}</version>
            </dependency>

            <!-- guava -->
            <dependency>
                <groupId>com.google.guava</groupId>
                <artifactId>guava</artifactId>
                <version>${dep.guava.version}</version>
                <exclusions>
                    <!-- this empty dependency is a hack and not needed -->
                    <exclusion>
                        <groupId>com.google.guava</groupId>
                        <artifactId>listenablefuture</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

            <!-- Java APIs -->
            <dependency>
                <groupId>javax.inject</groupId>
                <artifactId>javax.inject</artifactId>
                <version>${dep.javax-inject.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.servlet</groupId>
                <artifactId>javax.servlet-api</artifactId>
                <version>${dep.javax-servlet.version}</version>
            </dependency>
            <dependency>
                <groupId>javax.validation</groupId>
                <artifactId>validation-api</artifactId>
                <version>${dep.javax-validation.version}</version>
            </dependency>

            <!-- logging -->
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
                <version>${dep.slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-nop</artifactId>
                <version>${dep.slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-simple</artifactId>
                <version>${dep.slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-ext</artifactId>
                <version>${dep.slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>jcl-over-slf4j</artifactId>
                <version>${dep.slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>jul-to-slf4j</artifactId>
                <version>${dep.slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>log4j-over-slf4j</artifactId>
                <version>${dep.slf4j.version}</version>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-jdk14</artifactId>
                <version>${dep.slf4j.version}</version>
            </dependency>

            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-core</artifactId>
                <version>${dep.logback.version}</version>
            </dependency>
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
                <version>${dep.logback.version}</version>
            </dependency>

            <!-- jaxrs -->
            <dependency>
                <groupId>javax.ws.rs</groupId>
                <artifactId>javax.ws.rs-api</artifactId>
                <version>2.1.1</version>
            </dependency>

            <!-- jsr 250 -->
            <dependency>
                <groupId>javax.annotation</groupId>
                <artifactId>javax.annotation-api</artifactId>
                <version>1.3.2</version>
            </dependency>

            <!-- jackson -->
            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-annotations</artifactId>
                <version>${dep.jackson.version}</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-core</artifactId>
                <version>${dep.jackson.version}</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.core</groupId>
                <artifactId>jackson-databind</artifactId>
                <version>${dep.jackson.version}</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.module</groupId>
                <artifactId>jackson-module-parameter-names</artifactId>
                <version>${dep.jackson.version}</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.datatype</groupId>
                <artifactId>jackson-datatype-jdk8</artifactId>
                <version>${dep.jackson.version}</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.datatype</groupId>
                <artifactId>jackson-datatype-jsr310</artifactId>
                <version>${dep.jackson.version}</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.datatype</groupId>
                <artifactId>jackson-datatype-guava</artifactId>
                <version>${dep.jackson.version}</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.datatype</groupId>
                <artifactId>jackson-datatype-joda</artifactId>
                <version>${dep.jackson.version}</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.dataformat</groupId>
                <artifactId>jackson-dataformat-yaml</artifactId>
                <version>${dep.jackson.version}</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.dataformat</groupId>
                <artifactId>jackson-dataformat-smile</artifactId>
                <version>${dep.jackson.version}</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.dataformat</groupId>
                <artifactId>jackson-dataformat-cbor</artifactId>
                <version>${dep.jackson.version}</version>
            </dependency>

            <dependency>
                <groupId>com.fasterxml.jackson.dataformat</groupId>
                <artifactId>jackson-dataformat-ion</artifactId>
                <version>${dep.jackson.version}</version>
            </dependency>

            <!-- misc stuff -->
            <dependency>
                <groupId>org.apache.bval</groupId>
                <artifactId>bval-jsr</artifactId>
                <version>${dep.bval.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.osgi</groupId>
                        <artifactId>org.osgi.core</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>org.glassfish.jaxb</groupId>
                        <artifactId>jaxb-runtime</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

            <dependency>
                <groupId>org.weakref</groupId>
                <artifactId>jmxutils</artifactId>
                <version>${dep.jmxutils.version}</version>
            </dependency>
            <dependency>
                <groupId>joda-time</groupId>
                <artifactId>joda-time</artifactId>
                <version>${dep.joda.version}</version>
            </dependency>

            <!-- FindBugs / SpotBugs -->
            <dependency>
                <groupId>com.github.spotbugs</groupId>
                <artifactId>spotbugs-annotations</artifactId>
                <version>${dep.spotbugs-annotations.version}</version>
            </dependency>

            <!-- Modernizer -->
            <dependency>
                <groupId>org.gaul</groupId>
                <artifactId>modernizer-maven-annotations</artifactId>
                <version>${dep.modernizer.version}</version>
            </dependency>

            <!-- JSR-305 -->
            <dependency>
                <groupId>com.google.code.findbugs</groupId>
                <artifactId>jsr305</artifactId>
                <version>3.0.2</version>
            </dependency>

            <!-- jmh -->
            <dependency>
                <groupId>org.openjdk.jmh</groupId>
                <artifactId>jmh-core</artifactId>
                <version>${dep.jmh.version}</version>
            </dependency>

            <dependency>
                <groupId>org.openjdk.jmh</groupId>
                <artifactId>jmh-generator-annprocess</artifactId>
                <version>${dep.jmh.version}</version>
            </dependency>

            <!-- Testing -->
            <dependency>
                <groupId>org.testng</groupId>
                <artifactId>testng</artifactId>
                <version>${dep.testng.version}</version>
                <exclusions>
                    <exclusion>
                        <groupId>junit</groupId>
                        <artifactId>junit</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>com.google.inject</groupId>
                        <artifactId>guice</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>

            <dependency>
                <groupId>org.junit</groupId>
                <artifactId>junit-bom</artifactId>
                <type>pom</type>
                <version>${dep.junit.version}</version>
                <scope>import</scope>
            </dependency>
            
            <dependency>
                <groupId>org.assertj</groupId>
                <artifactId>assertj-core</artifactId>
                <version>${dep.assertj-core.version}</version>
            </dependency>

            <dependency>
                <groupId>io.airlift</groupId>
                <artifactId>slice</artifactId>
                <version>${dep.slice.version}</version>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <profiles>
        <!-- All the check plugins below are enabled unless air.check.skip-all is set.
        If other properties are set, like air.check.skip-extended, or air.check.skip-<name>,
        these plugins will be skipped in their configuration.
        Multiple properties cannot be used in activation, and properties are evaluated after activating profiles. -->
        <profile>
            <id>enforcer-check</id>
            <activation>
                <property>
                    <name>air.check.skip-all</name>
                    <value>!true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-enforcer-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>duplicate-finder-check</id>
            <activation>
                <property>
                    <name>air.check.skip-all</name>
                    <value>!true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.basepom.maven</groupId>
                        <artifactId>duplicate-finder-maven-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>dependency-scope-check</id>
            <activation>
                <property>
                    <name>air.check.skip-all</name>
                    <value>!true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.hubspot.maven.plugins</groupId>
                        <artifactId>dependency-scope-maven-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>spotbugs-check</id>
            <activation>
                <property>
                    <name>air.check.skip-all</name>
                    <value>!true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.github.spotbugs</groupId>
                        <artifactId>spotbugs-maven-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>pmd-check</id>
            <activation>
                <property>
                    <name>air.check.skip-all</name>
                    <value>!true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-pmd-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>license-check</id>
            <activation>
                <property>
                    <name>air.check.skip-all</name>
                    <value>!true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>com.mycila</groupId>
                        <artifactId>license-maven-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
        <profile>
            <id>jacoco-check</id>
            <activation>
                <property>
                    <name>air.check.skip-all</name>
                    <value>!true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.jacoco</groupId>
                        <artifactId>jacoco-maven-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>
<!--        <profile>-->
<!--            <id>modernizer-check</id>-->
<!--            <activation>-->
<!--                <property>-->
<!--                    <name>air.check.skip-all</name>-->
<!--                    <value>!true</value>-->
<!--                </property>-->
<!--            </activation>-->
<!--            <build>-->
<!--                <plugins>-->
<!--                    <plugin>-->
<!--                        <groupId>org.gaul</groupId>-->
<!--                        <artifactId>modernizer-maven-plugin</artifactId>-->
<!--                    </plugin>-->
<!--                </plugins>-->
<!--            </build>-->
<!--        </profile>-->
<!--        <profile>-->
<!--            <id>checkstyle-check</id>-->
<!--            <activation>-->
<!--                <property>-->
<!--                    <name>air.check.skip-all</name>-->
<!--                    <value>!true</value>-->
<!--                </property>-->
<!--            </activation>-->
<!--            <build>-->
<!--                <plugins>-->
<!--                    <plugin>-->
<!--                        <groupId>org.apache.maven.plugins</groupId>-->
<!--                        <artifactId>maven-checkstyle-plugin</artifactId>-->
<!--                    </plugin>-->
<!--                </plugins>-->
<!--            </build>-->
<!--        </profile>-->
        <profile>
            <id>oss-release</id>
            <properties>
                <!-- tests run in the preparation step of the release -->
                <skipTests>true</skipTests>
            </properties>
            <build>
                <plugins>
                    <!-- oss requires a javadoc jar. Build one when releasing. -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                    </plugin>
                    <!-- Sign artifacts using gpg for oss upload -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>ci</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                    </plugin>
                </plugins>
            </build>
        </profile>

        <profile>
            <id>eclipse-compiler</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-compiler-plugin</artifactId>
                        <configuration>
                            <compilerId>eclipse</compilerId>
                        </configuration>
                        <dependencies>
                            <dependency>
                                <groupId>org.codehaus.plexus</groupId>
                                <artifactId>plexus-compiler-eclipse</artifactId>
                                <version>2.8.3</version>
                            </dependency>
                        </dependencies>
                    </plugin>
                </plugins>
            </build>
        </profile>


        <!-- ======================================================================== -->
        <!-- =                                                                      = -->
        <!-- = Build a tarball with launcher from a module if .build-airlift        = -->
        <!-- = is present                                                           = -->
        <!-- =                                                                      = -->
        <!-- ======================================================================== -->

        <profile>
            <id>build-airlift</id>
            <activation>
                <file>
                    <exists>.build-airlift</exists>
                </file>
            </activation>

            <properties>
                <process-name>${project.artifactId}</process-name>
            </properties>

            <dependencies>
                <dependency>
                    <groupId>io.airlift</groupId>
                    <artifactId>launcher</artifactId>
                    <version>${dep.packaging.version}</version>
                    <classifier>bin</classifier>
                    <type>tar.gz</type>
                    <scope>runtime</scope>
                </dependency>

                <dependency>
                    <groupId>io.airlift</groupId>
                    <artifactId>launcher</artifactId>
                    <version>${dep.packaging.version}</version>
                    <classifier>properties</classifier>
                    <type>tar.gz</type>
                    <scope>runtime</scope>
                </dependency>
            </dependencies>

            <build>
                <plugins>
<!--                    <plugin>-->
<!--                        <groupId>org.apache.maven.plugins</groupId>-->
<!--                        <artifactId>maven-enforcer-plugin</artifactId>-->
<!--                        <configuration>-->
<!--                            <rules combine.children="append">-->
<!--                                <requireProperty>-->
<!--                                    <property>main-class</property>-->
<!--                                    <message>The main-class property must be specified when building an airlift tarball.</message>-->
<!--                                    <regex>.+</regex>-->
<!--                                    <regexMessage>The main-class property can not be empty.</regexMessage>-->
<!--                                </requireProperty>-->
<!--                            </rules>-->
<!--                        </configuration>-->
<!--                    </plugin>-->

                    <plugin>
                        <artifactId>maven-assembly-plugin</artifactId>
                        <configuration>
                            <appendAssemblyId>false</appendAssemblyId>
                            <attach>true</attach>
                            <descriptorRefs>
                                <descriptorRef>distribution</descriptorRef>
                            </descriptorRefs>
                        </configuration>
                        <dependencies>
                            <dependency>
                                <groupId>io.airlift</groupId>
                                <artifactId>packaging</artifactId>
                                <version>${dep.packaging.version}</version>
                            </dependency>
                        </dependencies>
                        <executions>
                            <execution>
                                <id>package</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>single</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>

                    <plugin>
                        <groupId>org.codehaus.mojo</groupId>
                        <artifactId>build-helper-maven-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>attach-readme</id>
                                <phase>package</phase>
                                <goals>
                                    <goal>attach-artifact</goal>
                                </goals>
                                <configuration>
                                    <artifacts>
                                        <artifact>
                                            <file>${air.readme.file}</file>
                                            <type>${air.readme.type}</type>
                                            <classifier>readme</classifier>
                                        </artifact>
                                    </artifacts>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>

解释完基础的配置后,需要在根目录下注释点配置 (trino-root)项目中的pom文件

完场了这些条件才能可以打包项目

需要跟图片保持一值,项目在打包时需要跳过测试

 2、配置类

点击加号后如图所示

将我下图箭头部分的内容补充完整

  • Main Class: io.trino.server.DevelopmentServer

  • VM Options: -ea -Dconfig=etc/config.properties -Dlog.levels-file=etc/log.properties -Djdk.attach.allowAttachSelf=true

  • Working directory: $MODULE_DIR$

  • Use classpath of module: trino-server-dev

关于Working directory的配置可以看我主页中关于332版本的环境部署

 

 3、修改window中限制问题

跟332环差不多,都可以参考借鉴

 

 

 当出现这个图标说明你已经部署完成了

当时在部署这个项目的时候有些环境配置可能没有写进入,具体大家可以看我主页中trino-332项目的配置。 

如果你都看到这个地方了,给一个三连支持一下,因为当中关于prestosql配置在我主页中也有写到

关于如何将402项目移植到332版本的部分,等我研究清楚后再写出来。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 3
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值