1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5 <modelVersion>4.0.0</modelVersion>
8 <groupId>org.onap.ccsdk.parent</groupId>
9 <artifactId>odlparent-lite</artifactId>
10 <version>1.4.3</version>
14 <groupId>org.o-ran-sc.oam.distribution</groupId>
15 <artifactId>nonrtric-o1-controller</artifactId>
16 <version>0.6.3-SNAPSHOT</version>
17 <packaging>pom</packaging>
19 <name>sdnc-distribution :: sdnc :: nonrtric-o1-controller</name>
20 <description>Creates nonrtric-o1-controller from ONAP SDNC</description>
22 <name>O-RAN-SC/OAM</name>
26 <image.version>1.7.5-STAGING-latest</image.version>
27 <!-- <base.image.repo>nexus3.onap.org:10001/onap/sdnc-image:${image.version}</base.image.repo> -->
28 <base.image.repo>nexus3.onap.org:10001/onap/sdnc-image:${image.version}</base.image.repo>
29 <image.name>o-ran-sc/nonrtric-o1-controller</image.name>
30 <ccsdk.project.version>${project.version}</ccsdk.project.version>
31 <ccsdk.build.timestamp>${maven.build.timestamp}</ccsdk.build.timestamp>
32 <ccsdk.features.version>${project.version}</ccsdk.features.version>
33 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
34 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
35 <opendaylight.root>opt/opendaylight</opendaylight.root>
36 <docker.push.phase>deploy</docker.push.phase>
37 <docker.verbose>true</docker.verbose>
38 <ansible.gpg.key>93C4A3FD7BB9C367</ansible.gpg.key>
40 <!-- odl.repolist.features and odl.boot.features.all are used by dockerfile. Contains all repos and features to start -->
41 <sdnr.wt.repo>mvn:org.onap.ccsdk.features.sdnr.wt/sdnr-wt-feature-aggregator/${project.version}/xml/features</sdnr.wt.repo>
42 <odl.repolist.features>${sdnr.wt.repo}</odl.repolist.features>
44 <odl.boot.features.odl>odl-mdsal-all,odl-mdsal-apidocs,odl-daexim-all</odl.boot.features.odl>
45 <ccsdk.odl.features>odl-netconf-topology,odl-netconf-connector,sdnr-wt-feature-aggregator</ccsdk.odl.features>
46 <odl.boot.features.all>${odl.boot.features.odl}</odl.boot.features.all>
52 <!-- this extension is required by wagon in order to pass the proxy -->
53 <groupId>org.apache.maven.wagon</groupId>
54 <artifactId>wagon-http-lightweight</artifactId>
55 <version>2.2</version>
60 <groupId>org.codehaus.groovy.maven</groupId>
61 <artifactId>gmaven-plugin</artifactId>
62 <version>1.0</version>
65 <phase>validate</phase>
70 <source>${basedir}/src/main/scripts/TagVersion.groovy</source>
76 <artifactId>maven-resources-plugin</artifactId>
77 <version>2.6</version>
80 <id>copy-dockerfile</id>
82 <goal>copy-resources</goal>
83 </goals><!-- here the phase you need -->
84 <phase>validate</phase>
86 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
89 <directory>src/main/docker</directory>
91 <include>Dockerfile</include>
93 <filtering>true</filtering>
101 <goal>copy-resources</goal>
102 </goals><!-- here the phase you need -->
103 <phase>validate</phase>
105 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
108 <directory>src/main/scripts</directory>
110 <include>*.sh</include>
112 <filtering>true</filtering>
120 <groupId>org.apache.maven.plugins</groupId>
121 <artifactId>maven-dependency-plugin</artifactId>
124 <id>unpack features</id>
125 <phase>generate-sources</phase>
127 <goal>unpack-dependencies</goal>
130 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
131 <excludeTransitive>true</excludeTransitive>
132 <overWriteReleases>false</overWriteReleases>
133 <overWriteSnapshots>true</overWriteSnapshots>
134 <overWriteIfNewer>true</overWriteIfNewer>
138 <!-- <id>unpack dgs</id> -->
139 <!-- <phase>generate-sources</phase> -->
141 <!-- <goal>unpack</goal> -->
143 <!-- <configuration> -->
144 <!-- <outputDirectory>${basedir}/target/docker-stage/opt/onap/ccsdk</outputDirectory> -->
145 <!-- <artifactItems> -->
146 <!-- <artifactItem> -->
147 <!-- <groupId>${project.groupId}</groupId> -->
148 <!-- <artifactId>platform-logic-installer</artifactId> -->
149 <!-- <version>${project.version}</version> -->
150 <!-- <type>zip</type> -->
151 <!-- </artifactItem> -->
152 <!-- </artifactItems> -->
153 <!-- </configuration> -->
154 <!-- </execution> -->
159 <groupId>io.fabric8</groupId>
160 <artifactId>docker-maven-plugin</artifactId>
161 <version>0.31.0</version>
162 <inherited>false</inherited>
166 <name>${image.name}</name>
168 <cleanup>try</cleanup>
169 <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir>
170 <!-- <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile> -->
172 <tag>${project.docker.latestminortag.version}</tag>
173 <tag>${project.docker.latestfulltag.version}</tag>
174 <tag>${project.docker.latesttagtimestamp.version}</tag>
175 <tag>${image.version}</tag>
183 <id>generate-images</id>
184 <phase>package</phase>
192 <phase>${docker.push.phase}</phase>