Failed to execute goal io.swagger:swagger-codegen-maven-plugin:2.2.3:generate (default) on project Code generation failed The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceFailed to execute goal org.codehaus.mojo:exec-maven-pluginGetting an camel-maven error while running my project using mavenSwagger maven build - NTLM issue while downloading swagger-ui/archive/master.tar.gzFailed to execute goal org.apache.maven.plugins:maven-site-plugin:Execution default-cli of goal com.google.appengine:appengine-maven-plugin:1.9.32:update failedswagger swagger-codegen-maven-plugin generate Default Api interfaceFailed to execute goal Maven/EclipseFailed to execute goal io.swagger:swagger-codegen-maven-plugin:2.2.2:generateFailed to execute goal io.swagger:swagger-codegen-maven-plugin:2.3.1:generate (html-codegen) on projectGetting exception while trying to execute my project? “There was an error in the forked process”

ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?

How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?

Can a novice safely splice in wire to lengthen 5V charging cable?

Take groceries in checked luggage

Is every episode of "Where are my Pants?" identical?

Simulating Exploding Dice

What aspect of planet Earth must be changed to prevent the industrial revolution?

A pet rabbit called Belle

Why can't wing-mounted spoilers be used to steepen approaches?

how can a perfect fourth interval be considered either consonant or dissonant?

I could not break this equation. Please help me

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

Keeping a retro style to sci-fi spaceships?

Why is superheterodyning better than direct conversion?

Mortgage adviser recommends a longer term than necessary combined with overpayments

Didn't get enough time to take a Coding Test - what to do now?

How can I protect witches in combat who wear limited clothing?

Is this wall load bearing? Blueprints and photos attached

Are spiders unable to hurt humans, especially very small spiders?

Road tyres vs "Street" tyres for charity ride on MTB Tandem

How do you keep chess fun when your opponent constantly beats you?

He got a vote 80% that of Emmanuel Macron’s

When did F become S in typeography, and why?

Relations between two reciprocal partial derivatives?



Failed to execute goal io.swagger:swagger-codegen-maven-plugin:2.2.3:generate (default) on project Code generation failed



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experienceFailed to execute goal org.codehaus.mojo:exec-maven-pluginGetting an camel-maven error while running my project using mavenSwagger maven build - NTLM issue while downloading swagger-ui/archive/master.tar.gzFailed to execute goal org.apache.maven.plugins:maven-site-plugin:Execution default-cli of goal com.google.appengine:appengine-maven-plugin:1.9.32:update failedswagger swagger-codegen-maven-plugin generate Default Api interfaceFailed to execute goal Maven/EclipseFailed to execute goal io.swagger:swagger-codegen-maven-plugin:2.2.2:generateFailed to execute goal io.swagger:swagger-codegen-maven-plugin:2.3.1:generate (html-codegen) on projectGetting exception while trying to execute my project? “There was an error in the forked process”



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I am getting below error when trying



[INFO] reading from C:/Project/xxxmongo-rest/src/main/resources/spec/api-docs.json
[INFO] reading from C:/Project/xxxmongo-rest/src/main/resources/spec/api-docs.json
[WARNING] Output directory does not exist, or is inaccessible. No file (.swager-codegen-ignore) will be evaluated.
[ERROR]
java.lang.RuntimeException: missing swagger input or config!
at io.swagger.codegen.DefaultGenerator.generate (DefaultGenerator.java:685)
at io.swagger.codegen.plugin.CodeGenMojo.execute (CodeGenMojo.java:534)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)


pom.xml



<properties>
<client.package.key>bs.mongo</client.package.key>
<!--<client.spec.gen>http://localhost:8081/xxx/v2/api-docs</client.spec.gen>-->
<swagger.spec.gen.skip>true</swagger.spec.gen.skip>
</properties>
<dependencies>
<!--crud base controllers-->
<dependency>
<groupId>com.xx</groupId>
<artifactId>xx-api-crud</artifactId>
<version>$project.parent.version</version>
</dependency>

<dependency>
<groupId>com.xx.xx</groupId>
<artifactId>bootcamp-mongo-persistence</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>com.xx.xx</groupId>
<artifactId>xx-model</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.XX.MongoRestApplication</mainClass>
</configuration>
</plugin>
</plugins>
</build>









share|improve this question






















  • I have this exact issue... @paa have you found any solution so far?

    – Hugo Tavares
    Mar 25 at 12:10

















0















I am getting below error when trying



[INFO] reading from C:/Project/xxxmongo-rest/src/main/resources/spec/api-docs.json
[INFO] reading from C:/Project/xxxmongo-rest/src/main/resources/spec/api-docs.json
[WARNING] Output directory does not exist, or is inaccessible. No file (.swager-codegen-ignore) will be evaluated.
[ERROR]
java.lang.RuntimeException: missing swagger input or config!
at io.swagger.codegen.DefaultGenerator.generate (DefaultGenerator.java:685)
at io.swagger.codegen.plugin.CodeGenMojo.execute (CodeGenMojo.java:534)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)


