Open Jeevi21 opened 8 years ago
Reading the documentation of swagger-maven-plugin, it seems you're specifying the locations
tag incorrectly. It should be like this:
<locations>
<location>oracle.cloud.appstore.partner.rest.resources</location>
</locations>
Please make the correction to your configuration and try again. If this fixes the issue, please close the issue.
Hi i tried your solution. But its not working... I got the below error.
bash-4.1$ ant -file build_swagger.xml
Buildfile: build_swagger.xml
swaggertask.init:
swaggertask.first:
BUILD FAILED
build_swagger.xml:59: locations doesn't support the nested "location" element.
I will have to investigate this further.
My resource files are not under /src/main/java... I think that s the problem.. Is there any way to give customized src path?
@Jeevi21 The path where your source files are located is a Maven configuration in your pom.xml
:
...
<build>
<sourceDirectory>path/to/src</sourceDirectory>
...
</build>
...
But since this is an Ant task that's wrapping a Maven plugin, there's a disconnect there, and I didn't take care of that special case.
Would you be interested in working on this?
This is my apisource
location - is the package which needs to be scanned. Swagger.json is getting generated. But details about my api's are not included in json. can anyone help me in getting it right? Thanks, Jeevi N