Closed iddo closed 10 years ago
@iddo Can you add some code example?
TestController.java
package com.example.controller;
import com.example.controller.model.MyEnum;
import com.wordnik.swagger.annotations.Api;
import com.wordnik.swagger.annotations.ApiOperation;
import com.wordnik.swagger.annotations.ApiParam;
@Api(value = "Failing build")
public class TestController {
@ApiOperation(value = "Should be valid")
public void test(@ApiParam() MyEnum myEnum) {
}
}
MyEnum.java
package com.example.controller.model;
public enum MyEnum {
MY_VALUE
}
pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>swagger-enum-fail</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>com.wordnik</groupId>
<artifactId>swagger-core_2.9.1</artifactId>
<version>1.3.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.github.kongchen</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<version>1.1.3-SNAPSHOT</version>
<configuration>
<apiSources>
<apiSource>
<locations>com.example.controller</locations>
<apiVersion>v1</apiVersion>
<basePath>http://localhost:9080</basePath>
<outputTemplate>markdown.mustache</outputTemplate>
<outputPath>target/apidocs/api.html</outputPath>
<withFormatSuffix>false</withFormatSuffix>
<!--swaggerDirectory>generated/apidocs</swaggerDirectory -->
<!--useOutputFlatStructure>false</useOutputFlatStructure -->
<!--mustacheFileRoot>${basedir}/src/main/resources/</mustacheFileRoot -->
</apiSource>
</apiSources>
</configuration>
<executions>
<execution>
<id>gen-api-docs</id>
<phase>compile</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Sorry, I wanted to help, but can't reproduce this problem. It works for me. You can try to use swagger-annotations_2.9.1 instead of swagger-core_2.9.1. I think it's unnecessary to have all dependencies from swagger-core.
Example:
<dependency>
<groupId>com.wordnik</groupId>
<artifactId>swagger-annotations_2.9.1</artifactId>
<version>1.3.0</version>
</dependency>
Maybe your template is incorrect. You can try to use this:
<outputTemplate>https://raw.github.com/kongchen/api-doc-template/master/v1.1/html.mustache</outputTemplate>
I've tried both of your suggested changes but I still get the same error and stack trace.
Here's the output of
mvn install -e -X
Apache Maven 3.0.4 (r1232337; 2012-01-17 10:44:56+0200)
Maven home: /home/user/Programs/apache-maven-3.0.4
Java version: 1.7.0_25, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-i386/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.8.0-35-generic", arch: "i386", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /home/user/Programs/apache-maven-3.0.4/conf/settings.xml
[DEBUG] Reading user settings from /home/user/.m2/settings.xml
[DEBUG] Using local repository at /home/user/.m2/repository
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for /home/user/.m2/repository
[INFO] Scanning for projects...
[DEBUG] Extension realms for project com.example:swagger-enum-fail:jar:0.0.1-SNAPSHOT: (none)
[DEBUG] Looking up lifecyle mappings for packaging jar from ClassRealm[plexus.core, parent: null]
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: com.example:swagger-enum-fail:jar:0.0.1-SNAPSHOT
[DEBUG] Tasks: [install]
[DEBUG] Style: Regular
[DEBUG] =======================================================================
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building swagger-enum-fail 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project: com.example:swagger-enum-fail:0.0.1-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [compile, runtime, test]
[DEBUG] Repositories (dependencies): [central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] Repositories (plugins) : [central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-resources-plugin:2.5:resources (default-resources)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<buildFilters default-value="${project.build.filters}"/>
<encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
<escapeString>${maven.resources.escapeString}</escapeString>
<escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
<includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
<outputDirectory default-value="${project.build.outputDirectory}"/>
<overwrite default-value="false">${maven.resources.overwrite}</overwrite>
<project default-value="${project}"/>
<resources default-value="${project.resources}"/>
<session default-value="${session}"/>
<supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
<useBuildFilters default-value="true"/>
<useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<basedir default-value="${basedir}"/>
<buildDirectory default-value="${project.build.directory}"/>
<classpathElements default-value="${project.compileClasspathElements}"/>
<compileSourceRoots default-value="${project.compileSourceRoots}"/>
<compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
<compilerVersion>${maven.compiler.compilerVersion}</compilerVersion>
<debug default-value="true">${maven.compiler.debug}</debug>
<debuglevel>${maven.compiler.debuglevel}</debuglevel>
<encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
<executable>${maven.compiler.executable}</executable>
<failOnError default-value="true">${maven.compiler.failOnError}</failOnError>
<fork default-value="false">${maven.compiler.fork}</fork>
<generatedSourcesDirectory default-value="${project.build.directory}/generated-sources/annotations"/>
<maxmem>${maven.compiler.maxmem}</maxmem>
<meminitial>${maven.compiler.meminitial}</meminitial>
<optimize default-value="false">${maven.compiler.optimize}</optimize>
<outputDirectory default-value="${project.build.outputDirectory}"/>
<outputFileName>${project.build.finalName}</outputFileName>
<projectArtifact default-value="${project.artifact}"/>
<session default-value="${session}"/>
<showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
<showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
<source default-value="1.5">${maven.compiler.source}</source>
<staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
<target default-value="1.5">${maven.compiler.target}</target>
<verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: com.github.kongchen:swagger-maven-plugin:1.1.3-SNAPSHOT:generate (gen-api-docs)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<apiSources>
<apiSource>
<locations>com.example.controller</locations>
<apiVersion>v1</apiVersion>
<basePath>http://localhost:9080</basePath>
<outputTemplate>https://raw.github.com/kongchen/api-doc-template/master/v1.1/html.mustache</outputTemplate>
<outputPath>target/apidocs/api.html</outputPath>
<withFormatSuffix>false</withFormatSuffix>
</apiSource>
</apiSources>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-resources-plugin:2.5:testResources (default-testResources)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<buildFilters default-value="${project.build.filters}"/>
<encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
<escapeString>${maven.resources.escapeString}</escapeString>
<escapeWindowsPaths default-value="true">${maven.resources.escapeWindowsPaths}</escapeWindowsPaths>
<includeEmptyDirs default-value="false">${maven.resources.includeEmptyDirs}</includeEmptyDirs>
<outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
<overwrite default-value="false">${maven.resources.overwrite}</overwrite>
<project default-value="${project}"/>
<resources>${project.testResources}</resources>
<session default-value="${session}"/>
<supportMultiLineFiltering default-value="false">${maven.resources.supportMultiLineFiltering}</supportMultiLineFiltering>
<useBuildFilters default-value="true"/>
<useDefaultDelimiters default-value="true"/>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<basedir default-value="${basedir}"/>
<buildDirectory default-value="${project.build.directory}"/>
<classpathElements default-value="${project.testClasspathElements}"/>
<compileSourceRoots default-value="${project.testCompileSourceRoots}"/>
<compilerId default-value="javac">${maven.compiler.compilerId}</compilerId>
<compilerVersion>${maven.compiler.compilerVersion}</compilerVersion>
<debug default-value="true">${maven.compiler.debug}</debug>
<debuglevel>${maven.compiler.debuglevel}</debuglevel>
<encoding default-value="${project.build.sourceEncoding}">${encoding}</encoding>
<executable>${maven.compiler.executable}</executable>
<failOnError default-value="true">${maven.compiler.failOnError}</failOnError>
<fork default-value="false">${maven.compiler.fork}</fork>
<generatedTestSourcesDirectory default-value="${project.build.directory}/generated-sources/test-annotations"/>
<maxmem>${maven.compiler.maxmem}</maxmem>
<meminitial>${maven.compiler.meminitial}</meminitial>
<optimize default-value="false">${maven.compiler.optimize}</optimize>
<outputDirectory default-value="${project.build.testOutputDirectory}"/>
<outputFileName>${project.build.finalName}</outputFileName>
<session default-value="${session}"/>
<showDeprecation default-value="false">${maven.compiler.showDeprecation}</showDeprecation>
<showWarnings default-value="false">${maven.compiler.showWarnings}</showWarnings>
<skip>${maven.test.skip}</skip>
<source default-value="1.5">${maven.compiler.source}</source>
<staleMillis default-value="0">${lastModGranularityMs}</staleMillis>
<target default-value="1.5">${maven.compiler.target}</target>
<testSource>${maven.compiler.testSource}</testSource>
<testTarget>${maven.compiler.testTarget}</testTarget>
<verbose default-value="false">${maven.compiler.verbose}</verbose>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<argLine>${argLine}</argLine>
<basedir default-value="${basedir}"/>
<childDelegation default-value="false">${childDelegation}</childDelegation>
<classesDirectory default-value="${project.build.outputDirectory}"/>
<debugForkedProcess>${maven.surefire.debug}</debugForkedProcess>
<disableXmlReport default-value="false">${disableXmlReport}</disableXmlReport>
<enableAssertions default-value="true">${enableAssertions}</enableAssertions>
<excludedGroups>${excludedGroups}</excludedGroups>
<failIfNoTests>${failIfNoTests}</failIfNoTests>
<forkMode default-value="once">${forkMode}</forkMode>
<forkedProcessTimeoutInSeconds>${surefire.timeout}</forkedProcessTimeoutInSeconds>
<groups>${groups}</groups>
<junitArtifactName default-value="junit:junit">${junitArtifactName}</junitArtifactName>
<jvm>${jvm}</jvm>
<localRepository>${localRepository}</localRepository>
<objectFactory>${objectFactory}</objectFactory>
<parallel>${parallel}</parallel>
<parallelMavenExecution default-value="${session.parallel}"/>
<perCoreThreadCount default-value="true">${perCoreThreadCount}</perCoreThreadCount>
<pluginArtifactMap>${plugin.artifactMap}</pluginArtifactMap>
<printSummary default-value="true">${surefire.printSummary}</printSummary>
<project default-value="${project}"/>
<projectArtifactMap>${project.artifactMap}</projectArtifactMap>
<redirectTestOutputToFile default-value="false">${maven.test.redirectTestOutputToFile}</redirectTestOutputToFile>
<remoteRepositories>${project.pluginArtifactRepositories}</remoteRepositories>
<reportFormat default-value="brief">${surefire.reportFormat}</reportFormat>
<reportNameSuffix default-value="">${surefire.reportNameSuffix}</reportNameSuffix>
<reportsDirectory default-value="${project.build.directory}/surefire-reports"/>
<runOrder default-value="filesystem"/>
<session>${session}</session>
<skip default-value="false">${maven.test.skip}</skip>
<skipExec>${maven.test.skip.exec}</skipExec>
<skipTests default-value="false">${skipTests}</skipTests>
<test>${test}</test>
<testClassesDirectory default-value="${project.build.testOutputDirectory}"/>
<testFailureIgnore default-value="false">${maven.test.failure.ignore}</testFailureIgnore>
<testNGArtifactName default-value="org.testng:testng">${testNGArtifactName}</testNGArtifactName>
<testSourceDirectory default-value="${project.build.testSourceDirectory}"/>
<threadCount>${threadCount}</threadCount>
<trimStackTrace default-value="true">${trimStackTrace}</trimStackTrace>
<useFile default-value="true">${surefire.useFile}</useFile>
<useManifestOnlyJar default-value="true">${surefire.useManifestOnlyJar}</useManifestOnlyJar>
<useSystemClassLoader default-value="true">${surefire.useSystemClassLoader}</useSystemClassLoader>
<useUnlimitedThreads default-value="false">${useUnlimitedThreads}</useUnlimitedThreads>
<workingDirectory>${basedir}</workingDirectory>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-jar-plugin:2.3.2:jar (default-jar)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<classesDirectory default-value="${project.build.outputDirectory}"/>
<defaultManifestFile default-value="${project.build.outputDirectory}/META-INF/MANIFEST.MF"/>
<finalName default-value="${project.build.finalName}">${jar.finalName}</finalName>
<forceCreation default-value="false">${jar.forceCreation}</forceCreation>
<outputDirectory default-value="${project.build.directory}"/>
<project default-value="${project}"/>
<useDefaultManifestFile default-value="false">${jar.useDefaultManifestFile}</useDefaultManifestFile>
</configuration>
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-install)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<artifact default-value="${project.artifact}"/>
<attachedArtifacts default-value="${project.attachedArtifacts}"/>
<createChecksum default-value="false">${createChecksum}</createChecksum>
<localRepository>${localRepository}</localRepository>
<packaging default-value="${project.packaging}"/>
<pomFile default-value="${project.file}"/>
<updateReleaseInfo default-value="false">${updateReleaseInfo}</updateReleaseInfo>
</configuration>
[DEBUG] =======================================================================
[DEBUG] com.example:swagger-enum-fail:jar:0.0.1-SNAPSHOT
[DEBUG] com.wordnik:swagger-annotations_2.9.1:jar:1.3.0:compile
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ swagger-enum-fail ---
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG] Imported: org.sonatype.aether.transfer < plexus.core
[DEBUG] Imported: org.apache.maven.exception < plexus.core
[DEBUG] Imported: org.sonatype.aether.metadata < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG] Imported: org.sonatype.aether.collection < plexus.core
[DEBUG] Imported: org.sonatype.aether.version < plexus.core
[DEBUG] Imported: org.apache.maven.monitor < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG] Imported: org.apache.maven.repository < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG] Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG] Imported: org.apache.maven.profiles < plexus.core
[DEBUG] Imported: org.sonatype.aether.repository < plexus.core
[DEBUG] Imported: org.apache.maven.classrealm < plexus.core
[DEBUG] Imported: org.apache.maven.execution < plexus.core
[DEBUG] Imported: org.sonatype.aether.artifact < plexus.core
[DEBUG] Imported: org.sonatype.aether.spi < plexus.core
[DEBUG] Imported: org.apache.maven.reporting < plexus.core
[DEBUG] Imported: org.apache.maven.usability < plexus.core
[DEBUG] Imported: org.codehaus.plexus.container < plexus.core
[DEBUG] Imported: org.codehaus.plexus.component < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG] Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG] Imported: org.sonatype.aether.graph < plexus.core
[DEBUG] Imported: org.sonatype.aether.* < plexus.core
[DEBUG] Imported: org.apache.maven.settings < plexus.core
[DEBUG] Imported: org.codehaus.classworlds < plexus.core
[DEBUG] Imported: org.sonatype.aether.impl < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG] Imported: org.apache.maven.toolchain < plexus.core
[DEBUG] Imported: org.sonatype.aether.deployment < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
[DEBUG] Imported: org.apache.maven.configuration < plexus.core
[DEBUG] Imported: org.apache.maven.cli < plexus.core
[DEBUG] Imported: org.sonatype.aether.installation < plexus.core
[DEBUG] Imported: org.codehaus.plexus.context < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG] Imported: org.apache.maven.project < plexus.core
[DEBUG] Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG] Imported: org.apache.maven.artifact < plexus.core
[DEBUG] Imported: org.apache.maven.model < plexus.core
[DEBUG] Imported: org.apache.maven.* < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG] Imported: org.sonatype.aether.resolution < plexus.core
[DEBUG] Imported: org.apache.maven.plugin < plexus.core
[DEBUG] Imported: org.codehaus.plexus.* < plexus.core
[DEBUG] Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG] Populating class realm maven.api
[DEBUG] org.apache.maven.plugins:maven-resources-plugin:jar:2.5:
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-project:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-core:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6:compile
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.6:compile
[DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.6:compile
[DEBUG] commons-cli:commons-cli:jar:1.0:compile
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.6:compile
[DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG] classworlds:classworlds:jar:1.1:compile
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-monitor:jar:2.0.6:compile
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG] junit:junit:jar:3.8.1:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:2.0.5:compile
[DEBUG] org.apache.maven.shared:maven-filtering:jar:1.0:compile
[DEBUG] org.sonatype.plexus:plexus-build-api:jar:0.0.4:compile
[DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.13:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.5
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.5
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-resources-plugin:2.5
[DEBUG] Included: org.apache.maven.plugins:maven-resources-plugin:jar:2.5
[DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0.6
[DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7
[DEBUG] Included: commons-cli:commons-cli:jar:1.0
[DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
[DEBUG] Included: junit:junit:jar:3.8.1
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:2.0.5
[DEBUG] Included: org.apache.maven.shared:maven-filtering:jar:1.0
[DEBUG] Included: org.sonatype.plexus:plexus-build-api:jar:0.0.4
[DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.13
[DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-core:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.6
[DEBUG] Excluded: classworlds:classworlds:jar:1.1
[DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-monitor:jar:2.0.6
[DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-resources-plugin:2.5:resources from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-resources-plugin:2.5, parent: sun.misc.Launcher$AppClassLoader@12fa617]
[debug] execute contextualize
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.5:resources' with basic configurator -->
[DEBUG] (f) buildFilters = []
[DEBUG] (f) escapeWindowsPaths = true
[DEBUG] (s) includeEmptyDirs = false
[DEBUG] (s) outputDirectory = /home/user/workspace-mbaas/swagger-enum-fail/target/classes
[DEBUG] (s) overwrite = false
[DEBUG] (f) project = MavenProject: com.example:swagger-enum-fail:0.0.1-SNAPSHOT @ /home/user/workspace-mbaas/swagger-enum-fail/pom.xml
[DEBUG] (s) resources = [Resource {targetPath: null, filtering: false, FileSet {directory: /home/user/workspace-mbaas/swagger-enum-fail/src/main/resources, PatternSet [includes: {}, excludes: {}]}}]
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@3de479
[DEBUG] (f) supportMultiLineFiltering = false
[DEBUG] (f) useBuildFilters = true
[DEBUG] (s) useDefaultDelimiters = true
[DEBUG] -- end configuration --
[DEBUG] properties used {java.vendor=Oracle Corporation, env.SESSION_MANAGER=local/user-laptop:@/tmp/.ICE-unix/2902,unix/user-laptop:/tmp/.ICE-unix/2902, env.LESSOPEN=| /usr/bin/lesspipe %s, sun.java.launcher=SUN_STANDARD, sun.management.compiler=HotSpot Tiered Compilers, env.BROWSER=/usr/bin/chromium-browser, env.PD_SOCKET=6874, os.name=Linux, sun.boot.class.path=/usr/lib/jvm/java-7-openjdk-i386/jre/lib/resources.jar:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/rt.jar:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/jsse.jar:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/jce.jar:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/charsets.jar:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/netx.jar:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/plugin.jar:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/rhino.jar:/usr/lib/jvm/java-7-openjdk-i386/jre/lib/jfr.jar:/usr/lib/jvm/java-7-openjdk-i386/jre/classes, env.PWD=/home/user/workspace-mbaas/swagger-enum-fail, env.XDG_SESSION_COOKIE=0bfde77917aa2138e39aadab0000000b-1389855656.934140-1150361330, sun.desktop=gnome, env.LANG=en_US.UTF-8, java.vm.specification.vendor=Oracle Corporation, env.XDG_MENU_PREFIX=gnome-, java.runtime.version=1.7.0_25-b30, env.DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path, env.HISTSIZE=1000, env.XDG_VTNR=7, env.DISPLAY=:0, user.name=user, env._=/home/user/bin/mvn, maven.build.version=Apache Maven 3.0.4 (r1232337; 2012-01-17 10:44:56+0200), env.USER=user, env.SHELL=/bin/bash, env.DESKTOP_SESSION=ubuntu, env.HISTFILESIZE=1000, env.XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/, env.LC_ADDRESS=he_IL.UTF-8, env.NODE_PATH=/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript, env.PATH=/home/user/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games, env.XDG_CURRENT_DESKTOP=Unity, user.language=en, env.LC_MONETARY=he_IL.UTF-8, sun.boot.library.path=/usr/lib/jvm/java-7-openjdk-i386/jre/lib/i386, classworlds.conf=/home/user/Programs/apache-maven-3.0.4/bin/m2.conf, env.TEXTDOMAIN=im-config, java.version=1.7.0_25, user.timezone=Asia/Jerusalem, env.DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-R1wpNlZ8ql,guid=53d02a2bb50d9deb756b715d52d783aa, sun.arch.data.model=32, env.AIR_HOME=/home/user/Programs/air-sdk-3.1, env.COMPIZ_CONFIG_PROFILE=ubuntu, env.SSH_AGENT_PID=2955, env.CHROMIUM_FLAGS=--ignore-gpu-blacklist --use-pulseaudio, java.endorsed.dirs=/usr/lib/jvm/java-7-openjdk-i386/jre/lib/endorsed, env.JDK_HOME=/usr/lib/jvm/java-7-openjdk-i386, sun.cpu.isalist=, env.LC_PAPER=he_IL.UTF-8, sun.jnu.encoding=UTF-8, file.encoding.pkg=sun.io, env.SHLVL=1, file.separator=/, java.specification.name=Java Platform API Specification, env.GNOME_DESKTOP_SESSION_ID=this-is-deprecated, java.class.version=51.0, env.GDMSESSION=ubuntu, user.country=US, env.GNOME_KEYRING_PID=2886, java.home=/usr/lib/jvm/java-7-openjdk-i386/jre, env.ANDROID_HOME=/home/user/Programs/android-sdk-linux_x86, java.vm.info=mixed mode, env.LOGNAME=user, os.version=3.8.0-35-generic, env.CLICOLOR=1, path.separator=:, java.vm.version=23.7-b01, env.LANGUAGE=en, env.TEXTDOMAINDIR=/usr/share/locale/, env.XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0, env.LC_TELEPHONE=he_IL.UTF-8, env.JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386, java.awt.printerjob=sun.print.PSPrinterJob, env.DROPBOX_HOME=/home/user/Dropbox, env.TERM=xterm-256color, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.X11.XToolkit, env.LC_MEASUREMENT=he_IL.UTF-8, user.home=/home/user, env.OLDPWD=/home/user/workspace-mbaas/swagger-enum-fail, java.specification.vendor=Oracle Corporation, env.VTE_VERSION=3406, env.WINDOWID=75497478, java.library.path=/usr/java/packages/lib/i386:/usr/lib/jni:/lib:/usr/lib, java.vendor.url=http://java.oracle.com/, java.vm.vendor=Oracle Corporation, env.XDG_SEAT=seat0, maven.home=/home/user/Programs/apache-maven-3.0.4, java.runtime.name=OpenJDK Runtime Environment, sun.java.command=org.codehaus.plexus.classworlds.launcher.Launcher install -e -X, java.class.path=/home/user/Programs/apache-maven-3.0.4/boot/plexus-classworlds-2.4.jar, env.XDG_SESSION_ID=c3, maven.version=3.0.4, env.UBUNTU_MENUPROXY=libappmenu.so, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.7, sun.cpu.endian=little, sun.os.patch.level=unknown, env.HOME=/home/user, java.io.tmpdir=/tmp, env.LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:, env.XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0, java.vendor.url.bug=http://bugreport.sun.com/bugreport/, env.SSH_AUTH_SOCK=/run/user/1000/keyring-ygSO7a/ssh, os.arch=i386, java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment, java.ext.dirs=/usr/lib/jvm/java-7-openjdk-i386/jre/lib/ext:/usr/java/packages/lib/ext, env.XDG_RUNTIME_DIR=/run/user/1000, user.dir=/home/user/workspace-mbaas/swagger-enum-fail, env.XAUTHORITY=/home/user/.Xauthority, env.MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path, env.GTK_MODULES=canberra-gtk-module:canberra-gtk-module, line.separator=
, java.vm.name=OpenJDK Server VM, env.LC_NUMERIC=he_IL.UTF-8, env.JRE_HOME=/usr/lib/jvm/java-7-openjdk-i386/jre, env.COLORTERM=gnome-terminal, env.LC_TIME=he_IL.UTF-8, file.encoding=UTF-8, env.LC_IDENTIFICATION=he_IL.UTF-8, env.COMPIZ_BIN_PATH=/usr/bin/, env.PDHOST=, env.GPG_AGENT_INFO=/run/user/1000/keyring-ygSO7a/gpg:0:1, java.specification.version=1.7, env.GNOME_KEYRING_CONTROL=/run/user/1000/keyring-ygSO7a, env.XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg, env.LC_NAME=he_IL.UTF-8, env.LESSCLOSE=/usr/bin/lesspipe %s %s}
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[DEBUG] resource with targetPath null
directory /home/user/workspace-mbaas/swagger-enum-fail/src/main/resources
excludes []
includes []
[DEBUG] ignoreDelta true
[INFO] Copying 0 resource
[DEBUG] no use filter components
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ swagger-enum-fail ---
[DEBUG] org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2:
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-core:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-model:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-project:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-monitor:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-toolchain:jar:1.0:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:2.0.5:compile
[DEBUG] org.codehaus.plexus:plexus-compiler-api:jar:1.8.1:compile
[DEBUG] org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1:compile
[DEBUG] org.codehaus.plexus:plexus-compiler-javac:jar:1.8.1:runtime
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:2.3.2
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:2.3.2
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-compiler-plugin:2.3.2
[DEBUG] Included: org.apache.maven.plugins:maven-compiler-plugin:jar:2.3.2
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:2.0.5
[DEBUG] Included: org.codehaus.plexus:plexus-compiler-api:jar:1.8.1
[DEBUG] Included: org.codehaus.plexus:plexus-compiler-manager:jar:1.8.1
[DEBUG] Included: org.codehaus.plexus:plexus-compiler-javac:jar:1.8.1
[DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-core:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-monitor:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-toolchain:jar:1.0
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-compiler-plugin:2.3.2, parent: sun.misc.Launcher$AppClassLoader@12fa617]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile' with basic configurator -->
[DEBUG] (f) basedir = /home/user/workspace-mbaas/swagger-enum-fail
[DEBUG] (f) buildDirectory = /home/user/workspace-mbaas/swagger-enum-fail/target
[DEBUG] (f) classpathElements = [/home/user/workspace-mbaas/swagger-enum-fail/target/classes, /home/user/.m2/repository/com/wordnik/swagger-annotations_2.9.1/1.3.0/swagger-annotations_2.9.1-1.3.0.jar]
[DEBUG] (f) compileSourceRoots = [/home/user/workspace-mbaas/swagger-enum-fail/src/main/java]
[DEBUG] (f) compilerId = javac
[DEBUG] (f) debug = true
[DEBUG] (f) failOnError = true
[DEBUG] (f) fork = false
[DEBUG] (f) generatedSourcesDirectory = /home/user/workspace-mbaas/swagger-enum-fail/target/generated-sources/annotations
[DEBUG] (f) optimize = false
[DEBUG] (f) outputDirectory = /home/user/workspace-mbaas/swagger-enum-fail/target/classes
[DEBUG] (f) outputFileName = swagger-enum-fail-0.0.1-SNAPSHOT
[DEBUG] (f) projectArtifact = com.example:swagger-enum-fail:jar:0.0.1-SNAPSHOT
[DEBUG] (f) session = org.apache.maven.execution.MavenSession@3de479
[DEBUG] (f) showDeprecation = false
[DEBUG] (f) showWarnings = false
[DEBUG] (f) source = 1.5
[DEBUG] (f) staleMillis = 0
[DEBUG] (f) target = 1.5
[DEBUG] (f) verbose = false
[DEBUG] -- end configuration --
[DEBUG] Using compiler 'javac'.
[DEBUG] Source directories: [/home/user/workspace-mbaas/swagger-enum-fail/src/main/java]
[DEBUG] Classpath: [/home/user/workspace-mbaas/swagger-enum-fail/target/classes
/home/user/.m2/repository/com/wordnik/swagger-annotations_2.9.1/1.3.0/swagger-annotations_2.9.1-1.3.0.jar]
[DEBUG] Output directory: /home/user/workspace-mbaas/swagger-enum-fail/target/classes
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- swagger-maven-plugin:1.1.3-SNAPSHOT:generate (gen-api-docs) @ swagger-enum-fail ---
[DEBUG] com.github.kongchen:swagger-maven-plugin:jar:1.1.3-SNAPSHOT:
[DEBUG] org.apache.maven:maven-artifact:jar:2.2.1:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.5.15:compile
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-project:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.2.1:compile
[DEBUG] backport-util-concurrent:backport-util-concurrent:jar:3.1:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.2.1:compile
[DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.11:compile
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG] junit:junit:jar:3.8.1:compile
[DEBUG] org.apache.maven:maven-model:jar:2.2.1:compile
[DEBUG] org.apache.maven:maven-core:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9:compile
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.9:compile
[DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-10:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.9:compile
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.9:compile
[DEBUG] commons-cli:commons-cli:jar:1.0:compile
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.9:compile
[DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG] org.apache.maven:maven-monitor:jar:2.0.9:compile
[DEBUG] classworlds:classworlds:jar:1.1:compile
[DEBUG] org.apache.httpcomponents:httpclient:jar:4.2.2:compile
[DEBUG] org.apache.httpcomponents:httpcore:jar:4.2.2:compile
[DEBUG] commons-logging:commons-logging:jar:1.1.1:compile
[DEBUG] commons-codec:commons-codec:jar:1.6:compile
[DEBUG] com.github.spullara.mustache.java:compiler:jar:0.8.12:compile
[DEBUG] com.google.guava:guava:jar:13.0.1:compile
[DEBUG] com.wordnik:swagger-jaxrs_2.9.1:jar:1.2.5:compile
[DEBUG] org.scala-lang:scala-library:jar:2.9.1-1:compile
[DEBUG] com.wordnik:swagger-core_2.9.1:jar:1.2.5:compile
[DEBUG] commons-lang:commons-lang:jar:2.4:compile
[DEBUG] org.slf4j:slf4j-api:jar:1.6.3:compile
[DEBUG] com.fasterxml.jackson.module:jackson-module-scala_2.9.1:jar:2.1.3:compile
[DEBUG] com.fasterxml.jackson.core:jackson-core:jar:2.1.2:compile
[DEBUG] com.thoughtworks.paranamer:paranamer:jar:2.3:compile
[DEBUG] com.fasterxml.jackson.core:jackson-annotations:jar:2.1.4:compile
[DEBUG] com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.0.0:compile
[DEBUG] com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.0.0:compile
[DEBUG] com.wordnik:swagger-annotations_2.9.1:jar:1.2.5:compile
[DEBUG] javax.ws.rs:jsr311-api:jar:1.1.1:compile
[DEBUG] com.sun.jersey:jersey-servlet:jar:1.13:compile
[DEBUG] com.sun.jersey:jersey-client:jar:1.13:compile
[DEBUG] com.sun.jersey:jersey-core:jar:1.13:compile
[DEBUG] com.sun.jersey:jersey-server:jar:1.13:compile
[DEBUG] asm:asm:jar:3.1:compile
[DEBUG] org.reflections:reflections:jar:0.9.9-RC1:compile
[DEBUG] org.javassist:javassist:jar:3.16.1-GA:compile
[DEBUG] dom4j:dom4j:jar:1.6.1:compile
[DEBUG] xml-apis:xml-apis:jar:1.0.b2:compile
[DEBUG] com.wordnik:swagger-codegen_2.9.1:jar:2.0.1:compile
[DEBUG] commons-io:commons-io:jar:2.3:compile
[DEBUG] org.fusesource.scalate:scalate-wikitext:jar:1.5.3:compile
[DEBUG] org.fusesource.scalate:scalate-core:jar:1.5.3:compile
[DEBUG] org.fusesource.scalate:scalate-util:jar:1.5.3:compile
[DEBUG] org.scala-lang:scala-compiler:jar:2.9.1:compile
[DEBUG] org.fusesource.wikitext:confluence-core:jar:1.2:compile
[DEBUG] org.fusesource.wikitext:wikitext-core:jar:1.2:compile
[DEBUG] org.fusesource.wikitext:textile-core:jar:1.2:compile
[DEBUG] org.fusesource.scalate:scalate-page:jar:1.5.3:compile
[DEBUG] rhino:js:jar:1.7R2:compile
[DEBUG] org.yaml:snakeyaml:jar:1.7:compile
[DEBUG] org.fusesource.scalamd:scalamd:jar:1.5:compile
[DEBUG] org.json4s:json4s-jackson_2.9.1:jar:3.0.0:compile
[DEBUG] org.json4s:json4s-core_2.9.1:jar:3.0.0:compile
[DEBUG] org.scala-lang:scalap:jar:2.9.1:compile
[DEBUG] io.backchat.inflector:scala-inflector_2.9.1:jar:1.3.5:compile
[DEBUG] com.fasterxml.jackson.core:jackson-databind:jar:2.0.5:compile
[DEBUG] org.json4s:json4s-native_2.9.1:jar:3.0.0:compile
[DEBUG] log4j:log4j:jar:1.2.16:compile
[DEBUG] Created new class realm plugin>com.github.kongchen:swagger-maven-plugin:1.1.3-SNAPSHOT
[DEBUG] Importing foreign packages into class realm plugin>com.github.kongchen:swagger-maven-plugin:1.1.3-SNAPSHOT
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>com.github.kongchen:swagger-maven-plugin:1.1.3-SNAPSHOT
[DEBUG] Included: com.github.kongchen:swagger-maven-plugin:jar:1.1.3-SNAPSHOT
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.5.15
[DEBUG] Included: backport-util-concurrent:backport-util-concurrent:jar:3.1
[DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.11
[DEBUG] Included: junit:junit:jar:3.8.1
[DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0.9
[DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-10
[DEBUG] Included: commons-cli:commons-cli:jar:1.0
[DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
[DEBUG] Included: org.apache.httpcomponents:httpclient:jar:4.2.2
[DEBUG] Included: org.apache.httpcomponents:httpcore:jar:4.2.2
[DEBUG] Included: commons-logging:commons-logging:jar:1.1.1
[DEBUG] Included: commons-codec:commons-codec:jar:1.6
[DEBUG] Included: com.github.spullara.mustache.java:compiler:jar:0.8.12
[DEBUG] Included: com.google.guava:guava:jar:13.0.1
[DEBUG] Included: com.wordnik:swagger-jaxrs_2.9.1:jar:1.2.5
[DEBUG] Included: org.scala-lang:scala-library:jar:2.9.1-1
[DEBUG] Included: com.wordnik:swagger-core_2.9.1:jar:1.2.5
[DEBUG] Included: commons-lang:commons-lang:jar:2.4
[DEBUG] Included: org.slf4j:slf4j-api:jar:1.6.3
[DEBUG] Included: com.fasterxml.jackson.module:jackson-module-scala_2.9.1:jar:2.1.3
[DEBUG] Included: com.fasterxml.jackson.core:jackson-core:jar:2.1.2
[DEBUG] Included: com.thoughtworks.paranamer:paranamer:jar:2.3
[DEBUG] Included: com.fasterxml.jackson.core:jackson-annotations:jar:2.1.4
[DEBUG] Included: com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.0.0
[DEBUG] Included: com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.0.0
[DEBUG] Included: com.wordnik:swagger-annotations_2.9.1:jar:1.2.5
[DEBUG] Included: javax.ws.rs:jsr311-api:jar:1.1.1
[DEBUG] Included: com.sun.jersey:jersey-servlet:jar:1.13
[DEBUG] Included: com.sun.jersey:jersey-client:jar:1.13
[DEBUG] Included: com.sun.jersey:jersey-core:jar:1.13
[DEBUG] Included: com.sun.jersey:jersey-server:jar:1.13
[DEBUG] Included: asm:asm:jar:3.1
[DEBUG] Included: org.reflections:reflections:jar:0.9.9-RC1
[DEBUG] Included: org.javassist:javassist:jar:3.16.1-GA
[DEBUG] Included: dom4j:dom4j:jar:1.6.1
[DEBUG] Included: xml-apis:xml-apis:jar:1.0.b2
[DEBUG] Included: com.wordnik:swagger-codegen_2.9.1:jar:2.0.1
[DEBUG] Included: commons-io:commons-io:jar:2.3
[DEBUG] Included: org.fusesource.scalate:scalate-wikitext:jar:1.5.3
[DEBUG] Included: org.fusesource.scalate:scalate-core:jar:1.5.3
[DEBUG] Included: org.fusesource.scalate:scalate-util:jar:1.5.3
[DEBUG] Included: org.scala-lang:scala-compiler:jar:2.9.1
[DEBUG] Included: org.fusesource.wikitext:confluence-core:jar:1.2
[DEBUG] Included: org.fusesource.wikitext:wikitext-core:jar:1.2
[DEBUG] Included: org.fusesource.wikitext:textile-core:jar:1.2
[DEBUG] Included: org.fusesource.scalate:scalate-page:jar:1.5.3
[DEBUG] Included: rhino:js:jar:1.7R2
[DEBUG] Included: org.yaml:snakeyaml:jar:1.7
[DEBUG] Included: org.fusesource.scalamd:scalamd:jar:1.5
[DEBUG] Included: org.json4s:json4s-jackson_2.9.1:jar:3.0.0
[DEBUG] Included: org.json4s:json4s-core_2.9.1:jar:3.0.0
[DEBUG] Included: org.scala-lang:scalap:jar:2.9.1
[DEBUG] Included: io.backchat.inflector:scala-inflector_2.9.1:jar:1.3.5
[DEBUG] Included: com.fasterxml.jackson.core:jackson-databind:jar:2.0.5
[DEBUG] Included: org.json4s:json4s-native_2.9.1:jar:3.0.0
[DEBUG] Included: log4j:log4j:jar:1.2.16
[DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.2.1
[DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.2.1
[DEBUG] Excluded: org.apache.maven:maven-project:jar:2.2.1
[DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.2.1
[DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.2.1
[DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.2.1
[DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.2.1
[DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG] Excluded: org.apache.maven:maven-model:jar:2.2.1
[DEBUG] Excluded: org.apache.maven:maven-core:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.9
[DEBUG] Excluded: org.apache.maven:maven-monitor:jar:2.0.9
[DEBUG] Excluded: classworlds:classworlds:jar:1.1
[DEBUG] Configuring mojo com.github.kongchen:swagger-maven-plugin:1.1.3-SNAPSHOT:generate from plugin realm ClassRealm[plugin>com.github.kongchen:swagger-maven-plugin:1.1.3-SNAPSHOT, parent: sun.misc.Launcher$AppClassLoader@12fa617]
[DEBUG] Configuring mojo 'com.github.kongchen:swagger-maven-plugin:1.1.3-SNAPSHOT:generate' with include-project-dependencies configurator -->
[DEBUG] (s) locations = com.example.controller
[DEBUG] (s) apiVersion = v1
[DEBUG] (s) basePath = http://localhost:9080
[DEBUG] (s) outputTemplate = https://raw.github.com/kongchen/api-doc-template/master/v1.1/html.mustache
[DEBUG] (s) outputPath = target/apidocs/api.html
[DEBUG] (s) withFormatSuffix = false
[DEBUG] (s) apiSources = [com.github.kongchen.swagger.docgen.mavenplugin.ApiSource@9ef237]
[DEBUG] -- end configuration --
[DEBUG] [com.github.kongchen.swagger.docgen.mavenplugin.ApiSource@9ef237]
[INFO] Detect Resource:com.example.controller.TestController
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.977s
[INFO] Finished at: Mon Jan 20 20:21:38 IST 2014
[INFO] Final Memory: 15M/112M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.kongchen:swagger-maven-plugin:1.1.3-SNAPSHOT:generate (gen-api-docs) on project swagger-enum-fail: null: MojoExecutionException: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.kongchen:swagger-maven-plugin:1.1.3-SNAPSHOT:generate (gen-api-docs) on project swagger-enum-fail: null
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException
at com.github.kongchen.swagger.docgen.mavenplugin.ApiDocumentMojo.execute(ApiDocumentMojo.java:65)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: java.lang.NullPointerException
at com.github.kongchen.swagger.docgen.mustache.OutputTemplate.addDateType(OutputTemplate.java:52)
at com.github.kongchen.swagger.docgen.mustache.OutputTemplate.createMustacheDocument(OutputTemplate.java:107)
at com.github.kongchen.swagger.docgen.mustache.OutputTemplate.feedSource(OutputTemplate.java:155)
at com.github.kongchen.swagger.docgen.mustache.OutputTemplate.<init>(OutputTemplate.java:30)
at com.github.kongchen.swagger.docgen.AbstractDocumentSource.prepareMustacheTemplate(AbstractDocumentSource.java:196)
at com.github.kongchen.swagger.docgen.AbstractDocumentSource.toDocuments(AbstractDocumentSource.java:202)
at com.github.kongchen.swagger.docgen.mavenplugin.ApiDocumentMojo.execute(ApiDocumentMojo.java:58)
... 21 more
[ERROR]
[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/MojoExecutionException
Hi @iddo , I think the root cause it the version of swagger, you're using
<dependency>
<groupId>com.wordnik</groupId>
<artifactId>swagger-core_2.9.1</artifactId>
<version>1.3.1</version>
</dependency>
However, 1.3.0+ is not supported by now.
The plugin will not work with 1.3.0 until I resolved this issue, and I'm trying.
Hi, I've tried the same project with
<groupId>com.wordnik</groupId>
<artifactId>swagger-annotations_2.9.1</artifactId>
<version>1.2.5</version>
</dependency>
But received the same error and stacktrace, so it doesn't seem to be the problem
I think you can try the following workaround:
Method MustacheDocument#analyzeDataTypes should return empty list (mustacheItemList) instead of null (MustacheDocument:153).
PS: Ofc, after that fix you need to re-install maven plugin in local repository.
I haven't had a chance to try that yet, I'll keep you posted. Is that a proper fix or just a quick hack?
@iddo Please try 2.0-SNAPSHOT
If I try to use the maven plugin when an Api endpoint has an Enum parameter the following stack trace is produced:
Replacing the Enum with a concrete class works as expected