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> |
ChrisC | 00acf3d | 2021-03-22 13:54:06 +0100 | [diff] [blame] | 11 | <version>1.9.0-SNAPSHOT</version> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 12 | <relativePath>../../</relativePath> |
| 13 | </parent> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 14 | |
| 15 | <properties> |
| 16 | <plugin.name>api-docs</plugin.name> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 17 | <rest.api.dir>${basedir}/../../api/openecomp-sdc-rest-webapp/onboarding-rest-war |
| 18 | </rest.api.dir> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 19 | <api.json.file>api.json</api.json.file> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 20 | </properties> |
| 21 | <build> |
| 22 | <plugins> |
| 23 | <plugin> |
| 24 | <groupId>org.apache.maven.plugins</groupId> |
| 25 | <artifactId>maven-deploy-plugin</artifactId> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 26 | <version>${mvn.deploy.version}</version> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 27 | <configuration> |
| 28 | <skip>true</skip> |
| 29 | </configuration> |
| 30 | </plugin> |
| 31 | <plugin> |
| 32 | <groupId>org.apache.maven.plugins</groupId> |
| 33 | <artifactId>maven-jar-plugin</artifactId> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 34 | <version>${mvn.jar.version}</version> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 35 | <executions> |
| 36 | <execution> |
| 37 | <id>default-jar</id> |
| 38 | <phase>none</phase> |
| 39 | </execution> |
| 40 | </executions> |
| 41 | </plugin> |
| 42 | <plugin> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 43 | <groupId>org.apache.maven.plugins</groupId> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 44 | <artifactId>maven-antrun-plugin</artifactId> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 45 | <version>${maven-antrun-plugin.version}</version> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 46 | <executions> |
| 47 | <execution> |
| 48 | <id>copy</id> |
| 49 | <phase>package</phase> |
| 50 | <configuration> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 51 | <target> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 52 | <echo message="Copy api json files"/> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 53 | <copy |
| 54 | file="${rest.api.dir}/target/generated/swagger-ui/swagger-sdce-1.json" |
| 55 | tofile="${basedir}/target/${plugin.name}/${api.json.file}"/> |
| 56 | </target> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 57 | </configuration> |
| 58 | <goals> |
| 59 | <goal>run</goal> |
| 60 | </goals> |
| 61 | </execution> |
| 62 | </executions> |
| 63 | </plugin> |
| 64 | <plugin> |
| 65 | <groupId>org.apache.maven.plugins</groupId> |
| 66 | <artifactId>maven-assembly-plugin</artifactId> |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 67 | <version>${mvn.assembly.version}</version> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 68 | <configuration> |
| 69 | <descriptor>assembly/swagger.xml</descriptor> |
| 70 | <finalName>${plugin.name}</finalName> |
Gautam Shah | 09a41f5 | 2018-04-11 19:55:29 +0530 | [diff] [blame] | 71 | <outputDirectory>${basedir}/target/${plugin.name}</outputDirectory> |
vasraz | 787cfd5 | 2021-03-23 17:47:51 +0000 | [diff] [blame] | 72 | <appendAssemblyId>false</appendAssemblyId> |
Michael Lando | f5f13c4 | 2017-02-19 12:35:04 +0200 | [diff] [blame] | 73 | </configuration> |
| 74 | <executions> |
| 75 | <execution> |
| 76 | <phase>package</phase> |
| 77 | <goals> |
| 78 | <goal>single</goal> |
| 79 | </goals> |
| 80 | </execution> |
| 81 | </executions> |
| 82 | </plugin> |
| 83 | </plugins> |
| 84 | </build> |
| 85 | |
AviZi | 280f801 | 2017-06-09 02:39:56 +0300 | [diff] [blame] | 86 | </project> |