1 nexus的下载地址:
http://www.sonatype.org/nexus/
2 使用maven插件进行上传jar包时要点选 offline
3 如下错误解决方法
4 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project mavenIntegration: Failed to deploy artifacts: Could not transfer artifact propIntegration:mavenIntegration:jar:1.0.0 from/to releases (http://172.0.0.1:8081/nexus/content/mytestrepositories/releases/): Connection to http://172.0.0.1:8081 refused: Connection timed out: connect -> [Help 1]
???
3 Cannot deployartifacts when Maven is in offline mode
Offline对勾去掉即可
4 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy(default-deploy) on project mavenIntegration: Failed to deploy artifacts: Couldnot transfer artifact propIntegration:mavenIntegration:jar:1.0.0 from/toreleases (http://172.0.0.1:8081/nexus/content/mytestrepositories/releases/):Connection to http://172.0.0.1:8081 refused: Connection timed out: connect-> [Help 1]
需要在settings里面设置帐号密码
5 Hosted 本地仓库 自己的
Proxy 代理仓库 中央仓库
Group 仓库组 合并用的
6 Release 不代理snapshot构件(不稳定而且不受控制)
7 添加一个代理仓库
添加 proxy,id,name,远程路径
8 本地仓库管理
Release 自己的构建
Snapshots 自己的 snapshot构建
3rd Party 部署第三方构建,例如 jdbc驱动
9 管理仓库组
依赖一个,可以用组内所有内容
10) 搜索构建 有时候没有,只需重新登录就好了
7)