Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 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"> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 4 | <modelVersion>4.0.0</modelVersion> |
| 5 | <artifactId>api-docs</artifactId> |
| 6 | <groupId>org.openecomp.sdc.onboarding</groupId> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 7 | |
| 8 | <parent> |
| 9 | <groupId>org.openecomp.sdc</groupId> |
| 10 | <artifactId>openecomp-sdc</artifactId> |
MichaelMorris | 38812c3 | 2023-06-02 10:04:31 +0100 | [diff] [blame^] | 11 | <version>1.13.0-SNAPSHOT</version> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 12 | <relativePath>../../</relativePath> |
| 13 | </parent> |
vasraz | a86a4ce | 2021-06-11 19:02:58 +0100 | [diff] [blame] | 14 | <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> |
vasraz | 7edf3d3 | 2021-08-18 13:54:08 +0100 | [diff] [blame] | 29 | <exclusion> |
vasraz | fc768c6 | 2022-10-14 10:51:11 +0100 | [diff] [blame] | 30 | <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> |
vasraz | 7edf3d3 | 2021-08-18 13:54:08 +0100 | [diff] [blame] | 38 | <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> |
vasraz | e405545 | 2022-07-13 23:11:18 +0100 | [diff] [blame] | 45 | <exclusion> |
| 46 | <groupId>org.functionaljava</groupId> |
| 47 | <artifactId>functionaljava</artifactId> |
| 48 | </exclusion> |
vasraz | a86a4ce | 2021-06-11 19:02:58 +0100 | [diff] [blame] | 49 | </exclusions> |
| 50 | </dependency> |
| 51 | </dependencies> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 52 | <properties> |
| 53 | <plugin.name>api-docs</plugin.name> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 54 | <rest.api.dir>${basedir}/../../api/openecomp-sdc-rest-webapp/onboarding-rest-war |
| 55 | </rest.api.dir> |
vasraz | a86a4ce | 2021-06-11 19:02:58 +0100 | [diff] [blame] | 56 | <catalog-be.api.dir>${basedir}/../../../catalog-be</catalog-be.api.dir> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 57 | </properties> |
| 58 | <build> |
| 59 | <plugins> |
| 60 | <plugin> |
| 61 | <groupId>org.apache.maven.plugins</groupId> |
| 62 | <artifactId>maven-deploy-plugin</artifactId> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 63 | <version>${mvn.deploy.version}</version> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 64 | <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 Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 71 | <executions> |
| 72 | <execution> |
| 73 | <id>default-jar</id> |
| 74 | <phase>none</phase> |
| 75 | </execution> |
| 76 | </executions> |
| 77 | </plugin> |
| 78 | <plugin> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 79 | <groupId>org.apache.maven.plugins</groupId> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 80 | <artifactId>maven-antrun-plugin</artifactId> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 81 | <version>${maven-antrun-plugin.version}</version> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 82 | <executions> |
| 83 | <execution> |
| 84 | <id>copy</id> |
| 85 | <phase>package</phase> |
| 86 | <configuration> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 87 | <target> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 88 | <echo message="Copy api json files"/> |
vasraz | a86a4ce | 2021-06-11 19:02:58 +0100 | [diff] [blame] | 89 | <copy todir="${basedir}/target/${plugin.name}/"> |
| 90 | <fileset dir="${rest.api.dir}/target/generated/swagger-ui/"> |
| 91 | <include name="*.json"/> |
Fiete Ostkamp | 8137832 | 2022-12-13 21:05:47 +0000 | [diff] [blame] | 92 | <include name="*.yaml"/> |
vasraz | a86a4ce | 2021-06-11 19:02:58 +0100 | [diff] [blame] | 93 | </fileset> |
| 94 | </copy> |
| 95 | <copy todir="${basedir}/target/${plugin.name}/"> |
Fiete Ostkamp | 8137832 | 2022-12-13 21:05:47 +0000 | [diff] [blame] | 96 | <fileset dir="${catalog-be.api.dir}/target/generated/openapi/"> |
vasraz | a86a4ce | 2021-06-11 19:02:58 +0100 | [diff] [blame] | 97 | <include name="*.json"/> |
Fiete Ostkamp | 8137832 | 2022-12-13 21:05:47 +0000 | [diff] [blame] | 98 | <include name="*.yaml"/> |
vasraz | a86a4ce | 2021-06-11 19:02:58 +0100 | [diff] [blame] | 99 | </fileset> |
| 100 | </copy> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 101 | </target> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 102 | </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> |
vasraz | dffdf56 | 2023-05-18 16:13:52 +0100 | [diff] [blame] | 112 | <version>2.6</version> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 113 | <configuration> |
| 114 | <descriptor>assembly/swagger.xml</descriptor> |
| 115 | <finalName>${plugin.name}</finalName> |
Gautam Shah | 09a41f5 | 2018-04-11 19:55:29 +0530 | [diff] [blame] | 116 | <outputDirectory>${basedir}/target/${plugin.name}</outputDirectory> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 117 | <appendAssemblyId>false</appendAssemblyId> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 118 | </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 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 131 | </project> |