blob: 0eec3324a376490667364897d2dc9209d44f1fc8 [file] [log] [blame]
Dan Timoney2a93b9d2017-07-18 19:40:01 -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" 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>sli</artifactId>
Dan Timoneyc95543b2017-07-21 10:45:06 -04006 <groupId>org.onap.ccsdk.sli.core</groupId>
Dan Timoneyc4b09e52017-09-11 11:19:51 -04007 <version>0.1.2-SNAPSHOT</version>
Dan Timoney2a93b9d2017-07-18 19:40:01 -04008 </parent>
9 <artifactId>sli-installer</artifactId>
10 <name>SLI - Karaf Installer</name>
11 <packaging>pom</packaging>
12
13 <properties>
14 <application.name>sdnc-sli</application.name>
15 <features.boot>sdnc-sli</features.boot>
Dan Timoneyc95543b2017-07-21 10:45:06 -040016 <features.repositories>mvn:org.onap.ccsdk.sli.core/sli-features/${project.version}/xml/features</features.repositories>
Dan Timoney2a93b9d2017-07-18 19:40:01 -040017 <include.transitive.dependencies>false</include.transitive.dependencies>
18 </properties>
19
20 <dependencies>
21
22 <dependency>
Dan Timoneyc95543b2017-07-21 10:45:06 -040023 <groupId>org.onap.ccsdk.sli.core</groupId>
Dan Timoney2a93b9d2017-07-18 19:40:01 -040024 <artifactId>sli-features</artifactId>
25 <version>${project.version}</version>
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
36 <dependency>
Dan Timoneyc95543b2017-07-21 10:45:06 -040037 <groupId>org.onap.ccsdk.sli.core</groupId>
Dan Timoney2a93b9d2017-07-18 19:40:01 -040038 <artifactId>sli-common</artifactId>
39 <version>${project.version}</version>
40 </dependency>
41
42 <dependency>
Dan Timoneyc95543b2017-07-21 10:45:06 -040043 <groupId>org.onap.ccsdk.sli.core</groupId>
Dan Timoney2a93b9d2017-07-18 19:40:01 -040044 <artifactId>sli-provider</artifactId>
45 <version>${project.version}</version>
46 </dependency>
47
48 <dependency>
Dan Timoneyc95543b2017-07-21 10:45:06 -040049 <groupId>org.onap.ccsdk.sli.core</groupId>
Dan Timoney2a93b9d2017-07-18 19:40:01 -040050 <artifactId>sli-recording</artifactId>
51 <version>${project.version}</version>
52 </dependency>
53
54 </dependencies>
55
56 <build>
57 <plugins>
58 <plugin>
59 <artifactId>maven-assembly-plugin</artifactId>
60 <executions>
61 <execution>
62 <id>maven-repo-zip</id>
63 <goals>
64 <goal>single</goal>
65 </goals>
66 <phase>package</phase>
67 <configuration>
68 <attach>false</attach>
69 <finalName>stage/${application.name}-${project.version}</finalName>
70 <descriptors>
71 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
72 </descriptors>
73 <appendAssemblyId>false</appendAssemblyId>
74 </configuration>
75 </execution>
76 <execution>
77 <id>installer-zip</id>
78 <goals>
79 <goal>single</goal>
80 </goals>
81 <phase>package</phase>
82 <configuration>
83 <attach>true</attach>
84 <finalName>${application.name}-${project.version}-installer</finalName>
85 <descriptors>
86 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
87 </descriptors>
88 <appendAssemblyId>false</appendAssemblyId>
89 </configuration>
90 </execution>
91 </executions>
92 </plugin>
93 <plugin>
94 <groupId>org.apache.maven.plugins</groupId>
95 <artifactId>maven-dependency-plugin</artifactId>
96 <executions>
97 <execution>
98 <id>copy-dependencies</id>
99 <goals>
100 <goal>copy-dependencies</goal>
101 </goals>
102 <phase>prepare-package</phase>
103 <configuration>
104 <transitive>false</transitive>
105 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
106 <overWriteReleases>false</overWriteReleases>
107 <overWriteSnapshots>true</overWriteSnapshots>
108 <overWriteIfNewer>true</overWriteIfNewer>
109 <useRepositoryLayout>true</useRepositoryLayout>
110 <addParentPoms>false</addParentPoms>
111 <copyPom>false</copyPom>
Dan Timoneyc95543b2017-07-21 10:45:06 -0400112 <includeGroupIds>org.onap.ccsdk.sli</includeGroupIds>
Dan Timoney2a93b9d2017-07-18 19:40:01 -0400113 <excludeArtifactIds>dblib-provider</excludeArtifactIds>
114 <scope>provided</scope>
115 </configuration>
116 </execution>
117 </executions>
118 </plugin>
119 <plugin>
120 <artifactId>maven-resources-plugin</artifactId>
121 <version>2.6</version>
122 <executions>
123 <execution>
124 <id>copy-version</id>
125 <goals>
126 <goal>copy-resources</goal>
127 </goals><!-- here the phase you need -->
128 <phase>validate</phase>
129 <configuration>
130 <outputDirectory>${basedir}/target/stage</outputDirectory>
131 <resources>
132 <resource>
133 <directory>src/main/resources/scripts</directory>
134 <includes>
135 <include>install-feature.sh</include>
136 </includes>
137 <filtering>true</filtering>
138 </resource>
139 </resources>
140 </configuration>
141 </execution>
142
143 </executions>
144 </plugin>
145
146 </plugins>
147 </build>
148
149</project>