Add distribution nonrtric
[oam.git] / distribution / nonrtric-o1-controller-frankfurt / 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.2-SNAPSHOT</version>
9     <relativePath />
10   </parent>
11
12   <groupId>org.o-ran-sc.oam.distribution</groupId>
13   <artifactId>nonrtric-o1-controller</artifactId>
14   <version>1.8.0-SNAPSHOT</version>
15   <packaging>pom</packaging>
16
17   <name>sdnc-distribution :: o-ran-sc :: nonrtric-o1-controller</name>
18
19   <description>nonrtric-o1-controller based on ONAP SDNC</description>
20
21   <organization>
22     <name>O-RAN-SC/OAM</name>
23   </organization>
24
25   <properties>
26     <base.image.repo>nexus3.onap.org:10001/onap/sdnc-image:1.8.0-STAGING-20200225T124813Z</base.image.repo>
27     <image.name>o-ran-sc/${project.artifactId}</image.name>
28     <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
29     <o-ran-sc.project.version>${project.version}</o-ran-sc.project.version>
30     <o-ran-sc.features.version>0.7.1-SNAPSHOT</o-ran-sc.features.version>
31     <features.repo>mvn:org.o-ran-sc.oam.features.devicemanager/devicemanager-oran-ru-fh-feature/${o-ran-sc.features.version}/xml/features, mvn:org.o-ran-sc.oam.features.devicemanager/devicemanager-xran-ru-fh-feature/${o-ran-sc.features.version}/xml/features</features.repo>
32     <features.boot>sdnr-wt-feature-aggregator,devicemanager-oran-ru-fh-feature</features.boot>
33     <platform-logic-installer.version>${project.version}</platform-logic-installer.version>
34     <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
35     <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
36     <opendaylight.root>opt/opendaylight</opendaylight.root>
37     <docker.push.phase>deploy</docker.push.phase>
38     <docker.verbose>true</docker.verbose>
39
40   </properties>
41
42   <dependencies>
43     <dependency>
44       <groupId>org.o-ran-sc.oam.features.devicemanager</groupId>
45       <artifactId>devicemanager-oran-ru-fh-installer</artifactId>
46       <version>${o-ran-sc.features.version}</version>
47       <type>zip</type>
48       <classifier>repo</classifier>
49     </dependency>
50   </dependencies>
51
52   <build>
53     <plugins>
54       <plugin>
55         <groupId>org.codehaus.groovy.maven</groupId>
56         <artifactId>gmaven-plugin</artifactId>
57         <version>1.0</version>
58         <executions>
59           <execution>
60             <phase>validate</phase>
61             <goals>
62               <goal>execute</goal>
63             </goals>
64             <configuration>
65               <source>${basedir}/src/main/scripts/TagVersion.groovy</source>
66             </configuration>
67           </execution>
68         </executions>
69       </plugin>
70       <plugin>
71         <artifactId>maven-resources-plugin</artifactId>
72         <version>2.6</version>
73         <executions>
74           <execution>
75             <id>copy-dockerfile</id>
76             <goals>
77               <goal>copy-resources</goal>
78             </goals>            <!-- here the phase you need -->
79             <phase>validate</phase>
80             <configuration>
81               <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
82               <resources>
83                 <resource>
84                   <directory>src/main/docker</directory>
85                   <includes>
86                     <include>Dockerfile</include>
87                   </includes>
88                   <filtering>true</filtering>
89                 </resource>
90               </resources>
91             </configuration>
92           </execution>
93         </executions>
94       </plugin>
95       <plugin>
96         <groupId>org.apache.maven.plugins</groupId>
97         <artifactId>maven-dependency-plugin</artifactId>
98         <executions>
99           <execution>
100             <id>unpack features</id>
101             <phase>generate-sources</phase>
102             <goals>
103               <goal>unpack-dependencies</goal>
104             </goals>
105             <configuration>
106               <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
107               <excludeTransitive>true</excludeTransitive>
108               <overWriteReleases>false</overWriteReleases>
109               <overWriteSnapshots>true</overWriteSnapshots>
110               <overWriteIfNewer>true</overWriteIfNewer>
111             </configuration>
112           </execution>
113         </executions>
114       </plugin>
115       <plugin>
116         <groupId>io.fabric8</groupId>
117         <artifactId>docker-maven-plugin</artifactId>
118         <version>0.28.0</version>
119         <inherited>false</inherited>
120         <configuration>
121           <images>
122             <image>
123               <name>${image.name}</name>
124               <build>
125                 <cleanup>try</cleanup>
126                 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
127                 <tags>
128                   <tag>${project.docker.latestminortag.version}</tag>
129                   <tag>${project.docker.latestfulltag.version}</tag>
130                   <tag>${project.docker.latesttagtimestamp.version}</tag>
131                 </tags>
132               </build>
133             </image>
134           </images>
135         </configuration>
136         <executions>
137           <execution>
138             <id>generate-images</id>
139             <phase>package</phase>
140             <goals>
141               <goal>build</goal>
142             </goals>
143           </execution>
144           <execution>
145             <id>push-images</id>
146             <phase>${docker.push.phase}</phase>
147             <goals>
148               <goal>build</goal>
149               <goal>push</goal>
150             </goals>
151           </execution>
152         </executions>
153       </plugin>
154     </plugins>
155     <extensions>
156       <extension><!-- this extension is required by wagon in order to pass the proxy -->
157         <groupId>org.apache.maven.wagon</groupId>
158         <artifactId>wagon-http-lightweight</artifactId>
159         <version>2.2</version>
160       </extension>
161     </extensions>
162   </build>
163 </project>