blob: 27c129f867d5261de1c630324443bdde384f88cd [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 <artifactId>appc-netconf-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 Brady57b5eef2017-02-10 15:00:49 -08008 </parent>
9 <artifactId>appc-netconf-adapter-installer</artifactId>
10 <name>NETCONF Adapter - Karaf Installer</name>
11 <packaging>pom</packaging>
12
13 <properties>
14 <application.name>appc-netconf-adapter</application.name>
15 <features.boot>appc-netconf-adapter</features.boot>
Patrick Brady07567592017-12-13 11:09:30 -080016 <features.repositories>mvn:org.onap.appc/appc-netconf-adapter-features/${project.version}/xml/features</features.repositories>
Patrick Brady57b5eef2017-02-10 15:00:49 -080017 <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>
Patrick Brady57b5eef2017-02-10 15:00:49 -080023 <artifactId>appc-netconf-adapter-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
34 <dependency>
Patrick Brady07567592017-12-13 11:09:30 -080035 <groupId>org.onap.appc</groupId>
Patrick Brady57b5eef2017-02-10 15:00:49 -080036 <artifactId>appc-netconf-adapter-bundle</artifactId>
37 <version>${project.version}</version>
38 </dependency>
39 </dependencies>
40
41 <build>
42 <plugins>
43 <plugin>
44 <artifactId>maven-assembly-plugin</artifactId>
45 <executions>
46 <execution>
47 <id>maven-repo-zip</id>
48 <goals>
49 <goal>single</goal>
50 </goals>
51 <phase>package</phase>
52 <configuration>
53 <appendAssemblyId>false</appendAssemblyId>
54 <attach>false</attach>
55 <finalName>stage/${application.name}-${project.version}</finalName>
56 <descriptors>
57 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
58 </descriptors>
59 </configuration>
60 </execution>
61 <execution>
62 <id>installer-zip</id>
63 <goals>
64 <goal>single</goal>
65 </goals>
66 <phase>package</phase>
67 <configuration>
68 <appendAssemblyId>false</appendAssemblyId>
69 <attach>true</attach>
70 <finalName>${application.name}-${project.version}</finalName>
71 <descriptors>
72 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
73 </descriptors>
74 </configuration>
75 </execution>
76 </executions>
77 </plugin>
78 <plugin>
79 <groupId>org.apache.maven.plugins</groupId>
80 <artifactId>maven-dependency-plugin</artifactId>
81 <executions>
82 <execution>
83 <id>copy-dependencies</id>
84 <goals>
85 <goal>copy-dependencies</goal>
86 </goals>
87 <phase>prepare-package</phase>
88 <configuration>
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 </configuration>
98 </execution>
99 </executions>
100 </plugin>
101 <plugin>
102 <artifactId>maven-resources-plugin</artifactId>
103 <executions>
104 <execution>
105 <id>copy-version</id>
106 <goals>
107 <goal>copy-resources</goal>
108 </goals>
109 <!-- here the phase you need -->
110 <phase>validate</phase>
111 <configuration>
112 <outputDirectory>${basedir}/target/stage</outputDirectory>
113 <resources>
114 <resource>
115 <directory>src/main/resources/scripts</directory>
116 <includes>
117 <include>install-feature.sh</include>
118 </includes>
119 <filtering>true</filtering>
120 </resource>
121 </resources>
122 </configuration>
123 </execution>
124 </executions>
125 </plugin>
126
127 </plugins>
128 </build>
129
130</project>