132 lines
4.0 KiB
XML
132 lines
4.0 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>com.maptology</groupId>
|
|
<artifactId>all</artifactId>
|
|
<version>0.0.1-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>api</artifactId>
|
|
<name>Maptology Api</name>
|
|
<description>Api of the maptology service.</description>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<!-- generate swagger description from api -->
|
|
<groupId>com.github.kongchen</groupId>
|
|
<artifactId>swagger-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<phase>process-classes</phase>
|
|
<goals>
|
|
<goal>generate</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<apiSources>
|
|
<apiSource>
|
|
<springmvc>false</springmvc>
|
|
<locations>
|
|
<location>com.maptology.api.user.IUserService</location>
|
|
<location>com.maptology.api.notice.INoticeService</location>
|
|
<location>com.maptology.api.log.ILogService</location>
|
|
<location>com.maptology.api.version.IVersionService</location>
|
|
<location>com.maptology.api.device.IDeviceService</location>
|
|
<location>com.maptology.api.share.IShareService</location>
|
|
</locations>
|
|
<schemes>
|
|
<scheme>http</scheme>
|
|
<scheme>https</scheme>
|
|
</schemes>
|
|
<basePath>/api</basePath>
|
|
<info>
|
|
<title>Maptology Service</title>
|
|
<version>${project.version}</version>
|
|
<description>
|
|
Maptology Service
|
|
</description>
|
|
<termsOfService>https://maptology.com/terms-of-service</termsOfService>
|
|
<contact>
|
|
<name>NES Universitaet Duisburg-Essen</name>
|
|
<email>nes-admin@uni-due.de</email>
|
|
<url>https://www.nes.uni-due.de</url>
|
|
</contact>
|
|
<license>
|
|
<url>https://maptology.com/license</url>
|
|
<name>Proprietary</name>
|
|
</license>
|
|
</info>
|
|
<swaggerFileName>maptology</swaggerFileName>
|
|
<swaggerDirectory>${basedir}/target/swagger/</swaggerDirectory>
|
|
<securityDefinitions>
|
|
<securityDefinition>
|
|
<name>user</name>
|
|
<type>basic</type>
|
|
<description>Operations requiring a valid user.</description>
|
|
</securityDefinition>
|
|
<securityDefinition>
|
|
<name>admin</name>
|
|
<type>basic</type>
|
|
<description>Operations requiring admin privileges.</description>
|
|
</securityDefinition>
|
|
<securityDefinition>
|
|
<name>device</name>
|
|
<type>apiKey</type>
|
|
<description>Operations requiring device privileges.</description>
|
|
</securityDefinition>
|
|
</securityDefinitions>
|
|
</apiSource>
|
|
</apiSources>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<!-- attach the generated swagger file as artifact -->
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-artifacts</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>attach-artifact</goal>
|
|
</goals>
|
|
<configuration>
|
|
<artifacts>
|
|
<artifact>
|
|
<file>${basedir}/target/swagger/maptology.json</file>
|
|
<type>swagger</type>
|
|
</artifact>
|
|
</artifacts>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>javax</groupId>
|
|
<artifactId>javaee-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>io.swagger</groupId>
|
|
<artifactId>swagger-annotations</artifactId>
|
|
<version>1.5.16</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-annotations</artifactId>
|
|
<version>2.6.3</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
</project>
|