maven

本文详细介绍使用Maven进行公司仓库部署的过程,包括跳过测试的打包命令,并演示如何在项目中通过Maven配置导入本地的jar包。此外,还展示了特定依赖项的配置,如txc-client和zkclient等,以及排除某些依赖项的方法。

-------------------------上传公司仓库---------jdzh-common------deploy

mvn package -Dmaven.test.skip=true

----导入本地jar -----studyidea----sample-txc-simple-GTS

<dependency>
    <groupId>com.taobao.txc</groupId>
    <artifactId>txc-client</artifactId>
    <version>2.0.72</version>
    <scope>system</scope>
    <systemPath>${basedir}/xxxx.jar</systemPath>
</dependency>
 <dependency>
     <groupId>org.apache.zookeeper</groupId>
     <artifactId>zookeeper</artifactId>
     <version>3.4.6</version>
    <!-- <exclusions>  
         <exclusion>  
                         <groupId>log4j</groupId>  
                         <artifactId>log4j</artifactId>  
         </exclusion>
     </exclusions>-->
 </dependency>
<!-- <dependency>
     <groupId>com.github.sgroschupf</groupId>
     <artifactId>zkclient</artifactId>
 </dependency>-->

 <!-- https://mvnrepository.com/artifact/com.101tec/zkclient -->
 <dependency>
     <groupId>com.101tec</groupId>
     <artifactId>zkclient</artifactId>
     <version>0.10</version>
 </dependency>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值