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