blob: 9d62bc83e89d77c542f1d449c89dec8dafbb9d0b [file] [log] [blame]
Skip Wonnell86011b92017-08-15 17:05:27 -05001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
Skip Wonnell8c4b89b2018-01-12 09:24:03 -06004 ONAP : APPC
Skip Wonnell86011b92017-08-15 17:05:27 -05005 ================================================================================
John McClungcd5f4f62018-06-13 14:03:54 -04006 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
Skip Wonnell86011b92017-08-15 17:05:27 -05007 Copyright (C) 2017 Amdocs
8 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
12
13 http://www.apache.org/licenses/LICENSE-2.0
14
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END=========================================================
Skip Wonnell86011b92017-08-15 17:05:27 -050021 -->
22<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">
23 <modelVersion>4.0.0</modelVersion>
24 <parent>
Patrick Brady07567592017-12-13 11:09:30 -080025 <groupId>org.onap.appc</groupId>
Skip Wonnell86011b92017-08-15 17:05:27 -050026 <artifactId>appc-config-data-services</artifactId>
Patrick Brady84d0a252018-05-22 10:42:55 -070027 <version>1.4.0-SNAPSHOT</version>
Skip Wonnell86011b92017-08-15 17:05:27 -050028 </parent>
29
30 <artifactId>appc-config-data-services-installer</artifactId>
31 <name>Config Component Data Services - Installer</name>
32 <packaging>pom</packaging>
33 <properties>
34 <application.name>appc-config-data-services</application.name>
35 <features.boot>appc-config-data-services</features.boot>
Patrick Brady07567592017-12-13 11:09:30 -080036 <features.repositories>mvn:org.onap.appc/appc-config-data-services-features/${project.version}/xml/features</features.repositories>
Skip Wonnell86011b92017-08-15 17:05:27 -050037 <include.transitive.dependencies>false</include.transitive.dependencies>
38 </properties>
39 <dependencies>
40 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080041 <groupId>org.onap.appc</groupId>
Skip Wonnell86011b92017-08-15 17:05:27 -050042 <artifactId>appc-config-data-services-features</artifactId>
43 <classifier>features</classifier>
44 <type>xml</type>
45 <exclusions>
46 <exclusion>
47 <groupId>*</groupId>
48 <artifactId>*</artifactId>
49 </exclusion>
50 </exclusions>
51 </dependency>
52 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080053 <groupId>org.onap.appc</groupId>
Skip Wonnell86011b92017-08-15 17:05:27 -050054 <artifactId>appc-config-data-services-provider</artifactId>
Patrick Brady84d0a252018-05-22 10:42:55 -070055 <version>1.4.0-SNAPSHOT</version>
Skip Wonnell86011b92017-08-15 17:05:27 -050056 </dependency>
57 </dependencies>
58 <build>
59 <plugins>
60 <plugin>
61 <artifactId>maven-assembly-plugin</artifactId>
62 <executions>
63 <execution>
64 <id>maven-repo-zip</id>
65 <goals>
66 <goal>single</goal>
67 </goals>
68 <phase>package</phase>
69 <configuration>
70 <appendAssemblyId>false</appendAssemblyId>
71 <attach>false</attach>
72 <finalName>stage/${application.name}-${project.version}</finalName>
73 <descriptors>
74 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
75 </descriptors>
76 </configuration>
77 </execution>
78 <execution>
79 <id>installer-zip</id>
80 <goals>
81 <goal>single</goal>
82 </goals>
83 <phase>package</phase>
84 <configuration>
85 <appendAssemblyId>false</appendAssemblyId>
86 <attach>true</attach>
87 <finalName>${application.name}-${project.version}</finalName>
88 <descriptors>
89 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
90 </descriptors>
91 </configuration>
92 </execution>
93 </executions>
94 </plugin>
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-dependency-plugin</artifactId>
98 <executions>
99 <execution>
100 <id>copy-dependencies</id>
101 <goals>
102 <goal>copy-dependencies</goal>
103 </goals>
104 <phase>prepare-package</phase>
105 <configuration>
106 <transitive>false</transitive>
107 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
108 <overWriteReleases>false</overWriteReleases>
109 <overWriteSnapshots>true</overWriteSnapshots>
110 <overWriteIfNewer>true</overWriteIfNewer>
111 <useRepositoryLayout>true</useRepositoryLayout>
112 <addParentPoms>false</addParentPoms>
113 <copyPom>false</copyPom>
114 <excludeGroupIds>org.opendaylight</excludeGroupIds>
115 <scope>provided</scope>
116 </configuration>
117 </execution>
118 </executions>
119 </plugin>
120 <plugin>
121 <artifactId>maven-resources-plugin</artifactId>
122 <executions>
123 <execution>
124 <id>copy-version</id>
125 <goals>
126 <goal>copy-resources</goal>
127 </goals>
128 <!-- here the phase you need -->
129 <phase>validate</phase>
130 <configuration>
131 <outputDirectory>${basedir}/target/stage</outputDirectory>
132 <resources>
133 <resource>
134 <directory>src/main/resources/scripts</directory>
135 <includes>
136 <include>install-feature.sh</include>
137 </includes>
138 <filtering>true</filtering>
139 </resource>
140 </resources>
141 </configuration>
142 </execution>
143 </executions>
144 </plugin>
145 </plugins>
146 </build>
147</project>