swagger-maven-plugin是能生成 swagger 静态配置文件的 maven 插件。
这是官方提供的一个demo
但是官方的 demo 有个问题,就是不是以多模块的方式编译的项目,这是我的项目。 编译的时候报错,请问有人知道怎么解决这个问题吗?
[ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] ----------------------------------------------------- [ERROR] : javax.xml.bind.annotation.XmlRootElement [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
![]() | 1 anzu 2020-05-02 21:17:22 +08:00 ![]() 我试了编译你的项目没问题 |