Failed to execute goal com.github.kongchen:swagger-maven-plugin:3.1.5:generate (default-cli) on : Unable to parse configuration of mojo com.github.kongchen:swagger-maven-plugin:3.1.5:generate for parameter schemes: Cannot assign configuration entry 'schemes' with value 'http,https' of type java.lang.String to property of type java.util.List
swagger插件自动生成api文档碰到的坑,maven在编译时我这边报上面的异常,另一个同事正常。
<schemes>http,https<schemes>改为<schemes><scheme></scheme></schemes>成功。
Run Configurations ----->

应该和用到的maven jar包版本低有关系。
网友评论