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>
9 <groupId>org.openecomp.sdc</groupId>
10 <artifactId>openecomp-sdc</artifactId>
11 <version>1.13.4-SNAPSHOT</version>
12 <relativePath>../../</relativePath>
16 <groupId>org.openecomp.sdc</groupId>
17 <artifactId>catalog-be</artifactId>
18 <version>${project.version}</version>
19 <classifier>classes</classifier>
22 <groupId>org.eclipse.jetty</groupId>
23 <artifactId>jetty-http</artifactId>
26 <groupId>org.eclipse.jetty</groupId>
27 <artifactId>jetty-servlets</artifactId>
30 <groupId>org.eclipse.jetty</groupId>
31 <artifactId>jetty-server</artifactId>
34 <groupId>org.eclipse.jetty</groupId>
35 <artifactId>jetty-servlet</artifactId>
38 <groupId>org.springframework</groupId>
39 <artifactId>spring-core</artifactId>
42 <groupId>org.springframework</groupId>
43 <artifactId>spring-web</artifactId>
46 <groupId>org.functionaljava</groupId>
47 <artifactId>functionaljava</artifactId>
53 <plugin.name>api-docs</plugin.name>
54 <rest.api.dir>${basedir}/../../api/openecomp-sdc-rest-webapp/onboarding-rest-war
56 <catalog-be.api.dir>${basedir}/../../../catalog-be</catalog-be.api.dir>
61 <groupId>org.apache.maven.plugins</groupId>
62 <artifactId>maven-deploy-plugin</artifactId>
63 <version>${mvn.deploy.version}</version>
69 <groupId>org.apache.maven.plugins</groupId>
70 <artifactId>maven-jar-plugin</artifactId>
79 <groupId>org.apache.maven.plugins</groupId>
80 <artifactId>maven-antrun-plugin</artifactId>
81 <version>${maven-antrun-plugin.version}</version>
85 <phase>package</phase>
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 <include name="*.yaml"/>
95 <copy todir="${basedir}/target/${plugin.name}/">
96 <fileset dir="${catalog-be.api.dir}/target/generated/openapi/">
97 <include name="*.json"/>
98 <include name="*.yaml"/>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-assembly-plugin</artifactId>
112 <version>2.6</version>
114 <descriptor>assembly/swagger.xml</descriptor>
115 <finalName>${plugin.name}</finalName>
116 <outputDirectory>${basedir}/target/${plugin.name}</outputDirectory>
117 <appendAssemblyId>false</appendAssemblyId>
121 <phase>package</phase>