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