Update version to 1.13.6-SNAPSHOT
[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.13.6-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                 <exclusion>
30                     <groupId>org.eclipse.jetty</groupId>
31                     <artifactId>jetty-server</artifactId>
32                 </exclusion>
33                 <exclusion>
34                     <groupId>org.eclipse.jetty</groupId>
35                     <artifactId>jetty-servlet</artifactId>
36                 </exclusion>
37                 <exclusion>
38                     <groupId>org.springframework</groupId>
39                     <artifactId>spring-core</artifactId>
40                 </exclusion>
41                 <exclusion>
42                     <groupId>org.springframework</groupId>
43                     <artifactId>spring-web</artifactId>
44                 </exclusion>
45                 <exclusion>
46                     <groupId>org.functionaljava</groupId>
47                     <artifactId>functionaljava</artifactId>
48                 </exclusion>
49             </exclusions>
50         </dependency>
51     </dependencies>
52     <properties>
53         <plugin.name>api-docs</plugin.name>
54         <rest.api.dir>${basedir}/../../api/openecomp-sdc-rest-webapp/onboarding-rest-war
55         </rest.api.dir>
56         <catalog-be.api.dir>${basedir}/../../../catalog-be</catalog-be.api.dir>
57     </properties>
58     <build>
59         <plugins>
60             <plugin>
61                 <groupId>org.apache.maven.plugins</groupId>
62                 <artifactId>maven-deploy-plugin</artifactId>
63                 <version>${mvn.deploy.version}</version>
64                 <configuration>
65                     <skip>true</skip>
66                 </configuration>
67             </plugin>
68             <plugin>
69                 <groupId>org.apache.maven.plugins</groupId>
70                 <artifactId>maven-jar-plugin</artifactId>
71                 <executions>
72                     <execution>
73                         <id>default-jar</id>
74                         <phase>none</phase>
75                     </execution>
76                 </executions>
77             </plugin>
78             <plugin>
79                 <groupId>org.apache.maven.plugins</groupId>
80                 <artifactId>maven-antrun-plugin</artifactId>
81                 <version>${maven-antrun-plugin.version}</version>
82                 <executions>
83                     <execution>
84                         <id>copy</id>
85                         <phase>package</phase>
86                         <configuration>
87                             <target>
88                                 <echo message="Copy api json files"/>
89                                 <copy todir="${basedir}/target/${plugin.name}/">
90                                     <fileset dir="${rest.api.dir}/target/generated/swagger-ui/">
91                                         <include name="*.json"/>
92                                         <include name="*.yaml"/>
93                                     </fileset>
94                                 </copy>
95                                 <copy todir="${basedir}/target/${plugin.name}/">
96                                     <fileset dir="${catalog-be.api.dir}/target/generated/openapi/">
97                                         <include name="*.json"/>
98                                         <include name="*.yaml"/>
99                                     </fileset>
100                                 </copy>
101                             </target>
102                         </configuration>
103                         <goals>
104                             <goal>run</goal>
105                         </goals>
106                     </execution>
107                 </executions>
108             </plugin>
109             <plugin>
110                 <groupId>org.apache.maven.plugins</groupId>
111                 <artifactId>maven-assembly-plugin</artifactId>
112                 <version>2.6</version>
113                 <configuration>
114                     <descriptor>assembly/swagger.xml</descriptor>
115                     <finalName>${plugin.name}</finalName>
116                     <outputDirectory>${basedir}/target/${plugin.name}</outputDirectory>
117                     <appendAssemblyId>false</appendAssemblyId>
118                 </configuration>
119                 <executions>
120                     <execution>
121                         <phase>package</phase>
122                         <goals>
123                             <goal>single</goal>
124                         </goals>
125                     </execution>
126                 </executions>
127             </plugin>
128         </plugins>
129     </build>
130
131 </project>