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> |
| 11 | <groupId>org.openecomp.activityspec</groupId> |
| 12 | <artifactId>activity-spec</artifactId> |
| 13 | <version>1.2.0-SNAPSHOT</version> |
| 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> |