blob: 2fbdcafb24b49c1a260ea268f36c93c806b4c7a3 [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>
MichaelMorris38812c32023-06-02 10:04:31 +010011 <version>1.13.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>
vasrazfc768c62022-10-14 10:51:11 +010030 <groupId>org.eclipse.jetty</groupId>
31 <artifactId>jetty-server</artifactId>
32 </exclusion>
33 <exclusion>
34 <groupId>org.eclipse.jetty</groupId>
35 <artifactId>jetty-servlet</artifactId>
36 </exclusion>
37 <exclusion>
vasraz7edf3d32021-08-18 13:54:08 +010038 <groupId>org.springframework</groupId>
39 <artifactId>spring-core</artifactId>
40 </exclusion>
41 <exclusion>
42 <groupId>org.springframework</groupId>
43 <artifactId>spring-web</artifactId>
44 </exclusion>
vasraze4055452022-07-13 23:11:18 +010045 <exclusion>
46 <groupId>org.functionaljava</groupId>
47 <artifactId>functionaljava</artifactId>
48 </exclusion>
vasraza86a4ce2021-06-11 19:02:58 +010049 </exclusions>
50 </dependency>
51 </dependencies>
Michael Landof5f13c42017-02-19 12:35:04 +020052 <properties>
53 <plugin.name>api-docs</plugin.name>
vasraz787cfd52021-03-23 17:47:51 +000054 <rest.api.dir>${basedir}/../../api/openecomp-sdc-rest-webapp/onboarding-rest-war
55 </rest.api.dir>
vasraza86a4ce2021-06-11 19:02:58 +010056 <catalog-be.api.dir>${basedir}/../../../catalog-be</catalog-be.api.dir>
Michael Landof5f13c42017-02-19 12:35:04 +020057 </properties>
58 <build>
59 <plugins>
60 <plugin>
61 <groupId>org.apache.maven.plugins</groupId>
62 <artifactId>maven-deploy-plugin</artifactId>
AviZi280f8012017-06-09 02:39:56 +030063 <version>${mvn.deploy.version}</version>
Michael Landof5f13c42017-02-19 12:35:04 +020064 <configuration>
65 <skip>true</skip>
66 </configuration>
67 </plugin>
68 <plugin>
69 <groupId>org.apache.maven.plugins</groupId>
70 <artifactId>maven-jar-plugin</artifactId>
Michael Landof5f13c42017-02-19 12:35:04 +020071 <executions>
72 <execution>
73 <id>default-jar</id>
74 <phase>none</phase>
75 </execution>
76 </executions>
77 </plugin>
78 <plugin>
vasraz787cfd52021-03-23 17:47:51 +000079 <groupId>org.apache.maven.plugins</groupId>
Michael Landof5f13c42017-02-19 12:35:04 +020080 <artifactId>maven-antrun-plugin</artifactId>
vasraz787cfd52021-03-23 17:47:51 +000081 <version>${maven-antrun-plugin.version}</version>
Michael Landof5f13c42017-02-19 12:35:04 +020082 <executions>
83 <execution>
84 <id>copy</id>
85 <phase>package</phase>
86 <configuration>
vasraz787cfd52021-03-23 17:47:51 +000087 <target>
Michael Landof5f13c42017-02-19 12:35:04 +020088 <echo message="Copy api json files"/>
vasraza86a4ce2021-06-11 19:02:58 +010089 <copy todir="${basedir}/target/${plugin.name}/">
90 <fileset dir="${rest.api.dir}/target/generated/swagger-ui/">
91 <include name="*.json"/>
Fiete Ostkamp81378322022-12-13 21:05:47 +000092 <include name="*.yaml"/>
vasraza86a4ce2021-06-11 19:02:58 +010093 </fileset>
94 </copy>
95 <copy todir="${basedir}/target/${plugin.name}/">
Fiete Ostkamp81378322022-12-13 21:05:47 +000096 <fileset dir="${catalog-be.api.dir}/target/generated/openapi/">
vasraza86a4ce2021-06-11 19:02:58 +010097 <include name="*.json"/>
Fiete Ostkamp81378322022-12-13 21:05:47 +000098 <include name="*.yaml"/>
vasraza86a4ce2021-06-11 19:02:58 +010099 </fileset>
100 </copy>
vasraz787cfd52021-03-23 17:47:51 +0000101 </target>
Michael Landof5f13c42017-02-19 12:35:04 +0200102 </configuration>
103 <goals>
104 <goal>run</goal>
105 </goals>
106 </execution>
107 </executions>
108 </plugin>
109 <plugin>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-assembly-plugin</artifactId>
vasrazdffdf562023-05-18 16:13:52 +0100112 <version>2.6</version>
Michael Landof5f13c42017-02-19 12:35:04 +0200113 <configuration>
114 <descriptor>assembly/swagger.xml</descriptor>
115 <finalName>${plugin.name}</finalName>
Gautam Shah09a41f52018-04-11 19:55:29 +0530116 <outputDirectory>${basedir}/target/${plugin.name}</outputDirectory>
vasraz787cfd52021-03-23 17:47:51 +0000117 <appendAssemblyId>false</appendAssemblyId>
Michael Landof5f13c42017-02-19 12:35:04 +0200118 </configuration>
119 <executions>
120 <execution>
121 <phase>package</phase>
122 <goals>
123 <goal>single</goal>
124 </goals>
125 </execution>
126 </executions>
127 </plugin>
128 </plugins>
129 </build>
130
AviZi280f8012017-06-09 02:39:56 +0300131</project>