kongchen / swagger-maven-plugin

JAX-RS & SpringMVC supported maven build plugin, helps you generate Swagger JSON and API document in build phase.
http://kongchen.github.io/swagger-maven-plugin/
Apache License 2.0
761 stars 451 forks source link

what's problem blow,is still ok,since tody i can't complile it,place help me ... #495

Open JasonMsbaby opened 7 years ago

JasonMsbaby commented 7 years ago

Failed to execute goal com.github.kongchen:swagger-maven-plugin:3.1.4.RELEASE:generate (default) on project i_chengdu_server_consumer: Execution default of goal com.github.kongchen:swagger-maven-plugin:3.1.4.RELEASE:generate failed: A required class was missing while executing com.github.kongchen:swagger-maven-plugin:3.1.4.RELEASE:generate: com/fasterxml/jackson/module/jaxb/JaxbAnnotationModule [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>com.github.kongchen:swagger-maven-plugin:3.1.4.RELEASE [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/Users/jason/.m2/repository/com/github/kongchen/swagger-maven-plugin/3.1.4.RELEASE/swagger-maven-plugin-3.1.4.RELEASE.jar [ERROR] urls[1] = file:/Users/jason/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar [ERROR] urls[2] = file:/Users/jason/svn/i_chengdu/i_chengdu_server/trunk/i_chengdu_server_consumer/target/classes/ [ERROR] urls[3] = file:/Users/jason/.m2/repository/com/sky/util/util-framework-pom-consumer/1.1.0-SNAPSHOT/util-framework-pom-consumer-1.1.0-SNAPSHOT.jar [ERROR] urls[4] = file:/Users/jason/.m2/repository/com/sky/util/util-core/1.1.0-SNAPSHOT/util-core-1.1.0-SNAPSHOT.jar [ERROR] urls[5] = file:/Users/jason/.m2/repository/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar [ERROR] urls[6] = file:/Users/jason/.m2/repository/org/slf4j/slf4j-log4j12/1.7.21/slf4j-log4j12-1.7.21.jar [ERROR] urls[7] = file:/Users/jason/.m2/repository/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar [ERROR] urls[8] = file:/Users/jason/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar [ERROR] urls[9] = file:/Users/jason/.m2/repository/org/apache/httpcomponents/httpclient/4.3.2/httpclient-4.3.2.jar [ERROR] urls[10] = file:/Users/jason/.m2/repository/org/apache/httpcomponents/httpcore/4.3.3/httpcore-4.3.3.jar [ERROR] urls[11] = file:/Users/jason/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar [ERROR] urls[12] = file:/Users/jason/.m2/repository/ognl/ognl/3.1.10/ognl-3.1.10.jar [ERROR] urls[13] = file:/Users/jason/.m2/repository/cglib/cglib/3.2.4/cglib-3.2.4.jar [ERROR] urls[14] = file:/Users/jason/.m2/repository/org/ow2/asm/asm/5.1/asm-5.1.jar [ERROR] urls[15] = file:/Users/jason/.m2/repository/org/apache/ant/ant/1.9.6/ant-1.9.6.jar [ERROR] urls[16] = file:/Users/jason/.m2/repository/org/apache/ant/ant-launcher/1.9.6/ant-launcher-1.9.6.jar [ERROR] urls[17] = file:/Users/jason/.m2/repository/com/google/guava/guava/19.0/guava-19.0.jar [ERROR] urls[18] = file:/Users/jason/.m2/repository/com/enterprisedt/edtFTPj/2.0.3/edtFTPj-2.0.3.jar [ERROR] urls[19] = file:/Users/jason/.m2/repository/org/eclipse/persistence/org.eclipse.persistence.moxy/2.5.2-M1/org.eclipse.persistence.moxy-2.5.2-M1.jar [ERROR] urls[20] = file:/Users/jason/.m2/repository/org/eclipse/persistence/org.eclipse.persistence.core/2.5.2-M1/org.eclipse.persistence.core-2.5.2-M1.jar [ERROR] urls[21] = file:/Users/jason/.m2/repository/org/eclipse/persistence/org.eclipse.persistence.asm/2.5.2-M1/org.eclipse.persistence.asm-2.5.2-M1.jar [ERROR] urls[22] = file:/Users/jason/.m2/repository/org/eclipse/persistence/org.eclipse.persistence.antlr/2.5.2-M1/org.eclipse.persistence.antlr-2.5.2-M1.jar [ERROR] urls[23] = file:/Users/jason/.m2/repository/com/jcraft/jsch/0.1.54/jsch-0.1.54.jar [ERROR] urls[24] = file:/Users/jason/.m2/repository/com/sky/util/util-framework-filter-dubbo/1.1.0-SNAPSHOT/util-framework-filter-dubbo-1.1.0-SNAPSHOT.jar [ERROR] urls[25] = file:/Users/jason/.m2/repository/org/hibernate/hibernate-validator/5.2.4.Final/hibernate-validator-5.2.4.Final.jar [ERROR] urls[26] = file:/Users/jason/.m2/repository/org/jboss/logging/jboss-logging/3.2.1.Final/jboss-logging-3.2.1.Final.jar [ERROR] urls[27] = file:/Users/jason/.m2/repository/com/fasterxml/classmate/1.1.0/classmate-1.1.0.jar [ERROR] urls[28] = file:/Users/jason/.m2/repository/org/springframework/spring-beans/4.3.1.RELEASE/spring-beans-4.3.1.RELEASE.jar [ERROR] urls[29] = file:/Users/jason/.m2/repository/org/springframework/spring-context/4.3.1.RELEASE/spring-context-4.3.1.RELEASE.jar [ERROR] urls[30] = file:/Users/jason/.m2/repository/org/springframework/spring-aop/4.3.1.RELEASE/spring-aop-4.3.1.RELEASE.jar [ERROR] urls[31] = file:/Users/jason/.m2/repository/org/springframework/spring-expression/4.3.1.RELEASE/spring-expression-4.3.1.RELEASE.jar [ERROR] urls[32] = file:/Users/jason/.m2/repository/io/swagger/swagger-core/1.5.10/swagger-core-1.5.10.jar [ERROR] urls[33] = file:/Users/jason/.m2/repository/org/apache/commons/commons-lang3/3.2.1/commons-lang3-3.2.1.jar [ERROR] urls[34] = file:/Users/jason/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.4.5/jackson-annotations-2.4.5.jar [ERROR] urls[35] = file:/Users/jason/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.4.5/jackson-databind-2.4.5.jar [ERROR] urls[36] = file:/Users/jason/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.4.5/jackson-core-2.4.5.jar [ERROR] urls[37] = file:/Users/jason/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-joda/2.4.5/jackson-datatype-joda-2.4.5.jar [ERROR] urls[38] = file:/Users/jason/.m2/repository/joda-time/joda-time/2.2/joda-time-2.2.jar [ERROR] urls[39] = file:/Users/jason/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.4.5/jackson-dataformat-yaml-2.4.5.jar [ERROR] urls[40] = file:/Users/jason/.m2/repository/org/yaml/snakeyaml/1.12/snakeyaml-1.12.jar [ERROR] urls[41] = file:/Users/jason/.m2/repository/io/swagger/swagger-models/1.5.10/swagger-models-1.5.10.jar [ERROR] urls[42] = file:/Users/jason/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar [ERROR] urls[43] = file:/Users/jason/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.0/javax.ws.rs-api-2.0.jar [ERROR] urls[44] = file:/Users/jason/.m2/repository/com/alibaba/dubbo/2.8.4/dubbo-2.8.4.jar [ERROR] urls[45] = file:/Users/jason/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar [ERROR] urls[46] = file:/Users/jason/.m2/repository/io/netty/netty/3.7.0.Final/netty-3.7.0.Final.jar [ERROR] urls[47] = file:/Users/jason/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar [ERROR] urls[48] = file:/Users/jason/.m2/repository/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar [ERROR] urls[49] = file:/Users/jason/.m2/repository/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar [ERROR] urls[50] = file:/Users/jason/.m2/repository/org/springframework/spring-web/4.3.1.RELEASE/spring-web-4.3.1.RELEASE.jar [ERROR] urls[51] = file:/Users/jason/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar [ERROR] urls[52] = file:/Users/jason/.m2/repository/commons-codec/commons-codec/1.6/commons-codec-1.6.jar [ERROR] urls[53] = file:/Users/jason/.m2/repository/commons-pool/commons-pool/1.6/commons-pool-1.6.jar [ERROR] urls[54] = file:/Users/jason/.m2/repository/com/101tec/zkclient/0.9/zkclient-0.9.jar [ERROR] urls[55] = file:/Users/jason/.m2/repository/org/apache/zookeeper/zookeeper/3.4.8/zookeeper-3.4.8.jar [ERROR] urls[56] = file:/Users/jason/.m2/repository/jline/jline/0.9.94/jline-0.9.94.jar [ERROR] urls[57] = file:/Users/jason/.m2/repository/org/apache/curator/curator-client/2.10.0/curator-client-2.10.0.jar [ERROR] urls[58] = file:/Users/jason/.m2/repository/org/apache/curator/curator-framework/2.10.0/curator-framework-2.10.0.jar [ERROR] urls[59] = file:/Users/jason/.m2/repository/org/springframework/spring-core/4.3.1.RELEASE/spring-core-4.3.1.RELEASE.jar [ERROR] urls[60] = file:/Users/jason/.m2/repository/com/sky/util/util-framework-base/1.1.0-SNAPSHOT/util-framework-base-1.1.0-SNAPSHOT.jar [ERROR] urls[61] = file:/Users/jason/.m2/repository/com/alibaba/fastjson/1.2.14/fastjson-1.2.14.jar [ERROR] urls[62] = file:/Users/jason/.m2/repository/io/swagger/swagger-annotations/1.5.10/swagger-annotations-1.5.10.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] -----------------------------------------------------: com.fasterxml.jackson.module.jaxb.JaxbAnnotationModule

thlaegler commented 7 years ago

Do you have the artifact 'jackson-module-jaxb-annotation' (https://mvnrepository.com/artifact/com.fasterxml.jackson.module/jackson-module-jaxb-annotations/2.9.0 ) in your classpath? This artifact brings the missing class. Try to add it to the dependencies section in your pom.xml.