Step version to 1.12.1
[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.12.1-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                                     </fileset>
93                                 </copy>
94                                 <copy todir="${basedir}/target/${plugin.name}/">
95                                     <fileset dir="${catalog-be.api.dir}/target/generated/swagger/">
96                                         <include name="*.json"/>
97                                     </fileset>
98                                 </copy>
99                             </target>
100                         </configuration>
101                         <goals>
102                             <goal>run</goal>
103                         </goals>
104                     </execution>
105                 </executions>
106             </plugin>
107             <plugin>
108                 <groupId>org.apache.maven.plugins</groupId>
109                 <artifactId>maven-assembly-plugin</artifactId>
110                 <version>${mvn.assembly.version}</version>
111                 <configuration>
112                     <descriptor>assembly/swagger.xml</descriptor>
113                     <finalName>${plugin.name}</finalName>
114                     <outputDirectory>${basedir}/target/${plugin.name}</outputDirectory>
115                     <appendAssemblyId>false</appendAssemblyId>
116                 </configuration>
117                 <executions>
118                     <execution>
119                         <phase>package</phase>
120                         <goals>
121                             <goal>single</goal>
122                         </goals>
123                     </execution>
124                 </executions>
125             </plugin>
126         </plugins>
127     </build>
128
129 </project>