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

前端 未结 4 1656
孤独总比滥情好
孤独总比滥情好 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:31

    Not sure exactly, but looks like they might be using some form of the "buildnumber" maven plugin to include version control revision numbers.

    Take a look at http://snapshots.repository.codehaus.org//org/codehaus/mojo/tomcat-maven-plugin/1.0-SNAPSHOT/maven-metadata.xml and you'll notice that in addition to the normal stuff, theres a xml tag for buildnumber and timestamp.

    This may not be ideal, but you might be able to replace:

    1.0-SNAPSHOT
    

    with:

    1.0-20091222.232027-11
    

    To at least get up and running with the latest version of the plugin.

提交回复
热议问题