blob: 29ccc06cadfe7696f0c053994d5e60bdcbb4763e [file] [log] [blame]
Ashwin Sridharan0414b3e2017-06-14 23:11:25 -04001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
Patrick Brady10bba352017-07-19 12:09:28 -07004 ONAP : APPC
Ashwin Sridharan0414b3e2017-06-14 23:11:25 -04005 ================================================================================
6 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
Ashwin Sridharan0414b3e2017-06-14 23:11:25 -04007 ================================================================================
Patrick Brady10bba352017-07-19 12:09:28 -07008 Copyright (C) 2017 Amdocs
9 =============================================================================
Ashwin Sridharan0414b3e2017-06-14 23:11:25 -040010 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.
Patrick Brady10bba352017-07-19 12:09:28 -070021
Ashwin Sridharan0414b3e2017-06-14 23:11:25 -040022 ECOMP is a trademark and service mark of AT&T Intellectual Property.
Patrick Brady10bba352017-07-19 12:09:28 -070023 ============LICENSE_END=========================================================
Ashwin Sridharan0414b3e2017-06-14 23:11:25 -040024 -->
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 <artifactId>appc-ansible-adapter</artifactId>
29 <groupId>org.openecomp.appc</groupId>
Jessica Wagantall65367992017-11-16 17:22:13 -080030 <version>1.3.0-SNAPSHOT</version>
Ashwin Sridharan0414b3e2017-06-14 23:11:25 -040031 </parent>
32 <artifactId>appc-ansible-adapter-installer</artifactId>
33 <name>Ansible Adapter - Karaf Installer</name>
34 <packaging>pom</packaging>
35 <properties>
36 <application.name>appc-ansible-adapter</application.name>
37 <features.boot>appc-ansible-adapter</features.boot>
38 <features.repositories>mvn:org.openecomp.appc/appc-ansible-adapter-features/${project.version}/xml/features</features.repositories>
39 <include.transitive.dependencies>false</include.transitive.dependencies>
40 </properties>
41 <dependencies>
42 <dependency>
43 <groupId>org.openecomp.appc</groupId>
44 <artifactId>appc-ansible-adapter-features</artifactId>
45 <classifier>features</classifier>
46 <type>xml</type>
47 <exclusions>
48 <exclusion>
49 <groupId>*</groupId>
50 <artifactId>*</artifactId>
51 </exclusion>
52 </exclusions>
53 </dependency>
54 <dependency>
55 <groupId>org.openecomp.appc</groupId>
56 <artifactId>appc-ansible-adapter-bundle</artifactId>
57 <version>${project.version}</version>
58 </dependency>
59 </dependencies>
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>false</appendAssemblyId>
73 <attach>false</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 <excludeGroupIds>org.opendaylight</excludeGroupIds>
117 <scope>provided</scope>
118 </configuration>
119 </execution>
120 </executions>
121 </plugin>
122 <plugin>
123 <artifactId>maven-resources-plugin</artifactId>
124 <executions>
125 <execution>
126 <id>copy-version</id>
127 <goals>
128 <goal>copy-resources</goal>
129 </goals>
130 <!-- here the phase you need -->
131 <phase>validate</phase>
132 <configuration>
133 <outputDirectory>${basedir}/target/stage</outputDirectory>
134 <resources>
135 <resource>
136 <directory>src/main/resources/scripts</directory>
137 <includes>
138 <include>install-feature.sh</include>
139 </includes>
140 <filtering>true</filtering>
141 </resource>
142 </resources>
143 </configuration>
144 </execution>
145 </executions>
146 </plugin>
147 </plugins>
148 </build>
149</project>