[ https://jira.codehaus.org/browse/MNG-5495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=329708#comment-329708 ]
Jason van Zyl commented on MNG-5495: ------------------------------------ This sample project: https://github.com/kongchen/swagger-maven-plugin Now runs correctly under 3.1.1-SNAPSHOT so I consider this issue resolved: <code> bash-3.2$ mvn clean package [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building swagger-maven-example 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ swagger-maven-example --- [INFO] Deleting /private/tmp/swagger-maven-example/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ swagger-maven-example --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /private/tmp/swagger-maven-example/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ swagger-maven-example --- [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent! [INFO] Compiling 5 source files to /private/tmp/swagger-maven-example/target/classes [INFO] [INFO] --- maven-antrun-plugin:1.7:run (default) @ swagger-maven-example --- [INFO] Executing tasks get markdown.mustache: [get] Getting: https://raw.github.com/kongchen/api-doc-template/master/v1.1/markdown.mustache [get] To: /private/tmp/swagger-maven-example/markdown.mustache [INFO] Executed tasks [INFO] [INFO] --- swagger-maven-plugin:1.1:generate (default) @ swagger-maven-example --- [INFO] Reflections took 49 ms to scan 1 urls, producing 3 keys and 9 values [INFO] Class com.foo.bar.model.Garage is not annotated with a @XmlRootElement annotation, using Garage [INFO] Class com.foo.bar.model.Garage is not annotated with a @XmlRootElement annotation, using Garage [INFO] Class com.foo.bar.model.Garage is not annotated with a @XmlRootElement annotation, using Garage [INFO] Detect Resource:com.foo.bar.api.garage.GarageResourceV1 [INFO] Class com.foo.bar.model.Car is not annotated with a @XmlRootElement annotation, using Car [INFO] Class com.foo.bar.model.Car is not annotated with a @XmlRootElement annotation, using Car [ERROR] Unable to load class float [ERROR] Unable to resolve class float [INFO] Class com.foo.bar.model.Car is not annotated with a @XmlRootElement annotation, using Car [INFO] Detect Resource:com.foo.bar.api.car.CarResourceV1 [INFO] Class com.foo.bar.model.Car is not annotated with a @XmlRootElement annotation, using Car [INFO] Class com.foo.bar.model.Car is not annotated with a @XmlRootElement annotation, using Car [ERROR] Unable to resolve class float [INFO] Detect Resource:com.foo.bar.api.car.CarResourceV2 [INFO] Writing doc to generated/strapdown.html... [INFO] Done! [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ swagger-maven-example --- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory /private/tmp/swagger-maven-example/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ swagger-maven-example --- [INFO] No sources to compile [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ swagger-maven-example --- [INFO] No tests to run. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ swagger-maven-example --- [INFO] Building jar: /private/tmp/swagger-maven-example/target/swagger-maven-example-1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.251s [INFO] Finished at: Sun Jul 28 12:00:52 EDT 2013 [INFO] Final Memory: 28M/335M [INFO] ------------------------------------------------------------------------ </code> > API incompatibility causes Swagger Maven Plugin (and others) to fail under > Maven 3.1.0 > -------------------------------------------------------------------------------------- > > Key: MNG-5495 > URL: https://jira.codehaus.org/browse/MNG-5495 > Project: Maven 2 & 3 > Issue Type: Bug > Affects Versions: 3.1.0 > Reporter: Brett Porter > Assignee: Jason van Zyl > Fix For: 3.1.1 > > > {code} > ERROR] Failed to execute goal > com.github.kongchen:swagger-maven-plugin:1.1.1:generate (default) on project > maestro-webapp: An API incompatibility was encountered during configuration > of mojo com.github.kongchen:swagger-maven-plugin:1.1.1:generate: > java.lang.NoSuchMethodError: > org.codehaus.plexus.component.configurator.converters.special.ClassRealmConverter.<init>(Lorg/codehaus/classworlds/ClassRealm;)V > [ERROR] ----------------------------------------------------- > [ERROR] realm = plugin>com.github.kongchen:swagger-maven-plugin:1.1.1 > [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy > [ERROR] urls[0] = > file:/Users/brett/.m2/repository/com/github/kongchen/swagger-maven-plugin/1.1.1/swagger-maven-plugin-1.1.1.jar > [ERROR] urls[1] = > file:/Users/brett/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.15/plexus-utils-1.5.15.jar > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira