demx8as6 | 2e0b65a | 2019-11-19 14:16:43 +0100 | [diff] [blame] | 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> |
| 6 | |
| 7 | <parent> |
| 8 | <groupId>org.onap.ccsdk.parent</groupId> |
| 9 | <artifactId>odlparent-lite</artifactId> |
| 10 | <version>1.4.3</version> |
| 11 | <relativePath /> |
| 12 | </parent> |
| 13 | |
| 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> |
| 18 | |
| 19 | <name>sdnc-distribution :: sdnc :: nonrtric-o1-controller</name> |
| 20 | <description>Creates nonrtric-o1-controller from ONAP SDNC</description> |
| 21 | <organization> |
| 22 | <name>O-RAN-SC/OAM</name> |
| 23 | </organization> |
| 24 | |
| 25 | <properties> |
| 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> |
| 39 | |
| 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> |
| 43 | |
| 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> |
| 47 | </properties> |
| 48 | |
| 49 | <build> |
| 50 | <extensions> |
| 51 | <extension> |
| 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> |
| 56 | </extension> |
| 57 | </extensions> |
| 58 | <plugins> |
| 59 | <plugin> |
| 60 | <groupId>org.codehaus.groovy.maven</groupId> |
| 61 | <artifactId>gmaven-plugin</artifactId> |
| 62 | <version>1.0</version> |
| 63 | <executions> |
| 64 | <execution> |
| 65 | <phase>validate</phase> |
| 66 | <goals> |
| 67 | <goal>execute</goal> |
| 68 | </goals> |
| 69 | <configuration> |
| 70 | <source>${basedir}/src/main/scripts/TagVersion.groovy</source> |
| 71 | </configuration> |
| 72 | </execution> |
| 73 | </executions> |
| 74 | </plugin> |
| 75 | <plugin> |
| 76 | <artifactId>maven-resources-plugin</artifactId> |
| 77 | <version>2.6</version> |
| 78 | <executions> |
| 79 | <execution> |
| 80 | <id>copy-dockerfile</id> |
| 81 | <goals> |
| 82 | <goal>copy-resources</goal> |
| 83 | </goals><!-- here the phase you need --> |
| 84 | <phase>validate</phase> |
| 85 | <configuration> |
| 86 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 87 | <resources> |
| 88 | <resource> |
| 89 | <directory>src/main/docker</directory> |
| 90 | <includes> |
| 91 | <include>Dockerfile</include> |
| 92 | </includes> |
| 93 | <filtering>true</filtering> |
| 94 | </resource> |
| 95 | </resources> |
| 96 | </configuration> |
| 97 | </execution> |
| 98 | <execution> |
| 99 | <id>copy-scripts</id> |
| 100 | <goals> |
| 101 | <goal>copy-resources</goal> |
| 102 | </goals><!-- here the phase you need --> |
| 103 | <phase>validate</phase> |
| 104 | <configuration> |
| 105 | <outputDirectory>${basedir}/target/docker-stage/opt/onap/sdnc/bin</outputDirectory> |
| 106 | <resources> |
| 107 | <resource> |
| 108 | <directory>src/main/scripts</directory> |
| 109 | <includes> |
| 110 | <include>*.sh</include> |
| 111 | </includes> |
| 112 | <filtering>true</filtering> |
| 113 | </resource> |
| 114 | </resources> |
| 115 | </configuration> |
| 116 | </execution> |
| 117 | </executions> |
| 118 | </plugin> |
| 119 | <plugin> |
| 120 | <groupId>org.apache.maven.plugins</groupId> |
| 121 | <artifactId>maven-dependency-plugin</artifactId> |
| 122 | <executions> |
| 123 | <execution> |
| 124 | <id>unpack features</id> |
| 125 | <phase>generate-sources</phase> |
| 126 | <goals> |
| 127 | <goal>unpack-dependencies</goal> |
| 128 | </goals> |
| 129 | <configuration> |
| 130 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory> |
| 131 | <excludeTransitive>true</excludeTransitive> |
| 132 | <overWriteReleases>false</overWriteReleases> |
| 133 | <overWriteSnapshots>true</overWriteSnapshots> |
| 134 | <overWriteIfNewer>true</overWriteIfNewer> |
| 135 | </configuration> |
| 136 | </execution> |
| 137 | <!-- <execution> --> |
| 138 | <!-- <id>unpack dgs</id> --> |
| 139 | <!-- <phase>generate-sources</phase> --> |
| 140 | <!-- <goals> --> |
| 141 | <!-- <goal>unpack</goal> --> |
| 142 | <!-- </goals> --> |
| 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> --> |
| 155 | </executions> |
| 156 | </plugin> |
| 157 | |
| 158 | <plugin> |
| 159 | <groupId>io.fabric8</groupId> |
| 160 | <artifactId>docker-maven-plugin</artifactId> |
| 161 | <version>0.31.0</version> |
| 162 | <inherited>false</inherited> |
| 163 | <configuration> |
| 164 | <images> |
| 165 | <image> |
| 166 | <name>${image.name}</name> |
| 167 | <build> |
| 168 | <cleanup>try</cleanup> |
| 169 | <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> |
| 170 | <!-- <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile> --> |
| 171 | <tags> |
| 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> |
| 176 | </tags> |
| 177 | </build> |
| 178 | </image> |
| 179 | </images> |
| 180 | </configuration> |
| 181 | <executions> |
| 182 | <execution> |
| 183 | <id>generate-images</id> |
| 184 | <phase>package</phase> |
| 185 | <goals> |
| 186 | <goal>build</goal> |
| 187 | </goals> |
| 188 | </execution> |
| 189 | |
| 190 | <execution> |
| 191 | <id>push-images</id> |
| 192 | <phase>${docker.push.phase}</phase> |
| 193 | <goals> |
| 194 | <goal>build</goal> |
| 195 | <goal>push</goal> |
| 196 | </goals> |
| 197 | </execution> |
| 198 | </executions> |
| 199 | </plugin> |
| 200 | </plugins> |
| 201 | </build> |
| 202 | </project> |