blob: 1b3b24a4504415f3a7b78fccc8949609ca9a43ca [file] [log] [blame]
Dan Timoney2a93b9d2017-07-18 19:40:01 -04001<?xml version="1.0" encoding="UTF-8"?>
Dan Timoneye8f6c962020-08-06 14:33:28 -04002<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">
Dan Timoneybd2f46f2020-06-17 08:08:23 -04003 <modelVersion>4.0.0</modelVersion>
Dan Timoney131cb462018-02-01 16:57:00 -05004
Dan Timoneybd2f46f2020-06-17 08:08:23 -04005 <parent>
6 <groupId>org.onap.ccsdk.parent</groupId>
7 <artifactId>odlparent-lite</artifactId>
Dan Timoney368939e2020-09-09 14:21:38 -04008 <version>2.1.0-SNAPSHOT</version>
Dan Timoneybd2f46f2020-06-17 08:08:23 -04009 <relativePath/>
10 </parent>
Dan Timoney131cb462018-02-01 16:57:00 -050011
Dan Timoneybd2f46f2020-06-17 08:08:23 -040012 <groupId>org.onap.ccsdk.sli.core</groupId>
13 <artifactId>sliapi-installer</artifactId>
Dan Timoney72e952a2020-11-25 13:50:31 -050014 <version>1.1.1-SNAPSHOT</version>
Dan Timoneybd2f46f2020-06-17 08:08:23 -040015 <packaging>pom</packaging>
Dan Timoney2a93b9d2017-07-18 19:40:01 -040016
Dan Timoneybd2f46f2020-06-17 08:08:23 -040017 <name>ccsdk-sli-core :: sliapi :: ${project.artifactId}</name>
Dan Timoney131cb462018-02-01 16:57:00 -050018
Dan Timoneybd2f46f2020-06-17 08:08:23 -040019 <properties>
20 <application.name>ccsdk-sliapi</application.name>
21 <features.boot>${application.name}</features.boot>
22 <features.repositories>mvn:org.onap.ccsdk.sli.core/${features.boot}/${project.version}/xml/features
23 </features.repositories>
24 <include.transitive.dependencies>false</include.transitive.dependencies>
25 </properties>
Dan Timoney99889c12020-03-05 11:48:38 -050026
Dan Timoneybd2f46f2020-06-17 08:08:23 -040027 <dependencyManagement>
28 <dependencies>
29 <dependency>
30 <groupId>org.onap.ccsdk.sli.core</groupId>
31 <artifactId>sli-common</artifactId>
32 <version>${project.version}</version>
33 </dependency>
34 <dependency>
35 <groupId>org.onap.ccsdk.sli.core</groupId>
36 <artifactId>sli-provider</artifactId>
37 <version>${project.version}</version>
38 </dependency>
39 <dependency>
40 <groupId>org.onap.ccsdk.sli.core</groupId>
41 <artifactId>dblib-provider</artifactId>
42 <version>${project.version}</version>
43 </dependency>
44 </dependencies>
45 </dependencyManagement>
46 <dependencies>
47 <dependency>
48 <groupId>${project.groupId}</groupId>
49 <artifactId>${application.name}</artifactId>
50 <version>${project.version}</version>
51 <type>xml</type>
52 <classifier>features</classifier>
53 <exclusions>
54 <exclusion>
55 <groupId>*</groupId>
56 <artifactId>*</artifactId>
57 </exclusion>
58 </exclusions>
59 </dependency>
60 <dependency>
61 <groupId>${project.groupId}</groupId>
62 <artifactId>sliapi-provider</artifactId>
63 <version>${project.version}</version>
64 </dependency>
65 <dependency>
66 <groupId>${project.groupId}</groupId>
67 <artifactId>sliapi-model-yang</artifactId>
68 <version>${project.version}</version>
69 </dependency>
70 </dependencies>
Dan Timoney2a93b9d2017-07-18 19:40:01 -040071
Dan Timoneybd2f46f2020-06-17 08:08:23 -040072 <build>
73 <plugins>
74 <plugin>
75 <artifactId>maven-assembly-plugin</artifactId>
76 <executions>
77 <execution>
78 <id>maven-repo-zip</id>
79 <goals>
80 <goal>single</goal>
81 </goals>
82 <phase>package</phase>
83 <configuration>
84 <attach>true</attach>
85 <finalName>stage/${application.name}-${project.version}</finalName>
86 <descriptors>
87 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
88 </descriptors>
89 <appendAssemblyId>true</appendAssemblyId>
90 </configuration>
91 </execution>
92 <execution>
93 <id>installer-zip</id>
94 <goals>
95 <goal>single</goal>
96 </goals>
97 <phase>package</phase>
98 <configuration>
99 <attach>true</attach>
100 <finalName>${application.name}-${project.version}-installer</finalName>
101 <descriptors>
102 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
103 </descriptors>
104 <appendAssemblyId>false</appendAssemblyId>
105 </configuration>
106 </execution>
107 </executions>
108 </plugin>
109 <plugin>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-dependency-plugin</artifactId>
112 <executions>
113 <execution>
114 <id>copy-dependencies</id>
115 <goals>
116 <goal>copy-dependencies</goal>
117 </goals>
118 <phase>prepare-package</phase>
119 <configuration>
120 <transitive>false</transitive>
121 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
122 <overWriteReleases>false</overWriteReleases>
123 <overWriteSnapshots>true</overWriteSnapshots>
124 <overWriteIfNewer>true</overWriteIfNewer>
125 <useRepositoryLayout>true</useRepositoryLayout>
126 <addParentPoms>false</addParentPoms>
127 <copyPom>false</copyPom>
128 <includeArtifactIds>sliapi-model,sliapi-provider,sliapi-model-yang,ccsdk-sliapi,features-sliapi
129 </includeArtifactIds>
130 <scope>provided</scope>
131 </configuration>
132 </execution>
133 </executions>
134 </plugin>
135 <plugin>
136 <artifactId>maven-resources-plugin</artifactId>
137 <version>2.6</version>
138 <executions>
139 <execution>
140 <id>copy-version</id>
141 <goals>
142 <goal>copy-resources</goal>
143 </goals><!-- here the phase you need -->
144 <phase>validate</phase>
145 <configuration>
146 <outputDirectory>${basedir}/target/stage</outputDirectory>
147 <resources>
148 <resource>
149 <directory>src/main/resources/scripts</directory>
150 <includes>
151 <include>install-feature.sh</include>
152 </includes>
153 <filtering>true</filtering>
154 </resource>
155 </resources>
156 </configuration>
157 </execution>
Dan Timoney2a93b9d2017-07-18 19:40:01 -0400158
Dan Timoneybd2f46f2020-06-17 08:08:23 -0400159 </executions>
160 </plugin>
Dan Timoney2a93b9d2017-07-18 19:40:01 -0400161
Dan Timoneybd2f46f2020-06-17 08:08:23 -0400162 </plugins>
163 </build>
Dan Timoney2a93b9d2017-07-18 19:40:01 -0400164</project>