46b478a3dbecbd3fdc50a112ff0ff0deec9a7216
[ccsdk/sli/adaptors.git] / ansible-adapter / ansible-adapter-installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP : APPC
5   ================================================================================
6   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7   ================================================================================
8   Copyright (C) 2017 Amdocs
9   =============================================================================
10   Licensed under the Apache License, Version 2.0 (the "License");
11   you may not use this file except in compliance with the License.
12   You may obtain a copy of the License at
13
14        http://www.apache.org/licenses/LICENSE-2.0
15
16   Unless required by applicable law or agreed to in writing, software
17   distributed under the License is distributed on an "AS IS" BASIS,
18   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   See the License for the specific language governing permissions and
20   limitations under the License.
21
22   ECOMP is a trademark and service mark of AT&T Intellectual Property.
23   ============LICENSE_END=========================================================
24   -->
25
26 <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">
27     <modelVersion>4.0.0</modelVersion>
28
29     <parent>
30         <groupId>org.onap.ccsdk.parent</groupId>
31         <artifactId>odlparent-lite</artifactId>
32         <version>2.1.0-SNAPSHOT</version>
33         <relativePath/>
34     </parent>
35
36     <groupId>org.onap.ccsdk.sli.adaptors</groupId>
37     <artifactId>ansible-adapter-installer</artifactId>
38     <version>1.1.0-SNAPSHOT</version>
39     <packaging>pom</packaging>
40
41     <name>ccsdk-sli-adaptors :: ansible-adapter :: ${project.artifactId}</name>
42
43     <properties>
44         <application.name>ccsdk-ansible-adapter</application.name>
45         <features.boot>${application.name}</features.boot>
46         <features.repositories>mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features</features.repositories>
47         <include.transitive.dependencies>false</include.transitive.dependencies>
48     </properties>
49
50     <dependencies>
51
52         <dependency>
53             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
54             <artifactId>ansible-adapter-bundle</artifactId>
55             <version>${project.version}</version>
56         </dependency>
57
58
59     </dependencies>
60
61     <build>
62         <plugins>
63             <plugin>
64                 <artifactId>maven-assembly-plugin</artifactId>
65                 <executions>
66                     <execution>
67                         <id>maven-repo-zip</id>
68                         <goals>
69                             <goal>single</goal>
70                         </goals>
71                         <phase>package</phase>
72                         <configuration>
73                                 <appendAssemblyId>true</appendAssemblyId>
74                             <attach>true</attach>
75                             <finalName>stage/${application.name}-${project.version}</finalName>
76                             <descriptors>
77                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
78                             </descriptors>
79                         </configuration>
80                     </execution>
81                     <execution>
82                         <id>installer-zip</id>
83                         <goals>
84                             <goal>single</goal>
85                         </goals>
86                         <phase>package</phase>
87                         <configuration>
88                                 <appendAssemblyId>false</appendAssemblyId>
89                             <attach>true</attach>
90                             <finalName>${application.name}-${project.version}</finalName>
91                             <descriptors>
92                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
93                             </descriptors>
94                         </configuration>
95                     </execution>
96                 </executions>
97             </plugin>
98             <plugin>
99                 <groupId>org.apache.maven.plugins</groupId>
100                 <artifactId>maven-dependency-plugin</artifactId>
101                 <executions>
102                     <execution>
103                         <id>copy-dependencies</id>
104                         <goals>
105                             <goal>copy-dependencies</goal>
106                         </goals>
107                         <phase>prepare-package</phase>
108                         <configuration>
109                             <transitive>false</transitive>
110                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
111                             <overWriteReleases>false</overWriteReleases>
112                             <overWriteSnapshots>true</overWriteSnapshots>
113                             <overWriteIfNewer>true</overWriteIfNewer>
114                             <useRepositoryLayout>true</useRepositoryLayout>
115                             <addParentPoms>false</addParentPoms>
116                             <copyPom>false</copyPom>
117                             <includeGroupIds>org.onap.ccsdk.sli.adaptors</includeGroupIds>
118
119                             <scope>provided</scope>
120                         </configuration>
121                     </execution>
122                 </executions>
123             </plugin>
124             <plugin>
125                 <artifactId>maven-resources-plugin</artifactId>
126                 <executions>
127                     <execution>
128                         <id>copy-version</id>
129                         <goals>
130                             <goal>copy-resources</goal>
131                         </goals>
132                         <!-- here the phase you need -->
133                         <phase>validate</phase>
134                         <configuration>
135                             <outputDirectory>${basedir}/target/stage</outputDirectory>
136                             <resources>
137                                 <resource>
138                                     <directory>src/main/resources/scripts</directory>
139                                     <includes>
140                                         <include>install-feature.sh</include>
141                                     </includes>
142                                     <filtering>true</filtering>
143                                 </resource>
144                             </resources>
145                         </configuration>
146                     </execution>
147                 </executions>
148             </plugin>
149         </plugins>
150     </build>
151 </project>