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