1049049fc94f8cdf0e806608b52d516eba7e107a
[appc.git] / appc-config / appc-config-audit / installer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   APPC
5   ================================================================================
6   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7   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=========================================================
21   ECOMP is a trademark and service mark of AT&T Intellectual Property.
22   -->
23 <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">
24     <modelVersion>4.0.0</modelVersion>
25     <parent>
26         <groupId>org.openecomp.appc</groupId>
27         <artifactId>appc-config-audit</artifactId>
28         <version>1.3.0-SNAPSHOT</version>
29     </parent>
30
31     <artifactId>appc-config-audit-installer</artifactId>
32     <name>Config Component Audit - Installer</name>
33     <packaging>pom</packaging>
34     <properties>
35         <application.name>appc-config-audit</application.name>
36         <features.boot>appc-config-audit</features.boot>
37         <features.repositories>mvn:org.openecomp.appc/appc-config-audit-features/${project.version}/xml/features</features.repositories>
38         <include.transitive.dependencies>false</include.transitive.dependencies>
39     </properties>
40     <dependencies>
41         <dependency>
42             <groupId>org.openecomp.appc</groupId>
43             <artifactId>appc-config-audit-features</artifactId>
44             <classifier>features</classifier>
45             <type>xml</type>
46             <exclusions>
47                 <exclusion>
48                     <groupId>*</groupId>
49                     <artifactId>*</artifactId>
50                 </exclusion>
51             </exclusions>
52         </dependency>
53         <dependency>
54             <groupId>org.openecomp.appc</groupId>
55             <artifactId>appc-config-audit-provider</artifactId>
56             <version>1.3.0-SNAPSHOT</version>
57         </dependency>
58     </dependencies>
59     <build>
60         <plugins>
61             <plugin>
62                 <artifactId>maven-assembly-plugin</artifactId>
63                 <executions>
64                     <execution>
65                         <id>maven-repo-zip</id>
66                         <goals>
67                             <goal>single</goal>
68                         </goals>
69                         <phase>package</phase>
70                         <configuration>
71                                 <appendAssemblyId>false</appendAssemblyId>
72                             <attach>false</attach>
73                             <finalName>stage/${application.name}-${project.version}</finalName>
74                             <descriptors>
75                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
76                             </descriptors>
77                         </configuration>
78                     </execution>
79                     <execution>
80                         <id>installer-zip</id>
81                         <goals>
82                             <goal>single</goal>
83                         </goals>
84                         <phase>package</phase>
85                         <configuration>
86                                 <appendAssemblyId>false</appendAssemblyId>
87                             <attach>true</attach>
88                             <finalName>${application.name}-${project.version}</finalName>
89                             <descriptors>
90                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
91                             </descriptors>
92                         </configuration>
93                     </execution>
94                 </executions>
95             </plugin>
96             <plugin>
97                 <groupId>org.apache.maven.plugins</groupId>
98                 <artifactId>maven-dependency-plugin</artifactId>
99                 <executions>
100                     <execution>
101                         <id>copy-dependencies</id>
102                         <goals>
103                             <goal>copy-dependencies</goal>
104                         </goals>
105                         <phase>prepare-package</phase>
106                         <configuration>
107                             <transitive>false</transitive>
108                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
109                             <overWriteReleases>false</overWriteReleases>
110                             <overWriteSnapshots>true</overWriteSnapshots>
111                             <overWriteIfNewer>true</overWriteIfNewer>
112                             <useRepositoryLayout>true</useRepositoryLayout>
113                             <addParentPoms>false</addParentPoms>
114                             <copyPom>false</copyPom>
115                             <excludeGroupIds>org.opendaylight</excludeGroupIds>
116                             <scope>provided</scope>
117                         </configuration>
118                     </execution>
119                 </executions>
120             </plugin>
121             <plugin>
122                 <artifactId>maven-resources-plugin</artifactId>
123                 <executions>
124                     <execution>
125                         <id>copy-version</id>
126                         <goals>
127                             <goal>copy-resources</goal>
128                         </goals>
129                         <!-- here the phase you need -->
130                         <phase>validate</phase>
131                         <configuration>
132                             <outputDirectory>${basedir}/target/stage</outputDirectory>
133                             <resources>
134                                 <resource>
135                                     <directory>src/main/resources/scripts</directory>
136                                     <includes>
137                                         <include>install-feature.sh</include>
138                                     </includes>
139                                     <filtering>true</filtering>
140                                 </resource>
141                             </resources>
142                         </configuration>
143                     </execution>
144                 </executions>
145             </plugin>
146         </plugins>
147     </build>
148 </project>