将第三方jar安装到maven私服
①下载Oracle的jar包(略)
②在maven的settings.xml配置文件中配置第三方仓库的server信息
```xml
<server>
<id>thirdparty</id>
<username>admin</username>
<password>admin123</password>
</server>
```
③执行mvn deploy命令进行安装
mvn deploy:deploy-file -Dfile=ojdbc14-10.2.0.4.0.jar -DgroupId=com.oracle -DartifactId=ojdbc14 –
Dversion=10.2.0.4.0 -Dpackaging=jar –
Durl=http://localhost:8081/nexus/content/repositories/thirdparty/ -DrepositoryId=thirdparty |
|