c123c2ad0d12c4cf5ffa18115fca04dd9090a20a
[ccsdk/features.git] / sdnr / wt / readthedocs / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ============LICENSE_START=======================================================
4   ~ ONAP : ccsdk features
5   ~ ================================================================================
6   ~ Copyright (C) 2020 AT&T Intellectual Property. All rights reserved.
7   ~ ================================================================================
8   ~ Licensed under the Apache License, Version 2.0 (the "License");
9   ~ you may not use this file except in compliance with the License.
10   ~ You may obtain a copy of the License at
11   ~
12   ~     http://www.apache.org/licenses/LICENSE-2.0
13   ~
14   ~ Unless required by applicable law or agreed to in writing, software
15   ~ distributed under the License is distributed on an "AS IS" BASIS,
16   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   ~ See the License for the specific language governing permissions and
18   ~ limitations under the License.
19   ~ ============LICENSE_END=======================================================
20   ~
21   -->
22 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24
25     <parent>
26         <groupId>org.onap.ccsdk.parent</groupId>
27         <artifactId>odlparent-lite</artifactId>
28         <version>2.5.1</version>
29         <relativePath/>
30     </parent>
31
32     <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
33     <artifactId>sdnr-wt-readthedocs-installer</artifactId>
34     <version>1.4.0-SNAPSHOT</version>
35     <packaging>pom</packaging>
36
37     <name>ccsdk-features :: ${project.artifactId}</name>
38
39     <properties>
40         <application.name>sdnr-wt-readthedocs-installer</application.name>
41         <include.transitive.dependencies>false</include.transitive.dependencies>
42     </properties>
43
44     <build>
45         <plugins>
46             <plugin>
47                 <artifactId>exec-maven-plugin</artifactId>
48                 <groupId>org.codehaus.mojo</groupId>
49                 <executions>
50                     <execution><!-- Run our version calculation script -->
51                         <id>generate readthedocs files from helpserver markdowns</id>
52                         <phase>generate-resources</phase>
53                         <goals>
54                             <goal>exec</goal>
55                         </goals>
56                         <configuration>
57                             <executable>convert.sh</executable>
58                         </configuration>
59                     </execution>
60                 </executions>
61             </plugin>
62             <plugin>
63                 <artifactId>maven-assembly-plugin</artifactId>
64                 <executions>
65                     <execution>
66                         <id>maven-repo-zip</id>
67                         <goals>
68                             <goal>single</goal>
69                         </goals>
70                         <phase>package</phase>
71                         <configuration>
72                             <attach>true</attach>
73                             <finalName>stage/${application.name}-${project.version}</finalName>
74                             <descriptors>
75                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
76                             </descriptors>
77                             <appendAssemblyId>true</appendAssemblyId>
78                         </configuration>
79                     </execution>
80                 </executions>
81             </plugin>
82             <plugin>
83                 <artifactId>maven-resources-plugin</artifactId>
84                 <version>3.1.0</version>
85                 <executions>
86                     <execution>
87                         <id>copy-resources</id>
88                         <!-- here the phase you need -->
89                         <!-- <phase>validate</phase> -->
90                         <phase>prepare-package</phase>
91                         <goals>
92                             <goal>copy-resources</goal>
93                         </goals>
94                         <configuration>
95                             <outputDirectory>${project.build.directory}/assembly/docs/</outputDirectory>
96                             <resources>
97                                 <resource>
98                                     <directory>../../../docs/</directory>
99                                     <filtering>true</filtering>
100                                 </resource>
101                             </resources>
102                         </configuration>
103                     </execution>
104                 </executions>
105             </plugin>
106         </plugins>
107     </build>
108 </project>