以OJDBC为范例,先下载ojdbc.jar的JAR
1。运行命令:
- mvn deploy:deploy-file -DgroupId=com.oracle -DartifactId=ojdbc14
- -Dversion=10.2 . 0.3 . 0 -Dpackaging=jar -Dfile=ojdbc.jar
- -Durl=http://localhost:8081/nexus/content/repositories/thirdparty
- -DrepositoryId=thirdparty
2。登陆NEXUS管理平台
Repositories→3thrid party→artifact Upload
GAV Definition: 选择POM (POM在运行MVN INSTALL时会加载,但会提示JAR不能下载)
Select Artifact(s) to Upload: 选择ojdbc.jar
选择完毕后 点击 Add Artifact
最后选择 Upload Artifact(s)