blob: 7b045584bb8d35e4d1e205a4836773420f238d59 [file] [log] [blame]
Patrick Bradyc7d00752017-06-01 10:45:37 -07001<?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 <artifactId>appc-rest-healthcheck-adapter</artifactId>
Patrick Brady07567592017-12-13 11:09:30 -08006 <groupId>org.onap.appc</groupId>
Jessica Wagantall65367992017-11-16 17:22:13 -08007 <version>1.3.0-SNAPSHOT</version>
Patrick Bradyc7d00752017-06-01 10:45:37 -07008 </parent>
9 <artifactId>appc-rest-healthcheck-adapter-installer</artifactId>
Patrick Brady38713202017-07-28 11:29:23 -070010 <name>Rest Health Check Adapter - Karaf Installer</name>
Patrick Bradyc7d00752017-06-01 10:45:37 -070011 <packaging>pom</packaging>
12 <properties>
13 <application.name>appc-rest-healthcheck-adapter</application.name>
14 <features.boot>appc-rest-healthcheck-adapter</features.boot>
Patrick Brady07567592017-12-13 11:09:30 -080015 <features.repositories>mvn:org.onap.appc/appc-rest-healthcheck-adapter-features/${project.version}/xml/features</features.repositories>
Patrick Bradyc7d00752017-06-01 10:45:37 -070016 <include.transitive.dependencies>false</include.transitive.dependencies>
17 </properties>
18 <dependencies>
19 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080020 <groupId>org.onap.appc</groupId>
Patrick Bradyc7d00752017-06-01 10:45:37 -070021 <artifactId>appc-rest-healthcheck-adapter-features</artifactId>
22 <classifier>features</classifier>
23 <type>xml</type>
24 <exclusions>
25 <exclusion>
26 <groupId>*</groupId>
27 <artifactId>*</artifactId>
28 </exclusion>
29 </exclusions>
30 </dependency>
31 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080032 <groupId>org.onap.appc</groupId>
Patrick Bradyc7d00752017-06-01 10:45:37 -070033 <artifactId>appc-rest-healthcheck-adapter-bundle</artifactId>
34 <version>${project.version}</version>
35 </dependency>
36 </dependencies>
37 <build>
38 <plugins>
39 <plugin>
40 <artifactId>maven-assembly-plugin</artifactId>
41 <executions>
42 <execution>
43 <id>maven-repo-zip</id>
44 <goals>
45 <goal>single</goal>
46 </goals>
47 <phase>package</phase>
48 <configuration>
49 <appendAssemblyId>false</appendAssemblyId>
50 <attach>false</attach>
51 <finalName>stage/${application.name}-${project.version}</finalName>
52 <descriptors>
53 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
54 </descriptors>
55 </configuration>
56 </execution>
57 <execution>
58 <id>installer-zip</id>
59 <goals>
60 <goal>single</goal>
61 </goals>
62 <phase>package</phase>
63 <configuration>
64 <appendAssemblyId>false</appendAssemblyId>
65 <attach>true</attach>
66 <finalName>${application.name}-${project.version}</finalName>
67 <descriptors>
68 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
69 </descriptors>
70 </configuration>
71 </execution>
72 </executions>
73 </plugin>
74 <plugin>
75 <groupId>org.apache.maven.plugins</groupId>
76 <artifactId>maven-dependency-plugin</artifactId>
77 <executions>
78 <execution>
79 <id>copy-dependencies</id>
80 <goals>
81 <goal>copy-dependencies</goal>
82 </goals>
83 <phase>prepare-package</phase>
84 <configuration>
85 <transitive>false</transitive>
86 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
87 <overWriteReleases>false</overWriteReleases>
88 <overWriteSnapshots>true</overWriteSnapshots>
89 <overWriteIfNewer>true</overWriteIfNewer>
90 <useRepositoryLayout>true</useRepositoryLayout>
91 <addParentPoms>false</addParentPoms>
92 <copyPom>false</copyPom>
93 <excludeGroupIds>org.opendaylight</excludeGroupIds>
94 <scope>provided</scope>
95 </configuration>
96 </execution>
97 </executions>
98 </plugin>
99 <plugin>
100 <artifactId>maven-resources-plugin</artifactId>
101 <executions>
102 <execution>
103 <id>copy-version</id>
104 <goals>
105 <goal>copy-resources</goal>
106 </goals>
107 <!-- here the phase you need -->
108 <phase>validate</phase>
109 <configuration>
110 <outputDirectory>${basedir}/target/stage</outputDirectory>
111 <resources>
112 <resource>
113 <directory>src/main/resources/scripts</directory>
114 <includes>
115 <include>install-feature.sh</include>
116 </includes>
117 <filtering>true</filtering>
118 </resource>
119 </resources>
120 </configuration>
121 </execution>
122 </executions>
123 </plugin>
124 </plugins>
125 </build>
126</project>