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

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值