切换到maven安装的bin目录
打开cmd窗口
执行命令
./mvn deploy:deploy-file -Dfile=CNERTICDecoder-1.0.2.jar -DgroupId=cn.com.cennavi.decoder -DartifactId=out-CNERTICDecoder -Dversion=1.0.2 -Dpackaging=jar -Durl=http://xxx/nexus/content/repositories/thirdparty -DrepositoryId=thirdparty
需要保证settings.xml里面有仓库地址和账号
<server>
<id>thirdparty</id>
<username>admin</username>
<password>admin</password>
</server>
<mirror>
<id>thirdparty</id>
<name>thirdparty</name>
<mirrorOf>*</mirrorOf>
<url>http://xxx/nexus/content/repositories/thirdparty</url>
</mirror>
标签:CNERTICDecoder,thirdparty,1.0,包上,deploy,jar,maven From: https://www.cnblogs.com/xiaoxiaoyu0707/p/17861460.html