Thursday, November 29, 2012

Repository rejected artifact "due to its snapshot/release handling policy."

I'm a newbie in proxy maven server management. I have a problem with download own artefactory from my maven server. To solver this problem put this in your pom.xml [1]http://forums.jfrog.org/Repository-rejected-artifact-quot-due-to-its-snapshot-release-handling-policy-quot-td6513457.html

  
   ubuntu-releases
   ubuntu-releases
   http://serverMaven:8080/artifactory/libs-release-local
   
    interval:1
   
  
  
   ubuntu-snapshots
   ubuntu-snapshots
   http://serverMaven:8080/artifactory/libs-snapshot-local
   
    false
   
   
    true
    interval:1
   
  
 

GWT proyect in eclipse and maven

To create a GWT proyect in eclipse or another IDE use console the Archetype execute this command Use it as you would any other Maven archetype to create a template/stub project. launch this command y your console cmd> or terminal> mvn archetype:generate \ -DarchetypeGroupId=org.codehaus.mojo \ -DarchetypeArtifactId=gwt-maven-plugin \ -DarchetypeVersion=2.5.0 The generated project can then be imported as "existing project" into Eclipse, and run command-line maven to launch GWT 'mvn gwt:run' with plugin M2E. [1] But M2E has a problem: M2E problem : Plugin execution not covered by lifecycle configuration solver. Ref in [2] put this in your pom.

            
                
                    org.eclipse.m2e
                    lifecycle-mapping
                    1.0.0
                    
                        
                            
                                
                                    
                                        org.codehaus.mojo
                                        gwt-maven-plugin
                                        [2.4.0,)
                                        
                                            resources
                                            compile
                                            i18n
                                           generateAsync
                                        
                                    
                                    
                                        
                                    
                                
                                
                                    
                                        org.apache.maven.plugins
                                        maven-war-plugin
                                        [2.1.1,)
                                        
                                            exploded
                                        
                                    
                                    
                                        
                                    
                                

                            
                        
                    
                
            
        
[1]http://mojo.codehaus.org/gwt-maven-plugin/user-guide/archetype.html [2]http://stackoverflow.com/questions/8523737/getting-error-plugin-execution-not-covered-by-lifecycle-configuration-with-gwt