maven发布项目到中央仓库

项目的pom文件增加


    
        nexus
        maven-releases
        http://106.13.170.241:8081/repository/maven-releases/
    
    
        nexus
        maven-snapshots
        http://106.13.170.241:8081/repository/maven-test/
    

maven的settings.xml增加


    
    
        
            nexus
            *
            http://106.13.170.241:8081/repository/maven-central/
        
    
    
    
        
            nexus
            
            
                
                    central
                    http://central
                    
                        true
                    
                    
                        true
                    
                
            
            
            
                
                    central
                    http://central
                    
                        true
                    
                    
                        true
                    
                
            
        
    
    
    
        nexus
    

    
        
            nexus
            admin
            admin123
        
    

你可能感兴趣的:(maven发布项目到中央仓库)