blob: 5ab14588921d6a233ae12f64a1c8d1fbf79d11ff [file] [log] [blame]
sheetalmed128902018-03-13 19:32:08 +05301<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>
sheetalm894285b2018-04-12 13:20:36 +053011 <groupId>org.onap.sdc.activityspec</groupId>
sheetalmed128902018-03-13 19:32:08 +053012 <artifactId>activity-spec</artifactId>
Michael Landod8a0dea2018-06-02 19:23:27 +030013 <version>1.3.0-SNAPSHOT</version>
sheetalmed128902018-03-13 19:32:08 +053014 <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>
Michael Landodc856bb2018-08-13 13:27:52 +030027 <groupId>org.apache.maven.plugins</groupId>
sheetalmed128902018-03-13 19:32:08 +053028 <artifactId>maven-antrun-plugin</artifactId>
29 <executions>
30 <execution>
31 <id>copy</id>
32 <phase>package</phase>
33 <configuration>
34 <tasks>
35 <echo message="Copy api json files"/>
36 <echo message="${generated.swagger.dir}"/>
37 <copy file="${generated.swagger.dir}/swagger-ui/swagger.json"
38 tofile="${project.build.directory}/${api.json.file}"/>
39 <copy file="${generated.swagger.dir}/${api.html.file}"
40 tofile="${project.build.directory}/${api.html.file}"/>
41 </tasks>
42 </configuration>
43 <goals>
44 <goal>run</goal>
45 </goals>
46 </execution>
47 </executions>
48 </plugin>
49 <plugin>
50 <groupId>org.apache.maven.plugins</groupId>
51 <artifactId>maven-assembly-plugin</artifactId>
52 <version>${mvn.assembly.version}</version>
53 <configuration>
54 <descriptor>assembly/swagger.xml</descriptor>
55 <finalName>${output.name}-${project.version}</finalName>
56 <outputDirectory>${project.build.directory}</outputDirectory>
57 <appendAssemblyId>false</appendAssemblyId>
58 </configuration>
59 <executions>
60 <execution>
61 <phase>package</phase>
62 <goals>
63 <goal>single</goal>
64 </goals>
65 </execution>
66 </executions>
67 </plugin>
68 </plugins>
69 </build>
70
71</project>