Release version 2.4.0 sdnc/northbound artifacts
[sdnc/northbound.git] / generic-resource-api / 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>2.4.2</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>org.onap.sdnc.northbound</groupId>
13     <artifactId>generic-resource-api-installer</artifactId>
14     <version>2.4.1-SNAPSHOT</version>
15     <packaging>pom</packaging>
16
17     <name>sdnc-northbound :: generic-resource-api :: ${project.artifactId}</name>
18
19     <properties>
20         <application.name>sdnc-generic-resource-api</application.name>
21         <features.boot>${application.name}</features.boot>
22         <features.repositories>mvn:org.onap.sdnc.northbound/${application.name}/${project.version}/xml/features
23         </features.repositories>
24         <include.transitive.dependencies>false</include.transitive.dependencies>
25     </properties>
26
27     <dependencies>
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>generic-resource-api-provider</artifactId>
44             <version>${project.version}</version>
45         </dependency>
46     </dependencies>
47
48     <build>
49         <plugins>
50             <plugin>
51                 <artifactId>maven-assembly-plugin</artifactId>
52                 <version>2.6</version>
53                 <executions>
54                     <execution>
55                         <id>maven-repo-zip</id>
56                         <goals>
57                             <goal>single</goal>
58                         </goals>
59                         <phase>package</phase>
60                         <configuration>
61                             <attach>true</attach>
62                             <finalName>stage/${application.name}-${project.version}</finalName>
63                             <descriptors>
64                                 <descriptor>src/assembly/assemble_mvnrepo_zip.xml</descriptor>
65                             </descriptors>
66                         </configuration>
67                     </execution>
68                     <execution>
69                         <id>installer-zip</id>
70                         <goals>
71                             <goal>single</goal>
72                         </goals>
73                         <phase>package</phase>
74                         <configuration>
75                             <attach>true</attach>
76                             <finalName>${application.name}-${project.version}-installer</finalName>
77                             <descriptors>
78                                 <descriptor>src/assembly/assemble_installer_zip.xml</descriptor>
79                             </descriptors>
80                             <appendAssemblyId>false</appendAssemblyId>
81                         </configuration>
82                     </execution>
83                 </executions>
84             </plugin>
85             <plugin>
86                 <groupId>org.apache.maven.plugins</groupId>
87                 <artifactId>maven-dependency-plugin</artifactId>
88                 <executions>
89                     <execution>
90                         <id>copy-dependencies</id>
91                         <goals>
92                             <goal>copy-dependencies</goal>
93                         </goals>
94                         <phase>prepare-package</phase>
95                         <configuration>
96                             <transitive>false</transitive>
97                             <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
98                             <overWriteReleases>false</overWriteReleases>
99                             <overWriteSnapshots>true</overWriteSnapshots>
100                             <overWriteIfNewer>true</overWriteIfNewer>
101                             <useRepositoryLayout>true</useRepositoryLayout>
102                             <addParentPoms>false</addParentPoms>
103                             <copyPom>false</copyPom>
104                             <includeGroupIds>org.onap.sdnc.northbound</includeGroupIds>
105                             <scope>provided</scope>
106                         </configuration>
107                     </execution>
108                 </executions>
109             </plugin>
110             <plugin>
111                 <artifactId>maven-resources-plugin</artifactId>
112                 <version>2.6</version>
113                 <executions>
114                     <execution>
115                         <id>copy-version</id>
116                         <goals>
117                             <goal>copy-resources</goal>
118                         </goals><!-- here the phase you need -->
119                         <phase>validate</phase>
120                         <configuration>
121                             <outputDirectory>${basedir}/target/stage</outputDirectory>
122                             <resources>
123                                 <resource>
124                                     <directory>src/main/resources/scripts</directory>
125                                     <includes>
126                                         <include>install-feature.sh</include>
127                                     </includes>
128                                     <filtering>true</filtering>
129                                 </resource>
130                             </resources>
131                         </configuration>
132                     </execution>
133                 </executions>
134             </plugin>
135         </plugins>
136     </build>
137 </project>