blob: 943c1367dd7137bbfc9019ae3a41e060817db824 [file] [log] [blame]
Michael Landof5f13c42017-02-19 12:35:04 +02001<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>
AviZi280f8012017-06-09 02:39:56 +03007
8 <parent>
9 <groupId>org.openecomp.sdc</groupId>
10 <artifactId>openecomp-sdc</artifactId>
Michael Landod8a0dea2018-06-02 19:23:27 +030011 <version>1.3.0-SNAPSHOT</version>
AviZi280f8012017-06-09 02:39:56 +030012 <relativePath>../../</relativePath>
13 </parent>
Michael Landof5f13c42017-02-19 12:35:04 +020014
15 <properties>
16 <plugin.name>api-docs</plugin.name>
Michael Landof5f13c42017-02-19 12:35:04 +020017 <rest.api.dir>${basedir}/../../api/openecomp-sdc-rest-webapp/onboarding-rest-war</rest.api.dir>
18 <api.json.file>api.json</api.json.file>
Michael Landof5f13c42017-02-19 12:35:04 +020019 </properties>
20 <build>
21 <plugins>
22 <plugin>
23 <groupId>org.apache.maven.plugins</groupId>
24 <artifactId>maven-deploy-plugin</artifactId>
AviZi280f8012017-06-09 02:39:56 +030025 <version>${mvn.deploy.version}</version>
Michael Landof5f13c42017-02-19 12:35:04 +020026 <configuration>
27 <skip>true</skip>
28 </configuration>
29 </plugin>
30 <plugin>
31 <groupId>org.apache.maven.plugins</groupId>
32 <artifactId>maven-jar-plugin</artifactId>
AviZi280f8012017-06-09 02:39:56 +030033 <version>${mvn.jar.version}</version>
Michael Landof5f13c42017-02-19 12:35:04 +020034 <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"/>
Gautam Shah09a41f52018-04-11 19:55:29 +053050 <copy file="${rest.api.dir}/target/generated/swagger-ui/swagger.json" tofile="${basedir}/target/${plugin.name}/${api.json.file}"/>
Michael Landof5f13c42017-02-19 12:35:04 +020051 </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>
AviZi280f8012017-06-09 02:39:56 +030062 <version>${mvn.assembly.version}</version>
Michael Landof5f13c42017-02-19 12:35:04 +020063 <configuration>
64 <descriptor>assembly/swagger.xml</descriptor>
65 <finalName>${plugin.name}</finalName>
Gautam Shah09a41f52018-04-11 19:55:29 +053066 <outputDirectory>${basedir}/target/${plugin.name}</outputDirectory>
Avi Zivb8e2faf2017-07-18 19:45:38 +030067 <appendAssemblyId>false</appendAssemblyId>
Michael Landof5f13c42017-02-19 12:35:04 +020068 </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
AviZi280f8012017-06-09 02:39:56 +030081</project>