blob: 9e6e5271330d5c6149120bc7fc73239996670901 [file] [log] [blame]
Skip Wonnelldb75c0a2017-08-15 12:43:03 -05001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
Skip Wonnell8c4b89b2018-01-12 09:24:03 -06004 ONAP : APPC
Skip Wonnelldb75c0a2017-08-15 12:43:03 -05005 ================================================================================
John McClungcd5f4f62018-06-13 14:03:54 -04006 Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
Skip Wonnelldb75c0a2017-08-15 12:43:03 -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 Wonnelldb75c0a2017-08-15 12:43:03 -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 Brady99cdab22019-01-07 08:41:15 -080027 <version>1.4.1</version>
Patrick Bradyb49dd122018-08-10 15:30:58 -070028 <relativePath />
Skip Wonnelldb75c0a2017-08-15 12:43:03 -050029 </parent>
Patrick Bradyb49dd122018-08-10 15:30:58 -070030 <groupId>org.onap.appc</groupId>
Skip Wonnelldb75c0a2017-08-15 12:43:03 -050031
32 <artifactId>appc-config-encryption-tool-installer</artifactId>
Patrick Bradyccd67e92018-11-12 12:14:11 -080033 <version>1.5.0-SNAPSHOT</version>
Skip Wonnelldb75c0a2017-08-15 12:43:03 -050034 <name>Config Component Encryption Tool - Installer</name>
35 <packaging>pom</packaging>
36 <properties>
37 <application.name>appc-config-encryption-tool</application.name>
38 <features.boot>appc-config-encryption-tool</features.boot>
Patrick Bradyb49dd122018-08-10 15:30:58 -070039 <features.repositories>mvn:org.onap.appc/onap-appc-config-encryption-tool/${project.version}/xml/features</features.repositories>
Skip Wonnelldb75c0a2017-08-15 12:43:03 -050040 <include.transitive.dependencies>false</include.transitive.dependencies>
41 </properties>
42 <dependencies>
43 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080044 <groupId>org.onap.appc</groupId>
Patrick Bradyb49dd122018-08-10 15:30:58 -070045 <artifactId>onap-appc-config-encryption-tool</artifactId>
Skip Wonnelldb75c0a2017-08-15 12:43:03 -050046 <classifier>features</classifier>
Patrick Bradyb49dd122018-08-10 15:30:58 -070047 <version>${project.version}</version>
Skip Wonnelldb75c0a2017-08-15 12:43:03 -050048 <type>xml</type>
49 <exclusions>
50 <exclusion>
51 <groupId>*</groupId>
52 <artifactId>*</artifactId>
53 </exclusion>
54 </exclusions>
55 </dependency>
56 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080057 <groupId>org.onap.appc</groupId>
Skip Wonnelldb75c0a2017-08-15 12:43:03 -050058 <artifactId>appc-config-encryption-tool-provider</artifactId>
Patrick Bradyccd67e92018-11-12 12:14:11 -080059 <version>1.5.0-SNAPSHOT</version>
Skip Wonnelldb75c0a2017-08-15 12:43:03 -050060 </dependency>
61 </dependencies>
62 <build>
63 <plugins>
64 <plugin>
65 <artifactId>maven-assembly-plugin</artifactId>
66 <executions>
67 <execution>
68 <id>maven-repo-zip</id>
69 <goals>
70 <goal>single</goal>
71 </goals>
72 <phase>package</phase>
73 <configuration>
74 <appendAssemblyId>false</appendAssemblyId>
75 <attach>false</attach>
76 <finalName>stage/${application.name}-${project.version}</finalName>
77 <descriptors>
78 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
79 </descriptors>
80 </configuration>
81 </execution>
82 <execution>
83 <id>installer-zip</id>
84 <goals>
85 <goal>single</goal>
86 </goals>
87 <phase>package</phase>
88 <configuration>
89 <appendAssemblyId>false</appendAssemblyId>
90 <attach>true</attach>
91 <finalName>${application.name}-${project.version}</finalName>
92 <descriptors>
93 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
94 </descriptors>
95 </configuration>
96 </execution>
97 </executions>
98 </plugin>
99 <plugin>
100 <groupId>org.apache.maven.plugins</groupId>
101 <artifactId>maven-dependency-plugin</artifactId>
102 <executions>
103 <execution>
104 <id>copy-dependencies</id>
105 <goals>
106 <goal>copy-dependencies</goal>
107 </goals>
108 <phase>prepare-package</phase>
109 <configuration>
110 <transitive>false</transitive>
111 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
112 <overWriteReleases>false</overWriteReleases>
113 <overWriteSnapshots>true</overWriteSnapshots>
114 <overWriteIfNewer>true</overWriteIfNewer>
115 <useRepositoryLayout>true</useRepositoryLayout>
116 <addParentPoms>false</addParentPoms>
117 <copyPom>false</copyPom>
118 <excludeGroupIds>org.opendaylight</excludeGroupIds>
119 <scope>provided</scope>
120 </configuration>
121 </execution>
122 </executions>
123 </plugin>
124 <plugin>
125 <artifactId>maven-resources-plugin</artifactId>
126 <executions>
127 <execution>
128 <id>copy-version</id>
129 <goals>
130 <goal>copy-resources</goal>
131 </goals>
132 <!-- here the phase you need -->
133 <phase>validate</phase>
134 <configuration>
135 <outputDirectory>${basedir}/target/stage</outputDirectory>
136 <resources>
137 <resource>
138 <directory>src/main/resources/scripts</directory>
139 <includes>
140 <include>install-feature.sh</include>
141 </includes>
142 <filtering>true</filtering>
143 </resource>
144 </resources>
145 </configuration>
146 </execution>
147 </executions>
148 </plugin>
149 </plugins>
150 </build>
151</project>