blob: cdf07f1e0481199235118e9ceaed03b32f227100 [file] [log] [blame]
herbert5fed19f2020-03-11 18:38:19 +01001<?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>
herbertbc81a302020-03-12 14:45:05 +010031 <repo-oran>mvn:org.o-ran-sc.oam.features.devicemanager/devicemanager-oran-ru-fh-feature/${o-ran-sc.features.version}/xml/features</repo-oran>
32 <repo-xran>mvn:org.o-ran-sc.oam.features.devicemanager/devicemanager-xran-ru-fh-feature/${o-ran-sc.features.version}/xml/features</repo-xran>
33 <features.repo>${repo-oran},${repo-xran}</features.repo>
34 <features.boot>sdnr-wt-feature-aggregator,devicemanager-oran-ru-fh-feature,devicemanager-xran-ru-fh-feature</features.boot>
herbert5fed19f2020-03-11 18:38:19 +010035 <platform-logic-installer.version>${project.version}</platform-logic-installer.version>
36 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
37 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
38 <opendaylight.root>opt/opendaylight</opendaylight.root>
39 <docker.push.phase>deploy</docker.push.phase>
40 <docker.verbose>true</docker.verbose>
41
42 </properties>
43
44 <dependencies>
45 <dependency>
46 <groupId>org.o-ran-sc.oam.features.devicemanager</groupId>
47 <artifactId>devicemanager-oran-ru-fh-installer</artifactId>
48 <version>${o-ran-sc.features.version}</version>
49 <type>zip</type>
50 <classifier>repo</classifier>
51 </dependency>
herbertbc81a302020-03-12 14:45:05 +010052 <dependency>
53 <groupId>org.o-ran-sc.oam.features.devicemanager</groupId>
54 <artifactId>devicemanager-xran-ru-fh-installer</artifactId>
55 <version>${o-ran-sc.features.version}</version>
56 <type>zip</type>
57 <classifier>repo</classifier>
58 </dependency>
herbert5fed19f2020-03-11 18:38:19 +010059 </dependencies>
60
61 <build>
62 <plugins>
63 <plugin>
64 <groupId>org.codehaus.groovy.maven</groupId>
65 <artifactId>gmaven-plugin</artifactId>
66 <version>1.0</version>
67 <executions>
68 <execution>
69 <phase>validate</phase>
70 <goals>
71 <goal>execute</goal>
72 </goals>
73 <configuration>
74 <source>${basedir}/src/main/scripts/TagVersion.groovy</source>
75 </configuration>
76 </execution>
77 </executions>
78 </plugin>
79 <plugin>
80 <artifactId>maven-resources-plugin</artifactId>
81 <version>2.6</version>
82 <executions>
83 <execution>
84 <id>copy-dockerfile</id>
85 <goals>
86 <goal>copy-resources</goal>
87 </goals> <!-- here the phase you need -->
88 <phase>validate</phase>
89 <configuration>
90 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
91 <resources>
92 <resource>
93 <directory>src/main/docker</directory>
94 <includes>
95 <include>Dockerfile</include>
96 </includes>
97 <filtering>true</filtering>
98 </resource>
99 </resources>
100 </configuration>
101 </execution>
102 </executions>
103 </plugin>
104 <plugin>
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-dependency-plugin</artifactId>
107 <executions>
108 <execution>
109 <id>unpack features</id>
110 <phase>generate-sources</phase>
111 <goals>
112 <goal>unpack-dependencies</goal>
113 </goals>
114 <configuration>
115 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
116 <excludeTransitive>true</excludeTransitive>
117 <overWriteReleases>false</overWriteReleases>
118 <overWriteSnapshots>true</overWriteSnapshots>
119 <overWriteIfNewer>true</overWriteIfNewer>
120 </configuration>
121 </execution>
122 </executions>
123 </plugin>
124 <plugin>
125 <groupId>io.fabric8</groupId>
126 <artifactId>docker-maven-plugin</artifactId>
127 <version>0.28.0</version>
128 <inherited>false</inherited>
129 <configuration>
130 <images>
131 <image>
132 <name>${image.name}</name>
133 <build>
134 <cleanup>try</cleanup>
135 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
136 <tags>
137 <tag>${project.docker.latestminortag.version}</tag>
138 <tag>${project.docker.latestfulltag.version}</tag>
139 <tag>${project.docker.latesttagtimestamp.version}</tag>
140 </tags>
141 </build>
142 </image>
143 </images>
144 </configuration>
145 <executions>
146 <execution>
147 <id>generate-images</id>
148 <phase>package</phase>
149 <goals>
150 <goal>build</goal>
151 </goals>
152 </execution>
153 <execution>
154 <id>push-images</id>
155 <phase>${docker.push.phase}</phase>
156 <goals>
157 <goal>build</goal>
158 <goal>push</goal>
159 </goals>
160 </execution>
161 </executions>
162 </plugin>
163 </plugins>
164 <extensions>
165 <extension><!-- this extension is required by wagon in order to pass the proxy -->
166 <groupId>org.apache.maven.wagon</groupId>
167 <artifactId>wagon-http-lightweight</artifactId>
168 <version>2.2</version>
169 </extension>
170 </extensions>
171 </build>
172</project>