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