blob: cddcf6dd74dd53881bd9f3ad81a52dd64f70ba29 [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>sliapi</artifactId>
Dan Timoneyc95543b2017-07-21 10:45:06 -04006 <groupId>org.onap.ccsdk.sli.core</groupId>
Jessica Wagantall9cf0a1e2017-11-17 16:51:44 -08007 <version>0.2.0-SNAPSHOT</version>
Dan Timoney2a93b9d2017-07-18 19:40:01 -04008 </parent>
9 <artifactId>sliapi-installer</artifactId>
10 <packaging>pom</packaging>
11
12 <properties>
13 <application.name>sdnc-sliapi</application.name>
14 <features.boot>sdnc-sliapi</features.boot>
Dan Timoneyc95543b2017-07-21 10:45:06 -040015 <features.repositories>mvn:org.onap.ccsdk.sli.core/sliapi-features/${project.version}/xml/features</features.repositories>
Dan Timoney2a93b9d2017-07-18 19:40:01 -040016 <include.transitive.dependencies>false</include.transitive.dependencies>
17 </properties>
18
19 <dependencies>
20
21 <dependency>
Dan Timoneyc95543b2017-07-21 10:45:06 -040022 <groupId>org.onap.ccsdk.sli.core</groupId>
Dan Timoney2a93b9d2017-07-18 19:40:01 -040023 <artifactId>sliapi-features</artifactId>
24 <version>${project.version}</version>
25 <classifier>features</classifier>
26 <type>xml</type>
27 <exclusions>
28 <exclusion>
29 <groupId>*</groupId>
30 <artifactId>*</artifactId>
31 </exclusion>
32 </exclusions>
33 </dependency>
34
35 <dependency>
Dan Timoneyc95543b2017-07-21 10:45:06 -040036 <groupId>org.onap.ccsdk.sli.core</groupId>
Dan Timoney2a93b9d2017-07-18 19:40:01 -040037 <artifactId>sliapi-provider</artifactId>
38 <version>${project.version}</version>
39 </dependency>
40
41
42 </dependencies>
43
44 <build>
45 <plugins>
46 <plugin>
47 <artifactId>maven-assembly-plugin</artifactId>
48 <executions>
49 <execution>
50 <id>maven-repo-zip</id>
51 <goals>
52 <goal>single</goal>
53 </goals>
54 <phase>package</phase>
55 <configuration>
56 <attach>false</attach>
57 <finalName>stage/${application.name}-${project.version}</finalName>
58 <descriptors>
59 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
60 </descriptors>
61 <appendAssemblyId>false</appendAssemblyId>
62 </configuration>
63 </execution>
64 <execution>
65 <id>installer-zip</id>
66 <goals>
67 <goal>single</goal>
68 </goals>
69 <phase>package</phase>
70 <configuration>
71 <attach>true</attach>
72 <finalName>${application.name}-${project.version}-installer</finalName>
73 <descriptors>
74 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
75 </descriptors>
76 <appendAssemblyId>false</appendAssemblyId>
77 </configuration>
78 </execution>
79 </executions>
80 </plugin>
81 <plugin>
82 <groupId>org.apache.maven.plugins</groupId>
83 <artifactId>maven-dependency-plugin</artifactId>
84 <executions>
85 <execution>
86 <id>copy-dependencies</id>
87 <goals>
88 <goal>copy-dependencies</goal>
89 </goals>
90 <phase>prepare-package</phase>
91 <configuration>
92 <transitive>false</transitive>
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>
Dan Timoneyc95543b2017-07-21 10:45:06 -0400100 <includeGroupIds>org.onap.ccsdk.sli.core</includeGroupIds>
Dan Timoney2a93b9d2017-07-18 19:40:01 -0400101 <excludeArtifactIds>sli-common,sli-provider,dblib-provider</excludeArtifactIds>
102 <scope>provided</scope>
103 </configuration>
104 </execution>
105 </executions>
106 </plugin>
107 <plugin>
108 <artifactId>maven-resources-plugin</artifactId>
109 <version>2.6</version>
110 <executions>
111 <execution>
112 <id>copy-version</id>
113 <goals>
114 <goal>copy-resources</goal>
115 </goals><!-- here the phase you need -->
116 <phase>validate</phase>
117 <configuration>
118 <outputDirectory>${basedir}/target/stage</outputDirectory>
119 <resources>
120 <resource>
121 <directory>src/main/resources/scripts</directory>
122 <includes>
123 <include>install-feature.sh</include>
124 </includes>
125 <filtering>true</filtering>
126 </resource>
127 </resources>
128 </configuration>
129 </execution>
130
131 </executions>
132 </plugin>
133
134 </plugins>
135 </build>
136
137</project>