Open jakkkkead opened 4 years ago
com.github.uhfun swagger-more-annotations 1.0.2-SNAPSHOT src/main/java org.apache.maven.plugins maven-javadoc-plugin 3.1.1 javadoc process-classes com.github.uhfun.swagger.doclet.SwaggerMoreDoclet com.github.uhfun swagger-more-javadoc 1.0.2-SNAPSHOT com.xy xyPostalWork-api 0.0.1-SNAPSHOT -classDir ${project.build.outputDirectory} ${project.build.sourceDirectory} com.xy.service false org.springframework.boot spring-boot-maven-plugin 报错信息:Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:javadoc (default) on project xyPostalWork-api: Unable to parse configuration of mojo org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:javadoc for parameter additionalOptions: Cannot assign configuration entry 'additionalOptions' with value '-classDir E:\xyDiningWork\xyPostalWork-api\target\classes' of type java.lang.String to property of type java.lang.String[]
如果启动遇到问题你可以暂时先不适用"自动使用javadoc 生成注解"这个功能,你可以先直接在接口上添加注解
发一下你api包的pom.xml 我看一下是什么问题
<dependency>
<groupId>com.github.uhfun</groupId>
<artifactId>swagger-more-annotations</artifactId>
<version>1.0.2-SNAPSHOT</version>
</dependency>
src/main/java org.apache.maven.plugins maven-javadoc-plugin 3.1.1 javadoc process-classes com.github.uhfun.swagger.doclet.SwaggerMoreDoclet com.github.uhfun swagger-more-javadoc 1.0.2-SNAPSHOT com.xy xyPostalWork-api 0.0.1-SNAPSHOT -classDir ${project.build.outputDirectory} ${project.build.sourceDirectory} com.xy.service false org.springframework.boot spring-boot-maven-plugin
报错信息指向
这一行
报错信息:Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:javadoc (default) on project xyPostalWork-api: Unable to parse configuration of mojo org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:javadoc for parameter additionalOptions: Cannot assign configuration entry 'additionalOptions' with value '-classDir E:\xyDiningWork\xyPostalWork-api\target\classes' of type java.lang.String to property of type java.lang.String[]