maven私服

1、配置本地maven settings.xml 使用私服


    
        devlop
        
            
                
                nexus
                
                http://ip:port/nexus/content/groups/public/
                
                
                        false
                
                
                
                        true
                
            
        
        
            
            
                public
                http://ip:port/nexus/content/groups/public/
            
        
    



    
            devlop
    

2、发布jar到私服
配置本地maven settings.xml


    

  releases
  admin
  admin


  snapshots
  admin
  admin
  

待发布jar项目pom.xml配置


        
        
            releases
            Internal Releases
            http://ip:port/nexus/content/repositories/releases/
        
        
        
            snapshots
            Internal Snapshots
            http://ip:port/nexus/content/repositories/snapshots/
        
    

3、编译完成后使用deploy发布到私服即可

你可能感兴趣的:(maven私服)