上传jar包至maven私服
2024-08-24 20:51:00
1.maven环境变量配置(新建系统变量,编辑Path)
2.修改maven的setting文件
2.1 私服的用户配置
2.2 私服镜像配置
2.3 (我也不知道是啥)
<profile>
<id>nexus</id>
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories> <pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles> <activeProfiles>
<activeProfile>nexus</activeProfile>
</activeProfiles>
3.在cmd中执行命令:
mvn deploy:deploy-file -Dfile=D:/springboot/db2jcc.jar -DgroupId=com.db2jcc -DartifactId=db2jcc -Dversion=11 -Dpackaging=jar -DrepositoryId=nexus -Durl=http://10.2.177.4:8081/nexus/repository/maven-releases
-Dfile:jar包在本地的路径
-DgroupId:对应于pom文件中的groupId
-DartifactId:对应于pom文件中的artifactId
-Dversion:对应于pom文件中的version
-Durl:私服的maven仓库
最新文章
- REPL LOG
- 提高IO性能
- 转:Python获取随机数(中文)
- 在线快速生成 CSS Sptite 的网站
- Leetcode--Add two number
- mysql启动错误
- [Js/Jquery]天气接口简单使用
- 为什么iphone手机比android手机流畅
- linux 历史命令用法(转)
- HTML、CSS、JS 样式
- 初探arch -小白安装arch篇
- LTPS、IGZO、OLED都是什么?【转】
- 如何在eclipse添加SVN菜单
- Spring使用Cache、整合Ehcache(转)
- Kiss MySQL goodbye for development and say hello to HSQLDB
- async函数对比Generator函数
- C#使用mybatis学习笔记
- Ibatis.Net <;![CDATA[ ]]>;标记学习(九)
- Android 隐藏虚拟按键,并且全屏
- 20145203 盖泽双《Java程序设计》第一周的学习总结
热门文章
- javascript 使用 load 和 unload 事件,解决浏览器打开和关闭时需要做的操作。
- springboot的启动类不能直接放在src/java目录下,不然会报错
- 【转发】【composer】composer 命令行介绍
- The US in understimating Huawei, says founder Ren zhengfei
- (转)UITextField
- python库——h5py入门讲解
- PYDay6- 内置函数、验证码、文件操作、发送邮件函数
- vue.js+element-ui
- python-通过openpy操作excel
- iOS学习笔记17-FMDB