发布本地jar包到私服

1、pom文件添加:


    
        releases
        your company releases address
    
    
        snapshots
        your company snapshots address
    

2、maven的setting文件添加


  releases
  yourname
  yourpassword


  snapshots
  yourname
  yourpassword



   releases
   *
   releases
    your company releases address


   snapshots
   *
   snapshots
    your company snapshots address

3、其中id必须与项目的pom中配置distributionManagement的中的id相同,唯一表示

4、运行部署命令,完成

你可能感兴趣的:(JAVA)