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