Closed aniketsp closed 6 years ago
Can you try:
I don’t think the plugin management section actually makes plugins run, it only defines common configuration. So you’d need to have the execution block in a plugin section outside of plugin management.
Hi thanks for your reply. I solved the issue. You are right. It was the
@aniketsp mind closing this issue if it for sure was resolved?
hii aniketsp
I am still getting this error what have u done to solve this one .
Error.
Failed to execute goal com.github.kongchen:swagger-maven-plugin:3.1.0:generate (default) : null: MojoExecutionException: NullPointerException -> [Help 1]
Please help.
Hi. I don't know what I am doing wrong. We had previously used swagger-core on our Jersey JAX-RS project to generate swagger.json. It impacted our performance and then we found your project which would generate the swagger.json only during compile time and not run time. So I tried to transition to your project. I hope I am understanding this correct. I left web.xml as it was during swagger-core configuration and the maven dependency as well, but added the plugin to the same build like so: pom.xml
I had to add the plugins management because the execution was giving an error. BTW I am doing all of this in eclipse.
This is the swagger configuration in web.xml in case its helpful:
Now, I am right clicking on the project and selecting maven -> build -> clean install and it builds successfully but under the 'webapp' folder I don't see any output.html or in the 'dist' folder no swagger.json. I even tried through cmd going to the git project and then running mvn compile. Same. Build success but really nothing happens. What am I doing wrong?