boilerplate-api-web-documentation
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.github.cafdataprocessing</groupId> <artifactId>boilerplate-api-web-documentation</artifactId> <version>2.3.0-92</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2015-2017 EntIT Software LLC, a Micro Focus company. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <artifactId>boilerplate-api-web-aggregator</artifactId> <groupId>com.github.cafdataprocessing</groupId> <version>2.3.0-92</version> <relativePath>../pom.xml</relativePath> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>boilerplate-api-web-documentation</artifactId> <packaging>pom</packaging> <dependencies> <dependency> <groupId>io.swagger</groupId> <artifactId>swagger-core</artifactId> <scope>compile</scope> <version>1.5.5</version> </dependency> <dependency> <groupId>com.github.cafdataprocessing</groupId> <artifactId>boilerplate-api-web</artifactId> <version>${project.version}</version> <type>war</type> <scope>runtime</scope> </dependency> <dependency> <groupId>com.github.cafdataprocessing</groupId> <artifactId>boilerplate-api</artifactId> <version>${project.version}</version> <scope>runtime</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.10</version> <executions> <execution> <id>unpack-dependencies</id> <phase>validate</phase> <goals> <goal>unpack-dependencies</goal> </goals> <configuration> <includeArtifactIds>boilerplate-api-web,boilerplate-api</includeArtifactIds> <includes>**\com/**/*.class</includes> <outputDirectory>${project.build.directory}/classes</outputDirectory> <overWriteReleases>false</overWriteReleases> <overWriteSnapshots>true</overWriteSnapshots> </configuration> </execution> </executions> </plugin> <!-- Unpack dependencies keeps the internal file structure of the war file. Swagger requires the classes to be at the root level of the target/classes folder. So using resources plugin to move the classess to the correct location.--> <plugin> <artifactId>maven-resources-plugin</artifactId> <version>2.6</version> <executions> <execution> <id>copy-resources</id> <phase>validate</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${project.build.directory}/classes</outputDirectory> <resources> <resource> <directory>${project.build.directory}/classes/WEB-INF/classes</directory> </resource> <resource> <directory>${project.basedir}/src/main/resources</directory> </resource> </resources> </configuration> </execution> </executions> </plugin> <!--Generate the client calling code--> <plugin> <groupId>com.github.kongchen</groupId> <artifactId>swagger-maven-plugin</artifactId> <version>3.1.2</version> <inherited>false</inherited> <configuration> <apiSources> <apiSource> <springmvc>true</springmvc> <locations>com.hpe.caf.boilerplate.web</locations> <schemes>http,https</schemes> <!--<host>localhost:8080</host>--> <!--<basePath>/api</basePath>--> <info> <title>Boilerplate API</title> <version>v1</version> <description> Boilerplate API. </description> </info> <!-- Support classpath or file absolute path here. 1) classpath e.g: "classpath:/markdown.hbs", "classpath:/templates/hello.html" 2) file e.g: "${basedir}/src/main/resources/markdown.hbs", "${basedir}/src/main/resources/template/hello.html" --> <!--<templatePath>${basedir}/src/test/resources/strapdown.html.hbs</templatePath>--> <outputPath>${basedir}/document.html</outputPath> <attachSwaggerArtifact>true</attachSwaggerArtifact> <swaggerDirectory>${project.build.directory}/generated-sources/swagger-ui</swaggerDirectory> <securityDefinitions> <securityDefinition> <json>/securityDefinitions.json</json> </securityDefinition> </securityDefinitions> </apiSource> </apiSources> </configuration> <executions> <execution> <phase>compile</phase> <goals> <goal>generate</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>