cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vjacheslav V. Borisov" <slav...@gmail.com>
Subject Re: WADL and Swagger
Date Thu, 04 Feb 2016 13:45:03 GMT
2016-02-04 17:19 GMT+04:00 Francesco Chicchiriccò <ilgrosso@apache.org>:


> As a result, we will end up having, in
>
> ${project.build.directory}/classes/META-INF/resources/swagger
>
> all the files in place ready to be packaged again.
>
> The "magic" that allows accessing such resources via HTTP under /swagger
> is simply because it gets treated as Servlet Fragment.
>

Cannot reproduce you magic, so end up with black magic :)

             <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.1.1</version>
                <configuration>
                    <webResources>
                        <resource>

<directory>${project.build.directory}/swagger-ui/META-INF/resources/webjars/swagger-ui/${swagger-ui.version}</directory>
                            <targetPath>swagger</targetPath>
                        </resource>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message