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 | fb2953a | 2021-09-13 22:08:04 +0100 | [diff] [blame] | 11 | <version>1.9.1-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> |
| 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> |
vasraz | a86a4ce | 2021-06-11 19:02:58 +0100 | [diff] [blame] | 37 | </exclusions> |
| 38 | </dependency> |
| 39 | </dependencies> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 40 | <properties> |
| 41 | <plugin.name>api-docs</plugin.name> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 42 | <rest.api.dir>${basedir}/../../api/openecomp-sdc-rest-webapp/onboarding-rest-war |
| 43 | </rest.api.dir> |
vasraz | a86a4ce | 2021-06-11 19:02:58 +0100 | [diff] [blame] | 44 | <catalog-be.api.dir>${basedir}/../../../catalog-be</catalog-be.api.dir> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 45 | </properties> |
| 46 | <build> |
| 47 | <plugins> |
| 48 | <plugin> |
| 49 | <groupId>org.apache.maven.plugins</groupId> |
| 50 | <artifactId>maven-deploy-plugin</artifactId> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 51 | <version>${mvn.deploy.version}</version> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 52 | <configuration> |
| 53 | <skip>true</skip> |
| 54 | </configuration> |
| 55 | </plugin> |
| 56 | <plugin> |
| 57 | <groupId>org.apache.maven.plugins</groupId> |
| 58 | <artifactId>maven-jar-plugin</artifactId> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 59 | <version>${mvn.jar.version}</version> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 60 | <executions> |
| 61 | <execution> |
| 62 | <id>default-jar</id> |
| 63 | <phase>none</phase> |
| 64 | </execution> |
| 65 | </executions> |
| 66 | </plugin> |
| 67 | <plugin> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 68 | <groupId>org.apache.maven.plugins</groupId> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 69 | <artifactId>maven-antrun-plugin</artifactId> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 70 | <version>${maven-antrun-plugin.version}</version> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 71 | <executions> |
| 72 | <execution> |
| 73 | <id>copy</id> |
| 74 | <phase>package</phase> |
| 75 | <configuration> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 76 | <target> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 77 | <echo message="Copy api json files"/> |
vasraz | a86a4ce | 2021-06-11 19:02:58 +0100 | [diff] [blame] | 78 | <copy todir="${basedir}/target/${plugin.name}/"> |
| 79 | <fileset dir="${rest.api.dir}/target/generated/swagger-ui/"> |
| 80 | <include name="*.json"/> |
| 81 | </fileset> |
| 82 | </copy> |
| 83 | <copy todir="${basedir}/target/${plugin.name}/"> |
| 84 | <fileset dir="${catalog-be.api.dir}/target/generated/swagger/"> |
| 85 | <include name="*.json"/> |
| 86 | </fileset> |
| 87 | </copy> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 88 | </target> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 89 | </configuration> |
| 90 | <goals> |
| 91 | <goal>run</goal> |
| 92 | </goals> |
| 93 | </execution> |
| 94 | </executions> |
| 95 | </plugin> |
| 96 | <plugin> |
| 97 | <groupId>org.apache.maven.plugins</groupId> |
| 98 | <artifactId>maven-assembly-plugin</artifactId> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 99 | <version>${mvn.assembly.version}</version> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 100 | <configuration> |
| 101 | <descriptor>assembly/swagger.xml</descriptor> |
| 102 | <finalName>${plugin.name}</finalName> |
Gautam Shah | 09a41f5 | 2018-04-11 19:55:29 +0530 | [diff] [blame] | 103 | <outputDirectory>${basedir}/target/${plugin.name}</outputDirectory> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 104 | <appendAssemblyId>false</appendAssemblyId> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 105 | </configuration> |
| 106 | <executions> |
| 107 | <execution> |
| 108 | <phase>package</phase> |
| 109 | <goals> |
| 110 | <goal>single</goal> |
| 111 | </goals> |
| 112 | </execution> |
| 113 | </executions> |
| 114 | </plugin> |
| 115 | </plugins> |
| 116 | </build> |
| 117 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 118 | </project> |