Added incomplete swagger/ejb/rest/jsapi integration demo.
This commit is contained in:
@@ -0,0 +1,146 @@
|
||||
<?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">
|
||||
<parent>
|
||||
<artifactId>android</artifactId>
|
||||
<groupId>com.maptology</groupId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.maptology.android</groupId>
|
||||
<artifactId>feign</artifactId>
|
||||
<name>Maptology Android Feign</name>
|
||||
<description>Source code of the generated client.</description>
|
||||
<packaging>jar</packaging>
|
||||
<properties>
|
||||
<version.swagger>1.5.15</version.swagger>
|
||||
<version.feign>9.4.0</version.feign>
|
||||
<version.feign-form>2.1.0</version.feign-form>
|
||||
<version.jackson>2.8.9</version.jackson>
|
||||
<version.oltu>1.0.1</version.oltu>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>copy</goal>
|
||||
</goals>
|
||||
<phase>generate-sources</phase>
|
||||
<configuration>
|
||||
<artifactItems>
|
||||
<artifactItem>
|
||||
<groupId>com.maptology</groupId>
|
||||
<artifactId>api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<type>swagger</type>
|
||||
<destFileName>maptology.json</destFileName>
|
||||
<outputDirectory>${project.build.directory}/swagger/</outputDirectory>
|
||||
</artifactItem>
|
||||
</artifactItems>
|
||||
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-codegen-maven-plugin</artifactId>
|
||||
<version>2.2.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<phase>process-sources</phase>
|
||||
<configuration>
|
||||
<inputSpec>${project.build.directory}/swagger/maptology.json</inputSpec>
|
||||
<language>java</language>
|
||||
<output>${project.build.directory}/generated-sources/maptology/</output>
|
||||
<library>feign</library>
|
||||
<generateApiDocumentation>false</generateApiDocumentation>
|
||||
<generateApiTests>false</generateApiTests>
|
||||
<generateModelDocumentation>false</generateModelDocumentation>
|
||||
<generateModelTests>false</generateModelTests>
|
||||
<generateSupportingFiles>false</generateSupportingFiles>
|
||||
<invokerPackage>com.maptology.android.feign</invokerPackage>
|
||||
<apiPackage>com.maptology.android.feign.api</apiPackage>
|
||||
<modelPackage>com.maptology.android.feign.model</modelPackage>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<dependencies>
|
||||
<!-- required to find swagger in current reactor -->
|
||||
<dependency>
|
||||
<groupId>com.maptology</groupId>
|
||||
<artifactId>api</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<type>swagger</type>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<!-- swagger -->
|
||||
<dependency>
|
||||
<groupId>io.swagger</groupId>
|
||||
<artifactId>swagger-annotations</artifactId>
|
||||
<version>${version.swagger}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- feign -->
|
||||
<dependency>
|
||||
<groupId>io.github.openfeign</groupId>
|
||||
<artifactId>feign-core</artifactId>
|
||||
<version>${version.feign}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.github.openfeign</groupId>
|
||||
<artifactId>feign-jackson</artifactId>
|
||||
<version>${version.feign}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.github.openfeign</groupId>
|
||||
<artifactId>feign-slf4j</artifactId>
|
||||
<version>${version.feign}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.github.openfeign.form</groupId>
|
||||
<artifactId>feign-form</artifactId>
|
||||
<version>${version.feign-form}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- jackson -->
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-core</artifactId>
|
||||
<version>${version.jackson}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-annotations</artifactId>
|
||||
<version>${version.jackson}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
<version>${version.jackson}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.datatype</groupId>
|
||||
<artifactId>jackson-datatype-joda</artifactId>
|
||||
<version>${version.jackson}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- oauth -->
|
||||
<dependency>
|
||||
<groupId>org.apache.oltu.oauth2</groupId>
|
||||
<artifactId>org.apache.oltu.oauth2.client</artifactId>
|
||||
<version>${version.oltu}</version>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
</project>
|
||||
Reference in New Issue
Block a user