Release ccsdk/sli/adaptors
[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     <parent>
29         <groupId>org.onap.ccsdk.parent</groupId>
30         <artifactId>odlparent-lite</artifactId>
31         <version>1.5.6</version>
32         <relativePath/>
33     </parent>
34     <groupId>org.onap.ccsdk.sli.adaptors</groupId>
35     <artifactId>ansible-adapter-installer</artifactId>
36     <version>0.7.3</version>
37     <name>ccsdk-sli-adaptors :: ansible-adapter :: ${project.artifactId}</name>
38     <packaging>pom</packaging>
39     <properties>
40         <application.name>ccsdk-ansible-adapter</application.name>
41         <features.boot>${application.name}</features.boot>
42         <features.repositories>mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features</features.repositories>
43         <include.transitive.dependencies>false</include.transitive.dependencies>
44     </properties>
45     <dependencies>
46
47         <dependency>
48             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
49             <artifactId>ansible-adapter-bundle</artifactId>
50             <version>${project.version}</version>
51         </dependency>
52
53
54     </dependencies>
55     <build>
56         <plugins>
57             <plugin>
58                 <artifactId>maven-assembly-plugin</artifactId>
59                 <executions>
60                     <execution>
61                         <id>maven-repo-zip</id>
62                         <goals>
63                             <goal>single</goal>
64                         </goals>
65                         <phase>package</phase>
66                         <configuration>
67                                 <appendAssemblyId>true</appendAssemblyId>
68                             <attach>true</attach>
69                             <finalName>stage/${application.name}-${project.version}</finalName>
70                             <descriptors>
71                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
72                             </descriptors>
73                         </configuration>
74                     </execution>
75                     <execution>
76                         <id>installer-zip</id>
77                         <goals>
78                             <goal>single</goal>
79                         </goals>
80                         <phase>package</phase>
81                         <configuration>
82                                 <appendAssemblyId>false</appendAssemblyId>
83                             <attach>true</attach>
84                             <finalName>${application.name}-${project.version}</finalName>
85                             <descriptors>
86                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
87                             </descriptors>
88                         </configuration>
89                     </execution>
90                 </executions>
91             </plugin>
92             <plugin>
93                 <groupId>org.apache.maven.plugins</groupId>
94                 <artifactId>maven-dependency-plugin</artifactId>
95                 <executions>
96                     <execution>
97                         <id>copy-dependencies</id>
98                         <goals>
99                             <goal>copy-dependencies</goal>
100                         </goals>
101                         <phase>prepare-package</phase>
102                         <configuration>
103                             <transitive>false</transitive>
104                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
105                             <overWriteReleases>false</overWriteReleases>
106                             <overWriteSnapshots>true</overWriteSnapshots>
107                             <overWriteIfNewer>true</overWriteIfNewer>
108                             <useRepositoryLayout>true</useRepositoryLayout>
109                             <addParentPoms>false</addParentPoms>
110                             <copyPom>false</copyPom>
111                             <includeGroupIds>org.onap.ccsdk.sli.adaptors</includeGroupIds>
112
113                             <scope>provided</scope>
114                         </configuration>
115                     </execution>
116                 </executions>
117             </plugin>
118             <plugin>
119                 <artifactId>maven-resources-plugin</artifactId>
120                 <executions>
121                     <execution>
122                         <id>copy-version</id>
123                         <goals>
124                             <goal>copy-resources</goal>
125                         </goals>
126                         <!-- here the phase you need -->
127                         <phase>validate</phase>
128                         <configuration>
129                             <outputDirectory>${basedir}/target/stage</outputDirectory>
130                             <resources>
131                                 <resource>
132                                     <directory>src/main/resources/scripts</directory>
133                                     <includes>
134                                         <include>install-feature.sh</include>
135                                     </includes>
136                                     <filtering>true</filtering>
137                                 </resource>
138                             </resources>
139                         </configuration>
140                     </execution>
141                 </executions>
142             </plugin>
143         </plugins>
144     </build>
145 </project>