blob: 7a059a29172d5eac2acca51e731e955ed37ccdd6 [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>
MichaelMorris53aed702021-09-28 16:08:53 +010011 <version>1.10.0-SNAPSHOT</version>
AviZi280f8012017-06-09 02:39:56 +030012 <relativePath>../../</relativePath>
13 </parent>
vasraza86a4ce2021-06-11 19:02:58 +010014 <dependencies>
15 <dependency>
16 <groupId>org.openecomp.sdc</groupId>
17 <artifactId>catalog-be</artifactId>
18 <version>${project.version}</version>
19 <classifier>classes</classifier>
20 <exclusions>
21 <exclusion>
22 <groupId>org.eclipse.jetty</groupId>
23 <artifactId>jetty-http</artifactId>
24 </exclusion>
25 <exclusion>
26 <groupId>org.eclipse.jetty</groupId>
27 <artifactId>jetty-servlets</artifactId>
28 </exclusion>
vasraz7edf3d32021-08-18 13:54:08 +010029 <exclusion>
30 <groupId>org.springframework</groupId>
31 <artifactId>spring-core</artifactId>
32 </exclusion>
33 <exclusion>
34 <groupId>org.springframework</groupId>
35 <artifactId>spring-web</artifactId>
36 </exclusion>
vasraza86a4ce2021-06-11 19:02:58 +010037 </exclusions>
38 </dependency>
39 </dependencies>
Michael Landof5f13c42017-02-19 12:35:04 +020040 <properties>
41 <plugin.name>api-docs</plugin.name>
vasraz787cfd52021-03-23 17:47:51 +000042 <rest.api.dir>${basedir}/../../api/openecomp-sdc-rest-webapp/onboarding-rest-war
43 </rest.api.dir>
vasraza86a4ce2021-06-11 19:02:58 +010044 <catalog-be.api.dir>${basedir}/../../../catalog-be</catalog-be.api.dir>
Michael Landof5f13c42017-02-19 12:35:04 +020045 </properties>
46 <build>
47 <plugins>
48 <plugin>
49 <groupId>org.apache.maven.plugins</groupId>
50 <artifactId>maven-deploy-plugin</artifactId>
AviZi280f8012017-06-09 02:39:56 +030051 <version>${mvn.deploy.version}</version>
Michael Landof5f13c42017-02-19 12:35:04 +020052 <configuration>
53 <skip>true</skip>
54 </configuration>
55 </plugin>
56 <plugin>
57 <groupId>org.apache.maven.plugins</groupId>
58 <artifactId>maven-jar-plugin</artifactId>
Michael Landof5f13c42017-02-19 12:35:04 +020059 <executions>
60 <execution>
61 <id>default-jar</id>
62 <phase>none</phase>
63 </execution>
64 </executions>
65 </plugin>
66 <plugin>
vasraz787cfd52021-03-23 17:47:51 +000067 <groupId>org.apache.maven.plugins</groupId>
Michael Landof5f13c42017-02-19 12:35:04 +020068 <artifactId>maven-antrun-plugin</artifactId>
vasraz787cfd52021-03-23 17:47:51 +000069 <version>${maven-antrun-plugin.version}</version>
Michael Landof5f13c42017-02-19 12:35:04 +020070 <executions>
71 <execution>
72 <id>copy</id>
73 <phase>package</phase>
74 <configuration>
vasraz787cfd52021-03-23 17:47:51 +000075 <target>
Michael Landof5f13c42017-02-19 12:35:04 +020076 <echo message="Copy api json files"/>
vasraza86a4ce2021-06-11 19:02:58 +010077 <copy todir="${basedir}/target/${plugin.name}/">
78 <fileset dir="${rest.api.dir}/target/generated/swagger-ui/">
79 <include name="*.json"/>
80 </fileset>
81 </copy>
82 <copy todir="${basedir}/target/${plugin.name}/">
83 <fileset dir="${catalog-be.api.dir}/target/generated/swagger/">
84 <include name="*.json"/>
85 </fileset>
86 </copy>
vasraz787cfd52021-03-23 17:47:51 +000087 </target>
Michael Landof5f13c42017-02-19 12:35:04 +020088 </configuration>
89 <goals>
90 <goal>run</goal>
91 </goals>
92 </execution>
93 </executions>
94 </plugin>
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-assembly-plugin</artifactId>
AviZi280f8012017-06-09 02:39:56 +030098 <version>${mvn.assembly.version}</version>
Michael Landof5f13c42017-02-19 12:35:04 +020099 <configuration>
100 <descriptor>assembly/swagger.xml</descriptor>
101 <finalName>${plugin.name}</finalName>
Gautam Shah09a41f52018-04-11 19:55:29 +0530102 <outputDirectory>${basedir}/target/${plugin.name}</outputDirectory>
vasraz787cfd52021-03-23 17:47:51 +0000103 <appendAssemblyId>false</appendAssemblyId>
Michael Landof5f13c42017-02-19 12:35:04 +0200104 </configuration>
105 <executions>
106 <execution>
107 <phase>package</phase>
108 <goals>
109 <goal>single</goal>
110 </goals>
111 </execution>
112 </executions>
113 </plugin>
114 </plugins>
115 </build>
116
AviZi280f8012017-06-09 02:39:56 +0300117</project>