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仓库

最新文章

  1. REPL LOG
  2. 提高IO性能
  3. 转:Python获取随机数(中文)
  4. 在线快速生成 CSS Sptite 的网站
  5. Leetcode--Add two number
  6. mysql启动错误
  7. [Js/Jquery]天气接口简单使用
  8. 为什么iphone手机比android手机流畅
  9. linux 历史命令用法(转)
  10. HTML、CSS、JS 样式
  11. 初探arch -小白安装arch篇
  12. LTPS、IGZO、OLED都是什么?【转】
  13. 如何在eclipse添加SVN菜单
  14. Spring使用Cache、整合Ehcache(转)
  15. Kiss MySQL goodbye for development and say hello to HSQLDB
  16. async函数对比Generator函数
  17. C#使用mybatis学习笔记
  18. Ibatis.Net &lt;![CDATA[ ]]&gt;标记学习(九)
  19. Android 隐藏虚拟按键,并且全屏
  20. 20145203 盖泽双《Java程序设计》第一周的学习总结

热门文章

  1. javascript 使用 load 和 unload 事件,解决浏览器打开和关闭时需要做的操作。
  2. springboot的启动类不能直接放在src/java目录下,不然会报错
  3. 【转发】【composer】composer 命令行介绍
  4. The US in understimating Huawei, says founder Ren zhengfei
  5. (转)UITextField
  6. python库——h5py入门讲解
  7. PYDay6- 内置函数、验证码、文件操作、发送邮件函数
  8. vue.js+element-ui
  9. python-通过openpy操作excel
  10. iOS学习笔记17-FMDB