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>
6 <groupId>org.onap.sdnc.oam</groupId>
7 <artifactId>installation</artifactId>
8 <version>2.6.1-SNAPSHOT</version>
11 <artifactId>installation-sdnc</artifactId>
12 <packaging>pom</packaging>
14 <name>sdnc-oam :: installation :: ${project.artifactId}</name>
15 <description>Creates SDN Controller Docker container</description>
21 <image.name>onap/sdnc-aaf-image</image.name>
22 <standalone.image.name>onap/sdnc-image</standalone.image.name>
23 <ccsdk.docker.version>${ccsdk.docker.odlsli.alpine.version}</ccsdk.docker.version>
24 <sdnc.keystore>org.onap.sdnc.p12</sdnc.keystore>
25 <sdnc.keypass><![CDATA[;:G58,7ZhqOSI:7^oZCY[9Dv]]></sdnc.keypass>
26 <sdnc.secureport>8443</sdnc.secureport>
28 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
29 <sdnc.build.timestamp>${maven.build.timestamp}</sdnc.build.timestamp>
31 <docker.buildArg.https_proxy>${https_proxy}</docker.buildArg.https_proxy>
32 <docker.autoCreateCustomNetworks>true</docker.autoCreateCustomNetworks>
33 <odl.shiro.version>0.17.11</odl.shiro.version>
35 <!-- SDNR Features Boot -->
36 <sdnr.features.boot>ccsdk-features-all</sdnr.features.boot>
38 mvn:org.onap.ccsdk.oran/a1-adapter-northbound/${ccsdk.oran.a1adapter.version}/xml/features,\
39 mvn:org.onap.ccsdk.features/ccsdk-features-all/${ccsdk.features.version}/xml/features,\
40 mvn:org.onap.ccsdk.features.sdnr.northbound/sdnr-northbound-all/${ccsdk.features.version}/xml/features,\
41 mvn:org.onap.ccsdk.features.sdnr.wt/sdnr-wt-feature-aggregator/${ccsdk.features.version}/xml/features,\
42 mvn:org.onap.ccsdk.features.sdnr.wt/sdnr-wt-feature-aggregator-devicemanager/${ccsdk.features.version}/xml/features,\
43 mvn:org.onap.ccsdk.features.sdnr.wt/sdnr-wt-feature-aggregator-devicemanager-base/${ccsdk.features.version}/xml/features,\
44 mvn:org.onap.ccsdk.features.sdnr.wt/sdnr-wt-feature-aggregator-oauth/${ccsdk.features.version}/xml/features
47 <!-- SDNC Features Boot -->
48 <sdnc.features.boot>sdnc-northbound-all,odl-restconf-nb-bierman02-</sdnc.features.boot>
50 mvn:org.onap.sdnc.northbound/sdnc-northbound-all/${sdnc.northbound.version}/xml/features, \
51 mvn:org.onap.ccsdk.odl-legacy.netconf/odl-restconf-nb-bierman02/${ccsdk.bierman.api.version}/xml/features
56 <!-- Biermann RESTCONF northbound API -->
58 <groupId>org.onap.ccsdk.odl-legacy.netconf</groupId>
59 <artifactId>restconf-nb-bierman02-installer</artifactId>
60 <version>${ccsdk.bierman.api.version}</version>
62 <classifier>repo</classifier>
65 <groupId>org.onap.sdnc.northbound</groupId>
66 <artifactId>generic-resource-api-installer</artifactId>
67 <version>${sdnc.northbound.version}</version>
69 <classifier>repo</classifier>
72 <groupId>org.onap.sdnc.northbound</groupId>
73 <artifactId>optical-service-installer</artifactId>
74 <version>${sdnc.northbound.version}</version>
76 <classifier>repo</classifier>
79 <groupId>org.onap.sdnc.northbound</groupId>
80 <artifactId>vnftools-installer</artifactId>
81 <version>${sdnc.northbound.version}</version>
83 <classifier>repo</classifier>
86 <groupId>org.onap.sdnc.northbound</groupId>
87 <artifactId>sdnc-northbound-features-installer</artifactId>
88 <version>${sdnc.northbound.version}</version>
90 <classifier>repo</classifier>
92 <!-- SDNR Related Features : Start -->
94 <groupId>org.onap.ccsdk.features</groupId>
95 <artifactId>features-installer</artifactId>
96 <version>${ccsdk.features.version}</version>
98 <classifier>repo</classifier>
101 <groupId>org.onap.ccsdk.features.sdnr.wt</groupId>
102 <artifactId>sdnr-wt-feature-aggregator-installer</artifactId>
103 <version>${ccsdk.features.version}</version>
105 <classifier>repo</classifier>
108 <groupId>org.onap.ccsdk.features</groupId>
109 <artifactId>aafshiro-installer</artifactId>
110 <version>${ccsdk.features.version}</version>
112 <classifier>repo</classifier>
115 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
116 <artifactId>sdnr-northbound-features-installer</artifactId>
117 <version>${ccsdk.features.version}</version>
119 <classifier>repo</classifier>
122 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
123 <artifactId>oofpcipoc-installer</artifactId>
124 <version>${ccsdk.features.version}</version>
126 <classifier>repo</classifier>
129 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
130 <artifactId>CMNotify-installer</artifactId>
131 <version>${ccsdk.features.version}</version>
133 <classifier>repo</classifier>
136 <groupId>org.onap.ccsdk.features.sdnr.northbound</groupId>
137 <artifactId>ranSlice-installer</artifactId>
138 <version>${ccsdk.features.version}</version>
140 <classifier>repo</classifier>
143 <groupId>org.onap.ccsdk.oran</groupId>
144 <artifactId>a1-adapter-northbound-installer</artifactId>
145 <version>${ccsdk.oran.a1adapter.version}</version>
147 <classifier>repo</classifier>
150 <groupId>org.onap.ccsdk.oran</groupId>
151 <artifactId>a1-adapter-installer</artifactId>
152 <version>${ccsdk.oran.a1adapter.version}</version>
154 <classifier>repo</classifier>
156 <!-- SDNR Related Features : End -->
162 <groupId>org.codehaus.gmaven</groupId>
163 <artifactId>groovy-maven-plugin</artifactId>
164 <version>2.1.1</version>
167 <phase>validate</phase>
172 <source>${basedir}/../TagVersion.groovy</source>
179 <groupId>io.fabric8</groupId>
180 <artifactId>docker-maven-plugin</artifactId>
181 <version>0.34.0</version>
182 <inherited>false</inherited>
186 <name>${image.name}</name>
188 <cleanup>try</cleanup>
189 <noCache>true</noCache>
190 <contextDir>${basedir}/target/docker-stage</contextDir>
191 <dockerFile>Dockerfile</dockerFile>
196 <tag>${project.docker.latestminortag.version}</tag>
197 <tag>${project.docker.latestfulltag.version}</tag>
198 <tag>${project.docker.latesttagtimestamp.version}</tag>
203 <name>${standalone.image.name}</name>
205 <cleanup>try</cleanup>
206 <noCache>true</noCache>
207 <contextDir>${basedir}/target/docker-stage</contextDir>
208 <dockerFile>Dockerfile</dockerFile>
213 <tag>${project.docker.latestminortag.version}</tag>
214 <tag>${project.docker.latestfulltag.version}</tag>
215 <tag>${project.docker.latesttagtimestamp.version}</tag>
220 <verbose>${docker.verbose}</verbose>
221 <skipPush>${docker.skip.push}</skipPush>
225 <id>build-push-images</id>
234 <artifactId>maven-resources-plugin</artifactId>
235 <version>2.6</version>
238 <id>copy-dockerfile</id>
240 <goal>copy-resources</goal>
242 <!-- here the phase you need -->
243 <phase>validate</phase>
245 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
248 <directory>src/main/docker</directory>
250 <include>Dockerfile</include>
252 <filtering>true</filtering>
258 <id>copy-scripts</id>
260 <goal>copy-resources</goal>
262 <!-- here the phase you need -->
263 <phase>validate</phase>
265 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory>
268 <directory>src/main/scripts</directory>
270 <include>*.py</include>
271 <include>*.sh</include>
273 <filtering>true</filtering>
279 <id>copy-tarballs</id>
281 <goal>copy-resources</goal>
283 <!-- here the phase you need -->
284 <phase>validate</phase>
286 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
289 <directory>src/main/resources</directory>
291 <include>idmlight.db.mv.db</include>
292 <include>truststoreONAPall.jks</include>
293 <include>aaa-app-config.xml</include>
295 <filtering>false</filtering>
303 <goal>copy-resources</goal>
305 <!-- here the phase you need -->
306 <phase>validate</phase>
308 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data</outputDirectory>
311 <directory>src/main/resources</directory>
313 <include>*.dump</include>
314 <include>oauth-aaa-app-config.xml</include>
316 <filtering>false</filtering>
322 <id>copy-properties</id>
324 <goal>copy-resources</goal>
326 <!-- here the phase you need -->
327 <phase>validate</phase>
329 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/properties</outputDirectory>
332 <directory>../src/main/properties</directory>
334 <include>*.properties</include>
335 <include>*.props</include>
336 <include>*.csv</include>
338 <filtering>false</filtering>
344 <id>copy-keystores</id>
346 <goal>copy-resources</goal>
348 <!-- here the phase you need -->
349 <phase>validate</phase>
351 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/data/stores</outputDirectory>
354 <directory>../src/main/stores</directory>
356 <include>*.jks</include>
357 <include>*.keyfile</include>
358 <include>*.p12</include>
360 <filtering>false</filtering>
368 <groupId>org.apache.maven.plugins</groupId>
369 <artifactId>maven-dependency-plugin</artifactId>
370 <version>3.0.2</version>
373 <id>unpack-sdnc-features</id>
374 <phase>generate-sources</phase>
376 <goal>unpack-dependencies</goal>
379 <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
380 <excludeTransitive>true</excludeTransitive>
384 <id>unpack-platform-logic</id>
385 <phase>generate-sources</phase>
390 <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc</outputDirectory>
393 <groupId>${project.groupId}</groupId>
394 <artifactId>platform-logic-installer</artifactId>
395 <version>${project.version}</version>
402 <id>copy-with-alternalte-repo-2</id>
403 <phase>generate-sources</phase>
410 <groupId>com.highstreet-technologies.aaa</groupId>
411 <artifactId>aaa-authn-api</artifactId>
412 <version>0.17.8</version>
413 <outputDirectory>${project.build.directory}/docker-stage/system/org/opendaylight/aaa/aaa-authn-api/${odl.shiro.version}</outputDirectory>
414 <destFileName>aaa-authn-api-${odl.shiro.version}.jar</destFileName>
415 <excludes>*</excludes>
418 <overWriteReleases>false</overWriteReleases>
419 <overWriteSnapshots>true</overWriteSnapshots>
420 <overWriteIfNewer>true</overWriteIfNewer>
426 <groupId>org.apache.maven.plugins</groupId>
427 <artifactId>maven-antrun-plugin</artifactId>
428 <version>1.8</version>
431 <id>change-shell-permissions</id>
432 <phase>process-sources</phase>
435 <chmod dir="${basedir}/target/docker-stage/opt/onap/sdnc" perm="+x" includes="**/*.sh"/>
445 <groupId>org.apache.maven.plugins</groupId>
446 <artifactId>maven-failsafe-plugin</artifactId>
450 <goal>integration-test</goal>
456 <skipITs>false</skipITs>
457 <environmentVariables>
458 <SDNC_PORT>${sdnc.port}</SDNC_PORT>
459 </environmentVariables>