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