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

被折叠的 条评论
为什么被折叠?



