df67cd888d6deeac11ca973df696f39a2a864ea8
[ccsdk/features.git] / sdnr / wt / readthedocs / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4
5     <parent>
6         <groupId>org.onap.ccsdk.parent</groupId>
7         <artifactId>odlparent-lite</artifactId>
8         <version>1.5.1</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
13     <artifactId>sdnr-wt-readthedocs-installer</artifactId>
14     <version>0.7.0-SNAPSHOT</version>
15     <packaging>pom</packaging>
16
17     <name>ccsdk-features :: ${project.artifactId}</name>
18
19     <properties>
20         <application.name>sdnr-wt-apigateway</application.name>
21         <include.transitive.dependencies>false</include.transitive.dependencies>
22     </properties>
23
24     <build>
25         <plugins>
26             <plugin>
27                 <artifactId>exec-maven-plugin</artifactId>
28                 <groupId>org.codehaus.mojo</groupId>
29                 <executions>
30                     <execution><!-- Run our version calculation script -->
31                         <id>generate readthedocs files from helpserver markdowns</id>
32                         <phase>generate-resources</phase>
33                         <goals>
34                             <goal>exec</goal>
35                         </goals>
36                         <configuration>
37                             <executable>convert.sh</executable>
38                         </configuration>
39                     </execution>
40                 </executions>
41             </plugin>
42             <plugin>
43                 <artifactId>maven-assembly-plugin</artifactId>
44                 <executions>
45                     <execution>
46                         <id>maven-repo-zip</id>
47                         <goals>
48                             <goal>single</goal>
49                         </goals>
50                         <phase>package</phase>
51                         <configuration>
52                             <attach>true</attach>
53                             <finalName>stage/${application.name}-${project.version}</finalName>
54                             <descriptors>
55                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
56                             </descriptors>
57                             <appendAssemblyId>true</appendAssemblyId>
58                         </configuration>
59                     </execution>
60                 </executions>
61             </plugin>
62             <plugin>
63                 <artifactId>maven-resources-plugin</artifactId>
64                 <version>3.1.0</version>
65                 <executions>
66                     <execution>
67                         <id>copy-resources</id>
68                         <!-- here the phase you need -->
69                         <!-- <phase>validate</phase> -->
70                         <phase>prepare-package</phase>
71                         <goals>
72                             <goal>copy-resources</goal>
73                         </goals>
74                         <configuration>
75                             <outputDirectory>${project.build.directory}/assembly/docs/</outputDirectory>
76                             <resources>
77                                 <resource>
78                                     <directory>../../../docs/</directory>
79                                     <filtering>true</filtering>
80                                 </resource>
81                             </resources>
82                         </configuration>
83                     </execution>
84                 </executions>
85             </plugin>
86         </plugins>
87     </build>
88 </project>