Update SDC version 1.5.0
[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.5.0-SNAPSHOT</version>
12         <relativePath>../../</relativePath>
13     </parent>
14
15     <properties>
16         <plugin.name>api-docs</plugin.name>
17         <rest.api.dir>${basedir}/../../api/openecomp-sdc-rest-webapp/onboarding-rest-war</rest.api.dir>
18         <api.json.file>api.json</api.json.file>
19     </properties>
20     <build>
21         <plugins>
22             <plugin>
23                 <groupId>org.apache.maven.plugins</groupId>
24                 <artifactId>maven-deploy-plugin</artifactId>
25                 <version>${mvn.deploy.version}</version>
26                 <configuration>
27                     <skip>true</skip>
28                 </configuration>
29             </plugin>
30             <plugin>
31                 <groupId>org.apache.maven.plugins</groupId>
32                 <artifactId>maven-jar-plugin</artifactId>
33                 <version>${mvn.jar.version}</version>
34                 <executions>
35                     <execution>
36                         <id>default-jar</id>
37                         <phase>none</phase>
38                     </execution>
39                 </executions>
40             </plugin>
41             <plugin>
42                 <artifactId>maven-antrun-plugin</artifactId>
43                 <executions>
44                     <execution>
45                         <id>copy</id>
46                         <phase>package</phase>
47                         <configuration>
48                             <tasks>
49                                 <echo message="Copy api json files"/>
50                                 <copy file="${rest.api.dir}/target/generated/swagger-ui/swagger.json" tofile="${basedir}/target/${plugin.name}/${api.json.file}"/>
51                             </tasks>
52                         </configuration>
53                         <goals>
54                             <goal>run</goal>
55                         </goals>
56                     </execution>
57                 </executions>
58             </plugin>
59             <plugin>
60                 <groupId>org.apache.maven.plugins</groupId>
61                 <artifactId>maven-assembly-plugin</artifactId>
62                 <version>${mvn.assembly.version}</version>
63                 <configuration>
64                     <descriptor>assembly/swagger.xml</descriptor>
65                     <finalName>${plugin.name}</finalName>
66                     <outputDirectory>${basedir}/target/${plugin.name}</outputDirectory>
67                                         <appendAssemblyId>false</appendAssemblyId>
68                 </configuration>
69                 <executions>
70                     <execution>
71                         <phase>package</phase>
72                         <goals>
73                             <goal>single</goal>
74                         </goals>
75                     </execution>
76                 </executions>
77             </plugin>
78         </plugins>
79     </build>
80
81 </project>