Skip to content

Packages not found if source code isn't in src/main/java #2

@Jeevi21

Description

@Jeevi21

This is my apisource

     <apiSource>                
                <locations>appstore.partner.rest.resources</locations>
                <apiVersion>v1</apiVersion>
                <host>http://slczff.us.com:701/</host>
                <basePath>/myapis</basePath>
                <info>
                    <title>Swagger Maven Plugin Sample</title>
                    <version>v1</version>
                    <description>My sample</description>
                    <termsOfService>TermsOfService</termsOfService>
                    <contact>
                        <email>api@gmail.com</email>
                        <name>My Apis</name>
                        <url>http://apis.com</url>
                    </contact>
                    <license>
                        <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
                        <name>Apache 2.0</name>
                    </license>
                </info>

                 <!---Swagger JSON parameters BEGIN-->
                <swaggerDirectory>generated/swagger-ui</swaggerDirectory>                    
                <useOutputFlatStructure>false</useOutputFlatStructure>
                <!---Swagger JSON parameters END-->
     </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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions