Files
maptology/api/pom.xml
T
handte 5915090805
lbs-gitea/maptology/master This commit looks good
Added angular example, apigen and apiconsole, removed need for ear.
Added example for angular with generated api-client.
Added swagger-ui api-console to api.
Added war (webapp) containing angular app (attached to /app).
Modified bundling of ejb and war to allow standalone war deployment.
Added ear to integrate api and app.
Added security definitions to swagger.
Added http scheme to swagger for development.
Removed cache control header from getUsers to force revaliation.
Added jboss-web.xml files to war files to ensure that standalone
deployments are attached to the same context root as ear deployments.
Configured resteasy as a servlet filter to support coexistence with
static resources.
2017-11-09 18:25:01 +01:00

112 lines
3.2 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>
</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>BasicAuth</name>
<type>basic</type>
</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>
</dependencies>
</project>