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