blob: b0ed830bd5654023382b85714e3f7d59e10cb1b4 [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>
Patrick Brady07567592017-12-13 11:09:30 -08007 <groupId>org.onap.appc</groupId>
Jessica Wagantall65367992017-11-16 17:22:13 -08008 <version>1.3.0-SNAPSHOT</version>
Anand Chaturvedie178b072017-08-14 20:10:36 -04009 </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>
Patrick Brady07567592017-12-13 11:09:30 -080016 <features.repositories>mvn:org.onap.appc/appc-network-inventory-features/${project.version}/xml/features</features.repositories>
Anand Chaturvedie178b072017-08-14 20:10:36 -040017 <include.transitive.dependencies>false</include.transitive.dependencies>
18 </properties>
19
20 <dependencies>
21 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080022 <groupId>org.onap.appc</groupId>
Anand Chaturvedie178b072017-08-14 20:10:36 -040023 <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>
Patrick Brady07567592017-12-13 11:09:30 -080034 <groupId>org.onap.appc</groupId>
Anand Chaturvedie178b072017-08-14 20:10:36 -040035 <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>