blob: f63b837662983890fe77b78ba2932c3b27ea0e61 [file] [log] [blame]
Anand Chaturvedi0df7ab42017-08-12 01:31:10 -04001<?xml version="1.0" encoding="UTF-8"?>
2<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">
3 <modelVersion>4.0.0</modelVersion>
4 <parent>
5 <groupId>org.openecomp.appc</groupId>
6 <artifactId>appc-config-params</artifactId>
7 <version>1.1.0-SNAPSHOT</version>
8 </parent>
9
10 <artifactId>appc-config-params-installer</artifactId>
11 <name>Config Component Params - Installer</name>
12 <packaging>pom</packaging>
13 <properties>
14 <application.name>appc-config-params</application.name>
15 <features.boot>appc-config-params</features.boot>
16 <features.repositories>mvn:org.openecomp.appc/appc-config-params-features/${project.version}/xml/features</features.repositories>
17 <include.transitive.dependencies>false</include.transitive.dependencies>
18 </properties>
19 <dependencies>
20 <dependency>
21 <groupId>org.openecomp.appc</groupId>
22 <artifactId>appc-config-params-features</artifactId>
23 <classifier>features</classifier>
24 <type>xml</type>
25 <exclusions>
26 <exclusion>
27 <groupId>*</groupId>
28 <artifactId>*</artifactId>
29 </exclusion>
30 </exclusions>
31 </dependency>
32 <dependency>
33 <groupId>org.openecomp.appc</groupId>
34 <artifactId>appc-config-params-provider</artifactId>
35 <version>1.1.0-SNAPSHOT</version>
36 </dependency>
37 </dependencies>
38 <build>
39 <plugins>
40 <plugin>
41 <artifactId>maven-assembly-plugin</artifactId>
42 <executions>
43 <execution>
44 <id>maven-repo-zip</id>
45 <goals>
46 <goal>single</goal>
47 </goals>
48 <phase>package</phase>
49 <configuration>
50 <appendAssemblyId>false</appendAssemblyId>
51 <attach>false</attach>
52 <finalName>stage/${application.name}-${project.version}</finalName>
53 <descriptors>
54 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
55 </descriptors>
56 </configuration>
57 </execution>
58 <execution>
59 <id>installer-zip</id>
60 <goals>
61 <goal>single</goal>
62 </goals>
63 <phase>package</phase>
64 <configuration>
65 <appendAssemblyId>false</appendAssemblyId>
66 <attach>true</attach>
67 <finalName>${application.name}-${project.version}</finalName>
68 <descriptors>
69 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
70 </descriptors>
71 </configuration>
72 </execution>
73 </executions>
74 </plugin>
75 <plugin>
76 <groupId>org.apache.maven.plugins</groupId>
77 <artifactId>maven-dependency-plugin</artifactId>
78 <executions>
79 <execution>
80 <id>copy-dependencies</id>
81 <goals>
82 <goal>copy-dependencies</goal>
83 </goals>
84 <phase>prepare-package</phase>
85 <configuration>
86 <transitive>false</transitive>
87 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
88 <overWriteReleases>false</overWriteReleases>
89 <overWriteSnapshots>true</overWriteSnapshots>
90 <overWriteIfNewer>true</overWriteIfNewer>
91 <useRepositoryLayout>true</useRepositoryLayout>
92 <addParentPoms>false</addParentPoms>
93 <copyPom>false</copyPom>
94 <excludeGroupIds>org.opendaylight</excludeGroupIds>
95 <scope>provided</scope>
96 </configuration>
97 </execution>
98 </executions>
99 </plugin>
100 <plugin>
101 <artifactId>maven-resources-plugin</artifactId>
102 <executions>
103 <execution>
104 <id>copy-version</id>
105 <goals>
106 <goal>copy-resources</goal>
107 </goals>
108 <!-- here the phase you need -->
109 <phase>validate</phase>
110 <configuration>
111 <outputDirectory>${basedir}/target/stage</outputDirectory>
112 <resources>
113 <resource>
114 <directory>src/main/resources/scripts</directory>
115 <includes>
116 <include>install-feature.sh</include>
117 </includes>
118 <filtering>true</filtering>
119 </resource>
120 </resources>
121 </configuration>
122 </execution>
123 </executions>
124 </plugin>
125 </plugins>
126 </build>
127</project>