blob: 07391a615e7987ce54e3f657a639adf531d4a4f2 [file] [log] [blame]
Michael Landof5f13c42017-02-19 12:35:04 +02001<project xmlns="http://maven.apache.org/POM/4.0.0"
vasraz787cfd52021-03-23 17:47:51 +00002 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">
Michael Landof5f13c42017-02-19 12:35:04 +02004 <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>
ChrisC00acf3d2021-03-22 13:54:06 +010011 <version>1.9.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>
vasraz787cfd52021-03-23 17:47:51 +000017 <rest.api.dir>${basedir}/../../api/openecomp-sdc-rest-webapp/onboarding-rest-war
18 </rest.api.dir>
Michael Landof5f13c42017-02-19 12:35:04 +020019 <api.json.file>api.json</api.json.file>
Michael Landof5f13c42017-02-19 12:35:04 +020020 </properties>
21 <build>
22 <plugins>
23 <plugin>
24 <groupId>org.apache.maven.plugins</groupId>
25 <artifactId>maven-deploy-plugin</artifactId>
AviZi280f8012017-06-09 02:39:56 +030026 <version>${mvn.deploy.version}</version>
Michael Landof5f13c42017-02-19 12:35:04 +020027 <configuration>
28 <skip>true</skip>
29 </configuration>
30 </plugin>
31 <plugin>
32 <groupId>org.apache.maven.plugins</groupId>
33 <artifactId>maven-jar-plugin</artifactId>
AviZi280f8012017-06-09 02:39:56 +030034 <version>${mvn.jar.version}</version>
Michael Landof5f13c42017-02-19 12:35:04 +020035 <executions>
36 <execution>
37 <id>default-jar</id>
38 <phase>none</phase>
39 </execution>
40 </executions>
41 </plugin>
42 <plugin>
vasraz787cfd52021-03-23 17:47:51 +000043 <groupId>org.apache.maven.plugins</groupId>
Michael Landof5f13c42017-02-19 12:35:04 +020044 <artifactId>maven-antrun-plugin</artifactId>
vasraz787cfd52021-03-23 17:47:51 +000045 <version>${maven-antrun-plugin.version}</version>
Michael Landof5f13c42017-02-19 12:35:04 +020046 <executions>
47 <execution>
48 <id>copy</id>
49 <phase>package</phase>
50 <configuration>
vasraz787cfd52021-03-23 17:47:51 +000051 <target>
Michael Landof5f13c42017-02-19 12:35:04 +020052 <echo message="Copy api json files"/>
vasraz787cfd52021-03-23 17:47:51 +000053 <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>
Michael Landof5f13c42017-02-19 12:35:04 +020057 </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>
AviZi280f8012017-06-09 02:39:56 +030067 <version>${mvn.assembly.version}</version>
Michael Landof5f13c42017-02-19 12:35:04 +020068 <configuration>
69 <descriptor>assembly/swagger.xml</descriptor>
70 <finalName>${plugin.name}</finalName>
Gautam Shah09a41f52018-04-11 19:55:29 +053071 <outputDirectory>${basedir}/target/${plugin.name}</outputDirectory>
vasraz787cfd52021-03-23 17:47:51 +000072 <appendAssemblyId>false</appendAssemblyId>
Michael Landof5f13c42017-02-19 12:35:04 +020073 </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
AviZi280f8012017-06-09 02:39:56 +030086</project>