3610b801c39d6be8e1901841c4163b6e736025b3
[sdnc/northbound.git] / optical-service / 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.5.1</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>org.onap.sdnc.northbound</groupId>
13     <artifactId>optical-service-installer</artifactId>
14     <version>1.8.0-SNAPSHOT</version>
15     <packaging>pom</packaging>
16
17     <name>sdnc-northbound :: optical-service :: ${project.artifactId}</name>
18
19     <properties>
20         <application.name>sdnc-optical-service</application.name>
21         <features.boot>${application.name}</features.boot>
22         <features.repositories>mvn:org.onap.sdnc.northbound/${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.sdnc.northbound</groupId>
30             <artifactId>${application.name}</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         <dependency>
42             <groupId>org.onap.sdnc.northbound</groupId>
43             <artifactId>optical-service-model</artifactId>
44             <version>${project.version}</version>
45         </dependency>
46
47         <dependency>
48             <groupId>org.onap.sdnc.northbound</groupId>
49             <artifactId>optical-service-provider</artifactId>
50             <version>${project.version}</version>
51         </dependency>
52
53
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                             <includeGroupIds>org.onap.sdnc.northbound</includeGroupIds>
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>