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.11.0-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.springframework</groupId>
31 <artifactId>spring-core</artifactId>
34 <groupId>org.springframework</groupId>
35 <artifactId>spring-web</artifactId>
41 <plugin.name>api-docs</plugin.name>
42 <rest.api.dir>${basedir}/../../api/openecomp-sdc-rest-webapp/onboarding-rest-war
44 <catalog-be.api.dir>${basedir}/../../../catalog-be</catalog-be.api.dir>
49 <groupId>org.apache.maven.plugins</groupId>
50 <artifactId>maven-deploy-plugin</artifactId>
51 <version>${mvn.deploy.version}</version>
57 <groupId>org.apache.maven.plugins</groupId>
58 <artifactId>maven-jar-plugin</artifactId>
67 <groupId>org.apache.maven.plugins</groupId>
68 <artifactId>maven-antrun-plugin</artifactId>
69 <version>${maven-antrun-plugin.version}</version>
73 <phase>package</phase>
76 <echo message="Copy api json files"/>
77 <copy todir="${basedir}/target/${plugin.name}/">
78 <fileset dir="${rest.api.dir}/target/generated/swagger-ui/">
79 <include name="*.json"/>
82 <copy todir="${basedir}/target/${plugin.name}/">
83 <fileset dir="${catalog-be.api.dir}/target/generated/swagger/">
84 <include name="*.json"/>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-assembly-plugin</artifactId>
98 <version>${mvn.assembly.version}</version>
100 <descriptor>assembly/swagger.xml</descriptor>
101 <finalName>${plugin.name}</finalName>
102 <outputDirectory>${basedir}/target/${plugin.name}</outputDirectory>
103 <appendAssemblyId>false</appendAssemblyId>
107 <phase>package</phase>