mvn deploy:deploy-file -Dfile=E:\repository\flex\messaging\flex-messaging-remoting\test\flex-messaging-remoting-7.1.4.jar -DgroupId=flex.messaging -DartifactId=flex-messaging-remoting -Dversion=7.1.4 -Dpackaging=jar -DrepositoryId=rdc-*** -Durl=https://packages.aliyun.com/maven/*****/
repositoryId等于maven配置文件中server的id。
url就是上传的地址,也能在maven配置文件中找到。
执行命令时,先把file所在文件夹除了jar文件删掉,然后在cmd窗口中执行以上命令。