blob: 895f25e575bdf79c03d5b7015a10a3b5ed78c9ce [file] [log] [blame]
Patrick Brady57b5eef2017-02-10 15:00:49 -08001<?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-dg-shared</artifactId>
Patrick Brady03682da2017-03-10 13:07:19 -08007 <version>1.1.0-SNAPSHOT</version>
Patrick Brady57b5eef2017-02-10 15:00:49 -08008 </parent>
9 <artifactId>appc-dg-shared-installer</artifactId>
10 <name>APPC DG Shared - Karaf Installer</name>
11 <packaging>pom</packaging>
12
13 <properties>
14 <application.name>appc-dg-shared</application.name>
15 <features.boot>appc-dg-shared</features.boot>
16 <features.repositories>mvn:org.openecomp.appc/appc-dg-shared-features/${project.version}/xml/features</features.repositories>
17 </properties>
18
19 <dependencies>
20 <dependency>
21 <groupId>org.openecomp.appc</groupId>
22 <artifactId>appc-dg-shared-features</artifactId>
23 <version>${project.version}</version>
24 <classifier>features</classifier>
25 <type>xml</type>
26 </dependency>
27
28 <dependency>
29 <groupId>org.openecomp.appc</groupId>
30 <artifactId>appc-ssh-adapter-features</artifactId>
31 <version>${project.version}</version>
32 <classifier>features</classifier>
33 <type>xml</type>
34 </dependency>
35
36 <dependency>
37 <groupId>org.openecomp.appc</groupId>
38 <artifactId>appc-netconf-adapter-features</artifactId>
39 <version>${project.version}</version>
40 <classifier>features</classifier>
41 <type>xml</type>
42 </dependency>
43 </dependencies>
44
45 <build>
46 <plugins>
47 <plugin>
48 <artifactId>maven-assembly-plugin</artifactId>
49 <executions>
50 <execution>
51 <id>mavne-repo-zip</id>
52 <goals>
53 <goal>single</goal>
54 </goals>
55 <phase>package</phase>
56 <configuration>
57 <appendAssemblyId>false</appendAssemblyId>
58 <attach>false</attach>
59 <finalName>stage/${application.name}-${project.version}</finalName>
60 <descriptors>
61 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
62 </descriptors>
63 </configuration>
64 </execution>
65 <execution>
66 <id>installer-zip</id>
67 <goals>
68 <goal>single</goal>
69 </goals>
70 <phase>package</phase>
71 <configuration>
72 <appendAssemblyId>false</appendAssemblyId>
73 <attach>true</attach>
74 <finalName>${application.name}-${project.version}</finalName>
75 <descriptors>
76 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
77 </descriptors>
78 </configuration>
79 </execution>
80 </executions>
81 </plugin>
82 <plugin>
83 <groupId>org.apache.maven.plugins</groupId>
84 <artifactId>maven-dependency-plugin</artifactId>
85 <executions>
86 <execution>
87 <id>copy-dependencies</id>
88 <goals>
89 <goal>copy-dependencies</goal>
90 </goals>
91 <phase>prepare-package</phase>
92 <configuration>
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 </configuration>
102 </execution>
103 </executions>
104 </plugin>
105 <plugin>
106 <artifactId>maven-resources-plugin</artifactId>
107 <executions>
108 <execution>
109 <id>copy-version</id>
110 <goals>
111 <goal>copy-resources</goal>
112 </goals>
113 <!-- here the phase you need -->
114 <phase>validate</phase>
115 <configuration>
116 <outputDirectory>${basedir}/target/stage</outputDirectory>
117 <resources>
118 <resource>
119 <directory>src/main/resources/scripts</directory>
120 <includes>
121 <include>install-feature.sh</include>
122 </includes>
123 <filtering>true</filtering>
124 </resource>
125 </resources>
126 </configuration>
127 </execution>
128 </executions>
129 </plugin>
130 </plugins>
131 </build>
132</project>