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