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