swagger2mackup+maven插件生成静态文档出现的问题记录

通过http://blog.didispace.com/spring-boot-learning-21-2-5/ 地址学习swagger2mackup+maven插件生成静态文档。

主要内容如下:

swagger2mackup+maven插件生成静态文档出现的问题记录_第1张图片

使用的springboot版本 2.3.3.RELEASE

 

 

出现很多错误,解决方法有:

1、在maven的settings.xml加入阿里源的jcenter mirror(改过后没有删除)

swagger2mackup+maven插件生成静态文档出现的问题记录_第2张图片

2、最后一次报错内容:Could not find artifact ch.netzwerg:paleo-core:jar:0.11.0 in central (https://repo.maven.apache.org/...

解决方法:https://github.com/Swagger2Markup/swagger2markup/issues/300

把教程中加入的repository


    
        
            false
        
        jcenter-releases
        jcenter
        http://jcenter.bintray.com
    

换成以下的repository

 
        
            spring-libs-milestone
            https://repo.spring.io/libs-milestone
            
                false
            
        
        
    

    
        
            spring-plugins-release
            https://repo.spring.io/plugins-release
            
                false
            
        
    

解释:

markdown_to_asciidoc不能用了,被Spring Plugins Repository代替了。

These two swagger2markup plugins were constantly being unresolved and swagger2markup couldn't have worked:
markdown_to_asciidoc
paleo-core

Analyzing Maven Repository, these two problematic swagger2markup plugins were actually indexed by Spring Plugins Repository repository.

 

 

你可能感兴趣的:(springboot)