sheetalm | ed12890 | 2018-03-13 19:32:08 +0530 | [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 | |
| 5 | <modelVersion>4.0.0</modelVersion> |
| 6 | |
| 7 | <artifactId>activity-spec-api-docs</artifactId> |
| 8 | <packaging>pom</packaging> |
| 9 | |
| 10 | <parent> |
sheetalm | 894285b | 2018-04-12 13:20:36 +0530 | [diff] [blame] | 11 | <groupId>org.onap.sdc.activityspec</groupId> |
sheetalm | ed12890 | 2018-03-13 19:32:08 +0530 | [diff] [blame] | 12 | <artifactId>activity-spec</artifactId> |
Michael Lando | 17873c4 | 2018-05-27 09:07:08 +0300 | [diff] [blame] | 13 | <version>1.2.0-SNAPSHOT</version> |
sheetalm | ed12890 | 2018-03-13 19:32:08 +0530 | [diff] [blame] | 14 | <relativePath>../..</relativePath> |
| 15 | </parent> |
| 16 | |
| 17 | <properties> |
| 18 | <output.name>activity-spec-api-docs</output.name> |
| 19 | <generated.swagger.dir>${project.basedir}/../activity-spec-war/target/generated</generated.swagger.dir> |
| 20 | <api.json.file>api.json</api.json.file> |
| 21 | <api.html.file>api.html</api.html.file> |
| 22 | </properties> |
| 23 | |
| 24 | <build> |
| 25 | <plugins> |
| 26 | <plugin> |
| 27 | <artifactId>maven-antrun-plugin</artifactId> |
| 28 | <executions> |
| 29 | <execution> |
| 30 | <id>copy</id> |
| 31 | <phase>package</phase> |
| 32 | <configuration> |
| 33 | <tasks> |
| 34 | <echo message="Copy api json files"/> |
| 35 | <echo message="${generated.swagger.dir}"/> |
| 36 | <copy file="${generated.swagger.dir}/swagger-ui/swagger.json" |
| 37 | tofile="${project.build.directory}/${api.json.file}"/> |
| 38 | <copy file="${generated.swagger.dir}/${api.html.file}" |
| 39 | tofile="${project.build.directory}/${api.html.file}"/> |
| 40 | </tasks> |
| 41 | </configuration> |
| 42 | <goals> |
| 43 | <goal>run</goal> |
| 44 | </goals> |
| 45 | </execution> |
| 46 | </executions> |
| 47 | </plugin> |
| 48 | <plugin> |
| 49 | <groupId>org.apache.maven.plugins</groupId> |
| 50 | <artifactId>maven-assembly-plugin</artifactId> |
| 51 | <version>${mvn.assembly.version}</version> |
| 52 | <configuration> |
| 53 | <descriptor>assembly/swagger.xml</descriptor> |
| 54 | <finalName>${output.name}-${project.version}</finalName> |
| 55 | <outputDirectory>${project.build.directory}</outputDirectory> |
| 56 | <appendAssemblyId>false</appendAssemblyId> |
| 57 | </configuration> |
| 58 | <executions> |
| 59 | <execution> |
| 60 | <phase>package</phase> |
| 61 | <goals> |
| 62 | <goal>single</goal> |
| 63 | </goals> |
| 64 | </execution> |
| 65 | </executions> |
| 66 | </plugin> |
| 67 | </plugins> |
| 68 | </build> |
| 69 | |
| 70 | </project> |