presto-jdbc二次开发基础环境配置

背景:为了集成权限系统以便对请求用户进行鉴权以及对请求进行加密解密,所以对presto-jdbc客户端进行改造

git:https://github.com/prestodb/presto.git

下载presto源码

git clone https://github.com/prestodb/presto.git

切换到最新的tag:0.218

git checkout 0.218

修改根目录的pom,跳过检查

删除
<air.check.skip-spotbugs>true</air.check.skip-spotbugs>
<air.check.skip-pmd>true</air.check.skip-pmd>
<air.check.skip-jacoco>true</air.check.skip-jacoco>

修改presto-jdbc 下的pom文件,修改artifactId,改成presto-jdbc-hhz

<artifactId>presto-jdbc-hhz</artifactId>
<name>presto-jdbc</name>

设置私服仓库地址

<distributionManagement>
    <repository>
        <id>nexus-releases</id>
        <url>http://172.16.4.146:8081/repository/maven-releases/</url>
    </repository>
    <snapshotRepository>
        <id>nexus-snapshots</id>
        <url>http://172.16.4.146:8081/repository/maven-snapshots/</url>
    </snapshotRepository>
</distributionManagement>

配置maven 的settings.xml

<server>
<id>nexus-releases</id>
<username>presto-hhz</username>
<password>123456</password>
</server>
 
<server>
<id>nexus-snapshots</id>
<username>presto-hhz</username>
<password>123456</password>
</server>

将presto-jdbc jar上传的私服

 mvn clean deploy -DskipTests -pl presto-jdbc -Dair.check.skip-all=true -Dmaven.javadoc.skip=true

在这里插入图片描述

发布了118 篇原创文章 · 获赞 37 · 访问量 17万+

猜你喜欢

转载自blog.csdn.net/woloqun/article/details/88845451