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