blob: 5a1f56e445add952661c56dc5675bcfd2a0a34d9 [file] [log] [blame]
Skip Wonnelldbf27a42017-08-15 18:07:13 -05001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
Skip Wonnell8c4b89b2018-01-12 09:24:03 -06004 ONAP : APPC
Skip Wonnelldbf27a42017-08-15 18:07:13 -05005 ================================================================================
John McClungcd5f4f62018-06-13 14:03:54 -04006 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
Skip Wonnelldbf27a42017-08-15 18:07:13 -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 Wonnelldbf27a42017-08-15 18:07:13 -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 Bradyb49dd122018-08-10 15:30:58 -070025 <groupId>org.onap.appc.parent</groupId>
26 <artifactId>odlparent-lite</artifactId>
Patrick Brady84d0a252018-05-22 10:42:55 -070027 <version>1.4.0-SNAPSHOT</version>
Patrick Bradyb49dd122018-08-10 15:30:58 -070028 <relativePath />
Skip Wonnelldbf27a42017-08-15 18:07:13 -050029 </parent>
Patrick Bradyb49dd122018-08-10 15:30:58 -070030 <groupId>org.onap.appc</groupId>
Skip Wonnelldbf27a42017-08-15 18:07:13 -050031
32 <artifactId>appc-config-generator-installer</artifactId>
33 <name>Config Component Generator - Installer</name>
34 <packaging>pom</packaging>
35 <properties>
36 <application.name>appc-config-generator</application.name>
37 <features.boot>appc-config-generator</features.boot>
Patrick Bradyb49dd122018-08-10 15:30:58 -070038 <features.repositories>mvn:org.onap.appc/onap-appc-config-generator/${project.version}/xml/features</features.repositories>
Skip Wonnelldbf27a42017-08-15 18:07:13 -050039 <include.transitive.dependencies>false</include.transitive.dependencies>
40 </properties>
41 <dependencies>
42 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080043 <groupId>org.onap.appc</groupId>
Patrick Bradyb49dd122018-08-10 15:30:58 -070044 <artifactId>onap-appc-config-generator</artifactId>
Skip Wonnelldbf27a42017-08-15 18:07:13 -050045 <classifier>features</classifier>
Patrick Bradyb49dd122018-08-10 15:30:58 -070046 <version>${project.version}</version>
Skip Wonnelldbf27a42017-08-15 18:07:13 -050047 <type>xml</type>
48 <exclusions>
49 <exclusion>
50 <groupId>*</groupId>
51 <artifactId>*</artifactId>
52 </exclusion>
53 </exclusions>
54 </dependency>
55 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080056 <groupId>org.onap.appc</groupId>
Skip Wonnelldbf27a42017-08-15 18:07:13 -050057 <artifactId>appc-config-generator-provider</artifactId>
Patrick Brady84d0a252018-05-22 10:42:55 -070058 <version>1.4.0-SNAPSHOT</version>
Skip Wonnelldbf27a42017-08-15 18:07:13 -050059 </dependency>
60 </dependencies>
61 <build>
62 <plugins>
63 <plugin>
64 <artifactId>maven-assembly-plugin</artifactId>
65 <executions>
66 <execution>
67 <id>maven-repo-zip</id>
68 <goals>
69 <goal>single</goal>
70 </goals>
71 <phase>package</phase>
72 <configuration>
73 <appendAssemblyId>false</appendAssemblyId>
74 <attach>false</attach>
75 <finalName>stage/${application.name}-${project.version}</finalName>
76 <descriptors>
77 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
78 </descriptors>
79 </configuration>
80 </execution>
81 <execution>
82 <id>installer-zip</id>
83 <goals>
84 <goal>single</goal>
85 </goals>
86 <phase>package</phase>
87 <configuration>
88 <appendAssemblyId>false</appendAssemblyId>
89 <attach>true</attach>
90 <finalName>${application.name}-${project.version}</finalName>
91 <descriptors>
92 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
93 </descriptors>
94 </configuration>
95 </execution>
96 </executions>
97 </plugin>
98 <plugin>
99 <groupId>org.apache.maven.plugins</groupId>
100 <artifactId>maven-dependency-plugin</artifactId>
101 <executions>
102 <execution>
103 <id>copy-dependencies</id>
104 <goals>
105 <goal>copy-dependencies</goal>
106 </goals>
107 <phase>prepare-package</phase>
108 <configuration>
109 <transitive>false</transitive>
110 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
111 <overWriteReleases>false</overWriteReleases>
112 <overWriteSnapshots>true</overWriteSnapshots>
113 <overWriteIfNewer>true</overWriteIfNewer>
114 <useRepositoryLayout>true</useRepositoryLayout>
115 <addParentPoms>false</addParentPoms>
116 <copyPom>false</copyPom>
117 <excludeGroupIds>org.opendaylight</excludeGroupIds>
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>