Release ccsdk/sli/adaptors
[ccsdk/sli/adaptors.git] / resource-assignment / installer / pom.xml
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>
4
5     <parent>
6         <groupId>org.onap.ccsdk.parent</groupId>
7         <artifactId>odlparent-lite</artifactId>
8         <version>1.3.4</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>org.onap.ccsdk.sli.adaptors</groupId>
13     <artifactId>resource-assignment-installer</artifactId>
14     <version>0.5.3</version>
15     <packaging>pom</packaging>
16
17     <name>ccsdk-sli-adaptors :: resource-assignment :: ${project.artifactId}</name>
18
19     <properties>
20         <application.name>ccsdk-resource-assignment</application.name>
21         <features.boot>${application.name}</features.boot>
22         <features.repositories>mvn:org.onap.ccsdk.sli.adaptors/${features.boot}/${project.version}/xml/features</features.repositories>
23         <include.transitive.dependencies>false</include.transitive.dependencies>
24     </properties>
25
26     <dependencies>
27
28         <dependency>
29             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
30             <artifactId>ccsdk-resource-assignment</artifactId>
31             <version>${project.version}</version>
32             <type>xml</type>
33             <classifier>features</classifier>
34             <exclusions>
35                 <exclusion>
36                     <groupId>*</groupId>
37                     <artifactId>*</artifactId>
38                 </exclusion>
39             </exclusions>
40         </dependency>
41
42         <dependency>
43             <groupId>org.onap.ccsdk.sli.adaptors</groupId>
44             <artifactId>resource-assignment-provider</artifactId>
45             <version>${project.version}</version>
46         </dependency>
47
48         <dependency>
49             <groupId>org.springframework</groupId>
50             <artifactId>spring-beans</artifactId>
51             <version>${spring.version}</version>
52         </dependency>
53         <dependency>
54             <groupId>org.springframework</groupId>
55             <artifactId>spring-context</artifactId>
56             <version>${spring.version}</version>
57         </dependency>
58         <dependency>
59             <groupId>org.springframework</groupId>
60             <artifactId>spring-jdbc</artifactId>
61             <version>${spring.version}</version>
62         </dependency>
63     </dependencies>
64
65     <build>
66         <plugins>
67             <plugin>
68                 <artifactId>maven-assembly-plugin</artifactId>
69                 <version>2.6</version>
70                 <executions>
71                     <execution>
72                         <id>maven-repo-zip</id>
73                         <goals>
74                             <goal>single</goal>
75                         </goals>
76                         <phase>package</phase>
77                         <configuration>
78                             <attach>true</attach>
79                             <finalName>stage/${application.name}-${project.version}</finalName>
80                             <descriptors>
81                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
82                             </descriptors>
83                             <appendAssemblyId>true</appendAssemblyId>
84                         </configuration>
85                     </execution>
86                     <execution>
87                         <id>installer-zip</id>
88                         <goals>
89                             <goal>single</goal>
90                         </goals>
91                         <phase>package</phase>
92                         <configuration>
93                             <attach>true</attach>
94                             <finalName>${application.name}-${project.version}-installer</finalName>
95                             <descriptors>
96                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
97                             </descriptors>
98                             <appendAssemblyId>false</appendAssemblyId>
99                         </configuration>
100                     </execution>
101                 </executions>
102             </plugin>
103             <plugin>
104                 <groupId>org.apache.maven.plugins</groupId>
105                 <artifactId>maven-dependency-plugin</artifactId>
106                 <executions>
107                     <execution>
108                         <id>copy-dependencies</id>
109                         <goals>
110                             <goal>copy-dependencies</goal>
111                         </goals>
112                         <phase>prepare-package</phase>
113                         <configuration>
114                             <transitive>false</transitive>
115                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
116                             <overWriteReleases>false</overWriteReleases>
117                             <overWriteSnapshots>true</overWriteSnapshots>
118                             <overWriteIfNewer>true</overWriteIfNewer>
119                             <useRepositoryLayout>true</useRepositoryLayout>
120                             <addParentPoms>false</addParentPoms>
121                             <copyPom>false</copyPom>
122                             <excludeGroupIds>org.onap.ccsdk.sli.core,org.opendaylight</excludeGroupIds>
123                             <scope>provided</scope>
124                         </configuration>
125                     </execution>
126                 </executions>
127             </plugin>
128             <plugin>
129                 <artifactId>maven-resources-plugin</artifactId>
130                 <version>2.6</version>
131                 <executions>
132                     <execution>
133                         <id>copy-version</id>
134                         <goals>
135                             <goal>copy-resources</goal>
136                         </goals><!-- here the phase you need -->
137                         <phase>validate</phase>
138                         <configuration>
139                             <outputDirectory>${basedir}/target/stage</outputDirectory>
140                             <resources>
141                                 <resource>
142                                     <directory>src/main/resources/scripts</directory>
143                                     <includes>
144                                         <include>install-feature.sh</include>
145                                     </includes>
146                                     <filtering>true</filtering>
147                                 </resource>
148                             </resources>
149                         </configuration>
150                     </execution>
151
152                 </executions>
153             </plugin>
154
155         </plugins>
156     </build>
157 </project>