RELEASE 与 SNAPSHOT
SNAPSHOT:代表项目未完全完成,是未完成版本
RELEASE:代表项目已经完全完成,是正式发行版本
1.在Pom.xml文件中,添加语句
<!-- 配置当前工程保存在私服的具体位置-->
<distributionManagement>
<!-- 将当前工程放入release仓库中-->
<repository>
<id>itheima-release</id>
<url>http://localhost:8081/repository/itheima-release/</url>
</repository>
<!-- 将当前工程放入snapshot仓库中-->
<snapshotRepository>
<id>itheima-snapshot</id>
<url>http://localhost:8081/repository/itheima-snapshot/</url>
</snapshotRepository>
</distributionManagement>
2.点击maven生命周期中的deploy方法将工程上传到私服
install是将工程上传到本地仓库
3.在私服中点击浏览模式查看
私服修改中央仓库的路径
4.私服下载
直接在pom.xml文件中导入依赖即可