blob: c118fd09b7dc18d66e0311aa7f4a1baca356ff4a [file] [log] [blame]
Kalpesh Chaniyara5b759092017-08-15 23:40:34 +05301<?xml version="1.0"?>
Kalpesh Chaniyaraa51cfa52017-08-29 04:38:52 -04002<!--
3 ============LICENSE_START=======================================================
4 ONAP : APPC
5 ================================================================================
John McClungfb3eec22018-06-14 10:17:19 -04006 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
Kalpesh Chaniyaraa51cfa52017-08-29 04:38:52 -04007 ================================================================================
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
Kalpesh Chaniyaraa51cfa52017-08-29 04:38:52 -040022 ============LICENSE_END=========================================================
23-->
Kalpesh Chaniyara5b759092017-08-15 23:40:34 +053024<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
25 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
26 <modelVersion>4.0.0</modelVersion>
27 <parent>
Patrick Brady07567592017-12-13 11:09:30 -080028 <groupId>org.onap.appc</groupId>
Kalpesh Chaniyara5b759092017-08-15 23:40:34 +053029 <artifactId>appc-sequence-generator</artifactId>
Patrick Brady84d0a252018-05-22 10:42:55 -070030 <version>1.4.0-SNAPSHOT</version>
Kalpesh Chaniyara5b759092017-08-15 23:40:34 +053031 </parent>
32 <artifactId>appc-sequence-generator-installer</artifactId>
33 <name>Appc Sequence Generator : Karaf Installer</name>
34 <packaging>pom</packaging>
35
36 <properties>
37 <application.name>appc-sequence-generator</application.name>
38 <features.boot>appc-sequence-generator</features.boot>
Patrick Brady07567592017-12-13 11:09:30 -080039 <features.repositories>mvn:org.onap.appc/appc-sequence-generator-features/${project.version}/xml/features</features.repositories>
Kalpesh Chaniyara5b759092017-08-15 23:40:34 +053040 <include.transitive.dependencies>false</include.transitive.dependencies>
41 </properties>
42
43 <dependencies>
44
45 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080046 <groupId>org.onap.appc</groupId>
Kalpesh Chaniyara5b759092017-08-15 23:40:34 +053047 <artifactId>appc-sequence-generator-features</artifactId>
48 <version>${project.version}</version>
49 <classifier>features</classifier>
50 <type>xml</type>
51 <exclusions>
52 <exclusion>
53 <groupId>*</groupId>
54 <artifactId>*</artifactId>
55 </exclusion>
56 </exclusions>
57 </dependency>
58
59 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080060 <groupId>org.onap.appc</groupId>
Kalpesh Chaniyara5b759092017-08-15 23:40:34 +053061 <artifactId>appc-sequence-generator-bundle</artifactId>
62 <version>${project.version}</version>
63 </dependency>
64
65 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080066 <groupId>org.onap.appc</groupId>
Kalpesh Chaniyara5b759092017-08-15 23:40:34 +053067 <artifactId>appc-sequence-generator-bundle</artifactId>
68 <classifier>config</classifier>
69 <version>${project.version}</version>
70 <type>xml</type>
71 </dependency>
72
73 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080074 <groupId>org.onap.appc</groupId>
Kalpesh Chaniyara5b759092017-08-15 23:40:34 +053075 <artifactId>appc-sequence-generator-model</artifactId>
76 <version>${project.version}</version>
77 <!--<type>properties</type>-->
78 </dependency>
79
80 </dependencies>
81
82 <build>
83 <plugins>
84 <plugin>
85 <artifactId>maven-assembly-plugin</artifactId>
86 <executions>
87 <execution>
88 <id>maven-repo-zip</id>
89 <goals>
90 <goal>single</goal>
91 </goals>
92 <phase>package</phase>
93 <configuration>
94 <appendAssemblyId>false</appendAssemblyId>
95 <attach>false</attach>
96 <finalName>stage/${application.name}-${project.version}</finalName>
97 <descriptors>
98 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
99 </descriptors>
100 </configuration>
101 </execution>
102 <execution>
103 <id>installer-zip</id>
104 <goals>
105 <goal>single</goal>
106 </goals>
107 <phase>package</phase>
108 <configuration>
109 <appendAssemblyId>false</appendAssemblyId>
110 <attach>true</attach>
111 <finalName>${application.name}-${project.version}</finalName>
112 <descriptors>
113 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
114 </descriptors>
115 </configuration>
116 </execution>
117 </executions>
118 </plugin>
119 <plugin>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-dependency-plugin</artifactId>
122 <executions>
123 <execution>
124 <id>copy-dependencies</id>
125 <goals>
126 <goal>copy-dependencies</goal>
127 </goals>
128 <phase>prepare-package</phase>
129 <configuration>
130 <transitive>false</transitive>
131 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
132 <overWriteReleases>false</overWriteReleases>
133 <overWriteSnapshots>true</overWriteSnapshots>
134 <overWriteIfNewer>true</overWriteIfNewer>
135 <useRepositoryLayout>true</useRepositoryLayout>
136 <addParentPoms>false</addParentPoms>
137 <copyPom>false</copyPom>
138 <excludeGroupIds>org.opendaylight</excludeGroupIds>
139 <scope>provided</scope>
140 </configuration>
141 </execution>
142 </executions>
143 </plugin>
144 <plugin>
145 <artifactId>maven-resources-plugin</artifactId>
146 <executions>
147 <execution>
148 <id>copy-version</id>
149 <goals>
150 <goal>copy-resources</goal>
151 </goals>
152 <!-- here the phase you need -->
153 <phase>validate</phase>
154 <configuration>
155 <outputDirectory>${basedir}/target/stage</outputDirectory>
156 <resources>
157 <resource>
158 <directory>src/main/resources/scripts</directory>
159 <includes>
160 <include>install-feature.sh</include>
161 </includes>
162 <filtering>true</filtering>
163 </resource>
164 </resources>
165 </configuration>
166 </execution>
167 </executions>
168 </plugin>
169 </plugins>
170 </build>
Kalpesh Chaniyaraa51cfa52017-08-29 04:38:52 -0400171</project>