Maven 解决RELEASE和SNAPSHOT依赖问题

本文适用于,maven和nexus都已经正常配置,但是依赖包只能依赖RELEASE不能依赖SNAPSHOT

                 
        Nexus           
       http://192.168.xxx.xxx/content/groups/public/            
       *    
          
              
         Nexus2            
 http://192.168.xxx.xxx/content/groups/public/           
 public-snapshots // 对snapshots有效        

```

===========================================(娱乐分割线)

```    //定义public-snapshots profile        
  
public-snapshots 
                
                    
public-snapshots                    
http://public- snapshots
                    
                        
true                    
                    
                       
 true                   
                 
            
            
                
                    
public-snapshots                    
http://public-snapshots                    
                        
false                    
                    
                        
true                    
                
            
        
    
    ```
===========================================(娱乐分割线)
```        
 public-snapshots     
   //使profile生效。  ```

相关指令:```mvn eclipse:eclipse```

![QQ图片20161101085642.png](http://upload-images.jianshu.io/upload_images/2501502-df66ddd0d8a452c1.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

你可能感兴趣的:(Maven 解决RELEASE和SNAPSHOT依赖问题)