赞
踩
id随意,url是打包到哪个文件夹里面
在需要打包的项目的pom中添加
<distributionManagement>
<repository>
<id>handsomehuang-maven</id>
<url>file:D:/workspace/java/2023/repo/maven-repository/</url>
</repository>
</distributionManagement>
记得先关联起来…
git add .
git commit -m "commit"
git push -u origin "master"
<dependencies> <!-- 使用远程仓库的maven --> <dependency> <groupId>com.huang.lightweight</groupId> <artifactId>lightweight-client-spring-boot-starter</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> </dependencies> <!-- 配置一个远程仓库 --> <repositories> <repository> <!-- 随意 --> <id>handsomehuang-maven</id> <!-- {仓库地址}/raw/分支 --> <url>https://gitee.com/huangjianguo2000/maven-repository/raw/master</url> </repository> </repositories>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。