Grokola Swagger Maven Plugin

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка KeY Данные Data Formats Formal Verification Swagger Межпрограммное взаимодействие REST Frameworks
Группа

Группа

com.keyholesoftware
Идентификатор

Идентификатор

khs-grokola-swagger-maven-plugin
Последняя версия

Последняя версия

1.0
Дата

Дата

Тип

Тип

maven-plugin
Описание

Описание

Grokola Swagger Maven Plugin
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Система контроля версий

Система контроля версий

https://github.com/in-the-keyhole/khs-grokola-swagger-maven-plugin

Скачать khs-grokola-swagger-maven-plugin

Как подключить последнюю версию

<plugin>
    <groupId>com.keyholesoftware</groupId>
    <artifactId>khs-grokola-swagger-maven-plugin</artifactId>
    <version>1.0</version>
</plugin>

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.apache.maven : maven-plugin-api jar 3.0
commons-io : commons-io jar 2.4

provided (1)

Идентификатор библиотеки Тип Версия
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 3.8.1

Модули Проекта

Данный проект не имеет модулей.

grokola-swagger-plugin

GrokOla Swagger Integration Maven Plugin

Overview

The Grokola Swagger Integration Maven Plugin can be used with Maven projects to upload Swagger JSON files describing the project's API to Grokola via the Maven build life-cycle.

Getting Started

Add this plugin to the build/plugins section of your API project's pom.xml like so:

<plugin>
	<groupId>com.khs</groupId>
	<artifactId>khs-grokola-swagger-maven-plugin</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<configuration>			
		<grokolaBaseUrl>https://beta.grokola.com</grokolaBaseUrl>
		<grokolaCategory>Miscellaneous</grokolaCategory>
		<grokolaAuthToken>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</grokolaAuthToken>
		<swaggerJsonFile>src/main/resources/static/swagger.json</swaggerJsonFile>
	</configuration>
	<executions>
		<execution>
			<phase>install</phase>
			<goals>
				<goal>grokola-swagger-upload</goal>
			</goals>
		</execution>
	</executions>
</plugin>

In the configuration section, specify the following settings:

Setting Description required/optional Default value
grokolaBaseUrl the URL of the Grokola instance optional https://beta.grokola.com
grokolaCategory the category name in Grokola optional Miscellaneous
grokolaAuthToken the auth token from Grokola required
swaggerJsonFile the file path of the Swagger JSON file required

In the executions section of the plugin, specify a Maven build life-cycle phase and a goal of grokola-swagger-upload. In this example, we used the install phase but you might prefer to used something else, like deploy.

com.keyholesoftware

Keyhole Software

Software dev team providing consulting, development & education services with Java, JavaScript & .NET technologies.

Версии библиотеки

Версия
1.0