Fix broken swagger
[sdc.git] / openecomp-be / tools / swagger-ui / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
4     <modelVersion>4.0.0</modelVersion>
5     <artifactId>api-docs</artifactId>
6     <groupId>org.openecomp.sdc.onboarding</groupId>
7
8     <parent>
9         <groupId>org.openecomp.sdc</groupId>
10         <artifactId>openecomp-sdc</artifactId>
11         <version>1.9.0-SNAPSHOT</version>
12         <relativePath>../../</relativePath>
13     </parent>
14     <dependencies>
15         <dependency>
16             <groupId>org.openecomp.sdc</groupId>
17             <artifactId>catalog-be</artifactId>
18             <version>${project.version}</version>
19             <classifier>classes</classifier>
20             <exclusions>
21                 <exclusion>
22                     <groupId>org.eclipse.jetty</groupId>
23                     <artifactId>jetty-http</artifactId>
24                 </exclusion>
25                 <exclusion>
26                     <groupId>org.eclipse.jetty</groupId>
27                     <artifactId>jetty-servlets</artifactId>
28                 </exclusion>
29             </exclusions>
30         </dependency>
31     </dependencies>
32     <properties>
33         <plugin.name>api-docs</plugin.name>
34         <rest.api.dir>${basedir}/../../api/openecomp-sdc-rest-webapp/onboarding-rest-war
35         </rest.api.dir>
36         <catalog-be.api.dir>${basedir}/../../../catalog-be</catalog-be.api.dir>
37     </properties>
38     <build>
39         <plugins>
40             <plugin>
41                 <groupId>org.apache.maven.plugins</groupId>
42                 <artifactId>maven-deploy-plugin</artifactId>
43                 <version>${mvn.deploy.version}</version>
44                 <configuration>
45                     <skip>true</skip>
46                 </configuration>
47             </plugin>
48             <plugin>
49                 <groupId>org.apache.maven.plugins</groupId>
50                 <artifactId>maven-jar-plugin</artifactId>
51                 <version>${mvn.jar.version}</version>
52                 <executions>
53                     <execution>
54                         <id>default-jar</id>
55                         <phase>none</phase>
56                     </execution>
57                 </executions>
58             </plugin>
59             <plugin>
60                 <groupId>org.apache.maven.plugins</groupId>
61                 <artifactId>maven-antrun-plugin</artifactId>
62                 <version>${maven-antrun-plugin.version}</version>
63                 <executions>
64                     <execution>
65                         <id>copy</id>
66                         <phase>package</phase>
67                         <configuration>
68                             <target>
69                                 <echo message="Copy api json files"/>
70                                 <copy todir="${basedir}/target/${plugin.name}/">
71                                     <fileset dir="${rest.api.dir}/target/generated/swagger-ui/">
72                                         <include name="*.json"/>
73                                     </fileset>
74                                 </copy>
75                                 <copy todir="${basedir}/target/${plugin.name}/">
76                                     <fileset dir="${catalog-be.api.dir}/target/generated/swagger/">
77                                         <include name="*.json"/>
78                                     </fileset>
79                                 </copy>
80                             </target>
81                         </configuration>
82                         <goals>
83                             <goal>run</goal>
84                         </goals>
85                     </execution>
86                 </executions>
87             </plugin>
88             <plugin>
89                 <groupId>org.apache.maven.plugins</groupId>
90                 <artifactId>maven-assembly-plugin</artifactId>
91                 <version>${mvn.assembly.version}</version>
92                 <configuration>
93                     <descriptor>assembly/swagger.xml</descriptor>
94                     <finalName>${plugin.name}</finalName>
95                     <outputDirectory>${basedir}/target/${plugin.name}</outputDirectory>
96                     <appendAssemblyId>false</appendAssemblyId>
97                 </configuration>
98                 <executions>
99                     <execution>
100                         <phase>package</phase>
101                         <goals>
102                             <goal>single</goal>
103                         </goals>
104                     </execution>
105                 </executions>
106             </plugin>
107         </plugins>
108     </build>
109
110 </project>