blob: ea99c587995abca6ffa0cbb6e65246abb02bc136 [file] [log] [blame]
Anand Chaturvedi0df7ab42017-08-12 01:31:10 -04001<?xml version="1.0" encoding="UTF-8"?>
Skip Wonnell8c4b89b2018-01-12 09:24:03 -06002<!--
3 ============LICENSE_START=======================================================
4 ONAP : APPC
5 ================================================================================
John McClungcd5f4f62018-06-13 14:03:54 -04006 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
Skip Wonnell8c4b89b2018-01-12 09:24:03 -06007 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 Wonnell8c4b89b2018-01-12 09:24:03 -060021 -->
Anand Chaturvedi0df7ab42017-08-12 01:31:10 -040022<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>
Anand Chaturvedi0df7ab42017-08-12 01:31:10 -040026 <artifactId>appc-config-params</artifactId>
Patrick Brady84d0a252018-05-22 10:42:55 -070027 <version>1.4.0-SNAPSHOT</version>
Anand Chaturvedi0df7ab42017-08-12 01:31:10 -040028 </parent>
29
30 <artifactId>appc-config-params-installer</artifactId>
31 <name>Config Component Params - Installer</name>
32 <packaging>pom</packaging>
33 <properties>
34 <application.name>appc-config-params</application.name>
35 <features.boot>appc-config-params</features.boot>
Patrick Brady07567592017-12-13 11:09:30 -080036 <features.repositories>mvn:org.onap.appc/appc-config-params-features/${project.version}/xml/features</features.repositories>
Anand Chaturvedi0df7ab42017-08-12 01:31:10 -040037 <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>
Anand Chaturvedi0df7ab42017-08-12 01:31:10 -040042 <artifactId>appc-config-params-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>
Anand Chaturvedi0df7ab42017-08-12 01:31:10 -040054 <artifactId>appc-config-params-provider</artifactId>
Patrick Brady84d0a252018-05-22 10:42:55 -070055 <version>1.4.0-SNAPSHOT</version>
Anand Chaturvedi0df7ab42017-08-12 01:31:10 -040056 </dependency>
Patrick Bradye5bdbcf2018-02-08 18:14:22 -050057 <dependency>
58 <groupId>org.onap.appc</groupId>
59 <artifactId>appc-yang-generator</artifactId>
60 <version>${project.version}</version>
61 </dependency>
Anand Chaturvedi0df7ab42017-08-12 01:31:10 -040062 </dependencies>
63 <build>
64 <plugins>
65 <plugin>
66 <artifactId>maven-assembly-plugin</artifactId>
67 <executions>
68 <execution>
69 <id>maven-repo-zip</id>
70 <goals>
71 <goal>single</goal>
72 </goals>
73 <phase>package</phase>
74 <configuration>
Patrick Bradye5bdbcf2018-02-08 18:14:22 -050075 <appendAssemblyId>false</appendAssemblyId>
Anand Chaturvedi0df7ab42017-08-12 01:31:10 -040076 <attach>false</attach>
77 <finalName>stage/${application.name}-${project.version}</finalName>
78 <descriptors>
79 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
80 </descriptors>
81 </configuration>
82 </execution>
83 <execution>
84 <id>installer-zip</id>
85 <goals>
86 <goal>single</goal>
87 </goals>
88 <phase>package</phase>
89 <configuration>
Patrick Bradye5bdbcf2018-02-08 18:14:22 -050090 <appendAssemblyId>false</appendAssemblyId>
Anand Chaturvedi0df7ab42017-08-12 01:31:10 -040091 <attach>true</attach>
92 <finalName>${application.name}-${project.version}</finalName>
93 <descriptors>
94 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
95 </descriptors>
96 </configuration>
97 </execution>
98 </executions>
99 </plugin>
100 <plugin>
101 <groupId>org.apache.maven.plugins</groupId>
102 <artifactId>maven-dependency-plugin</artifactId>
103 <executions>
104 <execution>
105 <id>copy-dependencies</id>
106 <goals>
107 <goal>copy-dependencies</goal>
108 </goals>
109 <phase>prepare-package</phase>
110 <configuration>
111 <transitive>false</transitive>
112 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
113 <overWriteReleases>false</overWriteReleases>
114 <overWriteSnapshots>true</overWriteSnapshots>
115 <overWriteIfNewer>true</overWriteIfNewer>
116 <useRepositoryLayout>true</useRepositoryLayout>
117 <addParentPoms>false</addParentPoms>
118 <copyPom>false</copyPom>
119 <excludeGroupIds>org.opendaylight</excludeGroupIds>
120 <scope>provided</scope>
121 </configuration>
122 </execution>
123 </executions>
124 </plugin>
125 <plugin>
126 <artifactId>maven-resources-plugin</artifactId>
127 <executions>
128 <execution>
129 <id>copy-version</id>
130 <goals>
131 <goal>copy-resources</goal>
132 </goals>
133 <!-- here the phase you need -->
134 <phase>validate</phase>
135 <configuration>
136 <outputDirectory>${basedir}/target/stage</outputDirectory>
137 <resources>
138 <resource>
139 <directory>src/main/resources/scripts</directory>
140 <includes>
141 <include>install-feature.sh</include>
142 </includes>
143 <filtering>true</filtering>
144 </resource>
145 </resources>
146 </configuration>
147 </execution>
148 </executions>
149 </plugin>
150 </plugins>
151 </build>
152</project>