maven上传文件到私服

发布时间 2023-04-14 17:30:35作者: 星海流浪人

将pom文件放到本地D盘:

在cmd切换到D盘目录:

mvn -e deploy:deploy-file -Dmaven.test.skip=true -Dfile=framework-boot-parent-2.9-HRYS-SNAPSHOT.pom -DgroupId=com.sinoservices -DartifactId=framework-boot-parent -Dversion=2.9-HRYS-SNAPSHOT -Dpackaging=pom -DrepositoryId=nexus-snapshots -Durl=http://IP:8081/nexus/content/repositories/snapshots/

 

上传成功标识: