cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-7464) add java2swagger maven plugin so that can generate swagger(json/yaml) during build time
Date Wed, 02 Aug 2017 07:49:00 GMT

    [ https://issues.apache.org/jira/browse/CXF-7464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16110480#comment-16110480
] 

Freeman Fang edited comment on CXF-7464 at 8/2/17 7:48 AM:
-----------------------------------------------------------

We should be able to configure the non-runtime properties like
version
basePath
title
description
contact
license
licenseUrl
payload(json or yaml)
attach swagger file to maven repo or not
but they all should have default value, only what users should specify is the resourcePackages.
The plugin configuration should be like
{code}
<plugin>
                <groupId>org.apache.cxf</groupId>
                <artifactId>cxf-java2swagger-plugin</artifactId>
                <executions>
                    <execution>
                        <id>process-classes</id>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>java2swagger</goal>
                        </goals>
                        <configuration>
                            <resourcePackages>
                                <resourcePackage>x.y.z</resourcePackage>
                            </resourcePackages>
                        </configuration>
                      </execution>
                </executions>
            </plugin>
{code}


was (Author: ffang):
We should be able to configure the non-runtime properties like
version
basePath
title
description
contact
license
licenseUrl
payload(json or yaml)
but they all should have default value, only what users should specify is the resourcePackages.
The plugin configuration should be like
{code}
<plugin>
                <groupId>org.apache.cxf</groupId>
                <artifactId>cxf-java2swagger-plugin</artifactId>
                <executions>
                    <execution>
                        <id>process-classes</id>
                        <phase>process-classes</phase>
                        <goals>
                            <goal>java2swagger</goal>
                        </goals>
                        <configuration>
                            <resourcePackages>
                                <resourcePackage>x.y.z</resourcePackage>
                            </resourcePackages>
                        </configuration>
                      </execution>
                </executions>
            </plugin>
{code}

> add java2swagger maven plugin so that can generate swagger(json/yaml) during build time
> ---------------------------------------------------------------------------------------
>
>                 Key: CXF-7464
>                 URL: https://issues.apache.org/jira/browse/CXF-7464
>             Project: CXF
>          Issue Type: New Feature
>          Components: Tooling
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message