jar包上传maven私服

#cmd命令行输入:
mvn deploy:deploy-file "-DgroupId=net.xxx.base" "-DartifactId=EouBase" "-Dversion=1.2.3830" "-Dpackaging=jar" "-Dfile=D:\www\1.2.3830\EouBase-1.2.3830.jar" "-DrepositoryId=maven-releases" "-Durl=http://xxadmin:xxpc2021@192.168.0.11:8081/repository/maven-releases/" "-DpomFile=D:\www\1.2.3830\EouBase-1.2.3830.pom" #这种方法时要注意的是如果你要安装的jar和pom是位于本地repository的目录下,这个命令就会出错 (Cannot deploy artifact from the local repository…), 解决方法:将要安装的jar和pom copy到其它目录再安装,只要不在本地仓库目录都应该可以.
#
xxadmin:xxpc2021 maven登录名:密码@地址

 

posted @ 2022-03-29 10:09  一个九  阅读(123)  评论(0编辑  收藏  举报