pom.xml



<properties>
<client.package.key>bs.mongo</client.package.key>
<!--<client.spec.gen>http://localhost:8081/xxx/v2/api-docs</client.spec.gen>-->
<swagger.spec.gen.skip>true</swagger.spec.gen.skip>
</properties>
<dependencies>
<!--crud base controllers-->
<dependency>
<groupId>com.xx</groupId>
<artifactId>xx-api-crud</artifactId>
<version>$project.parent.version</version>
</dependency>

<dependency>
<groupId>com.xx.xx</groupId>
<artifactId>bootcamp-mongo-persistence</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>com.xx.xx</groupId>
<artifactId>xx-model</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.XX.MongoRestApplication</mainClass>
</configuration>
</plugin>
</plugins>
</build>









share|improve this question






















  • I have this exact issue... @paa have you found any solution so far?

    – Hugo Tavares
    Mar 25 at 12:10













0












0








0








I am getting below error when trying



[INFO] reading from C:/Project/xxxmongo-rest/src/main/resources/spec/api-docs.json
[INFO] reading from C:/Project/xxxmongo-rest/src/main/resources/spec/api-docs.json
[WARNING] Output directory does not exist, or is inaccessible. No file (.swager-codegen-ignore) will be evaluated.
[ERROR]
java.lang.RuntimeException: missing swagger input or config!
at io.swagger.codegen.DefaultGenerator.generate (DefaultGenerator.java:685)
at io.swagger.codegen.plugin.CodeGenMojo.execute (CodeGenMojo.java:534)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)


pom.xml



<properties>
<client.package.key>bs.mongo</client.package.key>
<!--<client.spec.gen>http://localhost:8081/xxx/v2/api-docs</client.spec.gen>-->
<swagger.spec.gen.skip>true</swagger.spec.gen.skip>
</properties>
<dependencies>
<!--crud base controllers-->
<dependency>
<groupId>com.xx</groupId>
<artifactId>xx-api-crud</artifactId>
<version>$project.parent.version</version>
</dependency>

<dependency>
<groupId>com.xx.xx</groupId>
<artifactId>bootcamp-mongo-persistence</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>com.xx.xx</groupId>
<artifactId>xx-model</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.XX.MongoRestApplication</mainClass>
</configuration>
</plugin>
</plugins>
</build>









share|improve this question














I am getting below error when trying



[INFO] reading from C:/Project/xxxmongo-rest/src/main/resources/spec/api-docs.json
[INFO] reading from C:/Project/xxxmongo-rest/src/main/resources/spec/api-docs.json
[WARNING] Output directory does not exist, or is inaccessible. No file (.swager-codegen-ignore) will be evaluated.
[ERROR]
java.lang.RuntimeException: missing swagger input or config!
at io.swagger.codegen.DefaultGenerator.generate (DefaultGenerator.java:685)
at io.swagger.codegen.plugin.CodeGenMojo.execute (CodeGenMojo.java:534)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke (Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)


pom.xml



<properties>
<client.package.key>bs.mongo</client.package.key>
<!--<client.spec.gen>http://localhost:8081/xxx/v2/api-docs</client.spec.gen>-->
<swagger.spec.gen.skip>true</swagger.spec.gen.skip>
</properties>
<dependencies>
<!--crud base controllers-->
<dependency>
<groupId>com.xx</groupId>
<artifactId>xx-api-crud</artifactId>
<version>$project.parent.version</version>
</dependency>

<dependency>
<groupId>com.xx.xx</groupId>
<artifactId>bootcamp-mongo-persistence</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>com.xx.xx</groupId>
<artifactId>xx-model</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.XX.MongoRestApplication</mainClass>
</configuration>
</plugin>
</plugins>
</build>






mongodb swagger pom.xml






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 22 at 6:40









PAAPAA

2,83022242




2,83022242












  • I have this exact issue... @paa have you found any solution so far?

    – Hugo Tavares
    Mar 25 at 12:10

















  • I have this exact issue... @paa have you found any solution so far?

    – Hugo Tavares
    Mar 25 at 12:10
















I have this exact issue... @paa have you found any solution so far?

– Hugo Tavares
Mar 25 at 12:10





I have this exact issue... @paa have you found any solution so far?

– Hugo Tavares
Mar 25 at 12:10












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55294161%2ffailed-to-execute-goal-io-swaggerswagger-codegen-maven-plugin2-2-3generate-d%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55294161%2ffailed-to-execute-goal-io-swaggerswagger-codegen-maven-plugin2-2-3generate-d%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript