forked from JKAUSHALYA/swaggerdocumentgenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
127 lines (119 loc) · 5.14 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.wso2</groupId>
<artifactId>wso2</artifactId>
<version>1</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.wso2.swagger.document.generator</groupId>
<artifactId>swagger-document-generator</artifactId>
<version>1.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<executions>
<execution>
<phase>site</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/swagger-yaml/${swagger.yaml.file.name}</inputSpec>
<language>org.wso2.carbon.apimgt.rest.api.util.codegen.DynamicHtmlGen</language>
<templateDirectory>${project.basedir}/templates</templateDirectory>
<output>src/main/resources/api-docs</output>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.wso2.carbon.apimgt</groupId>
<artifactId>org.wso2.carbon.apimgt.rest.api.util</artifactId>
<version>6.1.72</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>clean-resources</id>
<phase>clean</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<delete dir="${project.basedir}/src/main/resources/api-docs/docs/operations"/>
<delete dir="${project.basedir}/src/main/resources/api-docs/docs/models"/>
<delete file="${project.basedir}/doc/doc.zip"/>
</target>
</configuration>
</execution>
<execution>
<id>copy-resources</id>
<phase>install</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<copy file="${project.basedir}/templates/guide.html" todir="${project.basedir}/src/main/resources/api-docs/docs"/>
<copy file="${project.basedir}/templates/configuring-rest-api.html" todir="${project.basedir}/src/main/resources/api-docs/docs"/>
</target>
</configuration>
</execution>
<execution>
<id>build-zip</id>
<phase>post-site</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<zip destfile="${project.basedir}/doc/doc.zip"
basedir="${project.basedir}/src/main/resources/api-docs/docs"
/>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.9</version>
<reportSets>
<reportSet>
<configuration>
<skip>true</skip>
</configuration>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
<properties>
<swagger.yaml.file.name>api.identity.user.yaml</swagger.yaml.file.name>
</properties>
</project>