blob: ee632d434b28f1f497680ede9595cd08765034e5 [file] [log] [blame]
gauravd7d5ea02018-07-18 19:39:10 +05301<?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
5 <parent>
6 <groupId>org.onap.ccsdk.parent</groupId>
7 <artifactId>odlparent-lite</artifactId>
8 <version>1.1.0-SNAPSHOT</version>
9 </parent>
10
11 <groupId>org.onap.ccsdk.sli.plugins</groupId>
12 <artifactId>restconf-client-installer</artifactId>
13 <version>0.3.0-SNAPSHOT</version>
14 <packaging>pom</packaging>
15
16 <name>ccsdk-sli-plugins :: restconf-client :: ${project.artifactId}</name>
17
18 <properties>
19 <application.name>ccsdk-restconf-client</application.name>
20 <features.boot>${application.name}</features.boot>
21 <features.repositories>mvn:org.onap.ccsdk.sli.plugins/${features.boot}/${project.version}/xml/features</features.repositories>
22 <include.transitive.dependencies>false</include.transitive.dependencies>
23 </properties>
24
25 <dependencies>
26
27 <dependency>
28 <groupId>org.onap.ccsdk.sli.plugins</groupId>
29 <artifactId>${application.name}</artifactId>
30 <version>${project.version}</version>
31 <type>xml</type>
32 <classifier>features</classifier>
33 <exclusions>
34 <exclusion>
35 <groupId>*</groupId>
36 <artifactId>*</artifactId>
37 </exclusion>
38 </exclusions>
39 </dependency>
40
41 <dependency>
42 <groupId>org.onap.ccsdk.sli.plugins</groupId>
43 <artifactId>restconf-client-provider</artifactId>
44 <version>${project.version}</version>
45 </dependency>
46 <dependency>
47 <groupId>org.springframework</groupId>
48 <artifactId>spring-beans</artifactId>
49 </dependency>
50 <dependency>
51 <groupId>org.springframework</groupId>
52 <artifactId>spring-context</artifactId>
53 </dependency>
54 </dependencies>
55
56 <build>
57 <plugins>
58 <plugin>
59 <artifactId>maven-assembly-plugin</artifactId>
60 <version>2.6</version>
61 <executions>
62 <execution>
63 <id>maven-repo-zip</id>
64 <goals>
65 <goal>single</goal>
66 </goals>
67 <phase>package</phase>
68 <configuration>
69 <attach>true</attach>
70 <finalName>stage/${application.name}-${project.version}</finalName>
71 <descriptors>
72 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
73 </descriptors>
74 <appendAssemblyId>true</appendAssemblyId>
75 </configuration>
76 </execution>
77 <execution>
78 <id>installer-zip</id>
79 <goals>
80 <goal>single</goal>
81 </goals>
82 <phase>package</phase>
83 <configuration>
84 <attach>true</attach>
85 <finalName>${application.name}-${project.version}-installer</finalName>
86 <descriptors>
87 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
88 </descriptors>
89 <appendAssemblyId>false</appendAssemblyId>
90 </configuration>
91 </execution>
92 </executions>
93 </plugin>
94 <plugin>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-dependency-plugin</artifactId>
97 <executions>
98 <execution>
99 <id>copy-dependencies</id>
100 <goals>
101 <goal>copy-dependencies</goal>
102 </goals>
103 <phase>prepare-package</phase>
104 <configuration>
105 <transitive>false</transitive>
106 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
107 <overWriteReleases>false</overWriteReleases>
108 <overWriteSnapshots>true</overWriteSnapshots>
109 <overWriteIfNewer>true</overWriteIfNewer>
110 <useRepositoryLayout>true</useRepositoryLayout>
111 <addParentPoms>false</addParentPoms>
112 <copyPom>false</copyPom>
113 <excludeGroupIds>org.onap.ccsdk.sli.core</excludeGroupIds>
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</project>