1 <?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>
6 <groupId>org.onap.ccsdk.parent</groupId>
7 <artifactId>odlparent-lite</artifactId>
8 <version>2.1.0-SNAPSHOT</version>
12 <groupId>org.onap.ccsdk.sli.core</groupId>
13 <artifactId>sliapi-installer</artifactId>
14 <version>1.1.1-SNAPSHOT</version>
15 <packaging>pom</packaging>
17 <name>ccsdk-sli-core :: sliapi :: ${project.artifactId}</name>
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>
27 <dependencyManagement>
30 <groupId>org.onap.ccsdk.sli.core</groupId>
31 <artifactId>sli-common</artifactId>
32 <version>${project.version}</version>
35 <groupId>org.onap.ccsdk.sli.core</groupId>
36 <artifactId>sli-provider</artifactId>
37 <version>${project.version}</version>
40 <groupId>org.onap.ccsdk.sli.core</groupId>
41 <artifactId>dblib-provider</artifactId>
42 <version>${project.version}</version>
45 </dependencyManagement>
48 <groupId>${project.groupId}</groupId>
49 <artifactId>${application.name}</artifactId>
50 <version>${project.version}</version>
52 <classifier>features</classifier>
56 <artifactId>*</artifactId>
61 <groupId>${project.groupId}</groupId>
62 <artifactId>sliapi-provider</artifactId>
63 <version>${project.version}</version>
66 <groupId>${project.groupId}</groupId>
67 <artifactId>sliapi-model-yang</artifactId>
68 <version>${project.version}</version>
75 <artifactId>maven-assembly-plugin</artifactId>
78 <id>maven-repo-zip</id>
82 <phase>package</phase>
85 <finalName>stage/${application.name}-${project.version}</finalName>
87 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
89 <appendAssemblyId>true</appendAssemblyId>
93 <id>installer-zip</id>
97 <phase>package</phase>
100 <finalName>${application.name}-${project.version}-installer</finalName>
102 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
104 <appendAssemblyId>false</appendAssemblyId>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-dependency-plugin</artifactId>
114 <id>copy-dependencies</id>
116 <goal>copy-dependencies</goal>
118 <phase>prepare-package</phase>
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>
136 <artifactId>maven-resources-plugin</artifactId>
137 <version>2.6</version>
140 <id>copy-version</id>
142 <goal>copy-resources</goal>
143 </goals><!-- here the phase you need -->
144 <phase>validate</phase>
146 <outputDirectory>${basedir}/target/stage</outputDirectory>
149 <directory>src/main/resources/scripts</directory>
151 <include>install-feature.sh</include>
153 <filtering>true</filtering>