Maven is failing to download the tomcat-maven-plugin snapshot

前端 未结 4 1651
孤独总比滥情好
孤独总比滥情好 2020-12-11 23:04

Even after wiping out my settings.xml, I still get this error when trying to use this snapshot dependency. Given the dependency:



        
4条回答
  •  借酒劲吻你
    2020-12-11 23:50

    I know this post is a little old, but the tomcat maven plugin has been moved to the apache maven repository. Codehaus only hosts version 1.0 of the plugin. If you want 2.0-snapshot (so you can run tomcat 7), you need to change your pom.xml a little bit. Note that 2.0 is under development.

    
    ...
        
            people.apache.snapshots
            http://repository.apache.org/content/groups/snapshots-group/
            
                false
            
            
                true
            
        
    
    
    
        
            apache.snapshots
            Apache Snapshots
            http://repository.apache.org/content/groups/snapshots-group/
            
                false
            
            
                true
            
        
    
    

    And your plugin configuration goes like this:

    
        org.apache.tomcat.maven
        tomcat7-maven-plugin
        2.0-SNAPSHOT
    
    

提交回复
热议问题