Michal Banka | 7f77049 | 2021-02-08 12:42:52 +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.oparent</groupId> |
| 9 | <artifactId>oparent</artifactId> |
| 10 | <version>3.2.0</version> |
| 11 | <relativePath/> |
| 12 | </parent> |
| 13 | |
| 14 | <groupId>org.onap.dcaegen2.platform</groupId> |
| 15 | <artifactId>ves-openapi-manager</artifactId> |
| 16 | <version>1.0.0</version> |
| 17 | <packaging>jar</packaging> |
| 18 | |
| 19 | <properties> |
| 20 | <sdc-distribution-client.version>1.4.2</sdc-distribution-client.version> |
| 21 | <junit-jupiter.version>5.2.0</junit-jupiter.version> |
| 22 | <maven.compiler.source>11</maven.compiler.source> |
| 23 | <maven.compiler.target>11</maven.compiler.target> |
| 24 | <junit5.version>5.2.0</junit5.version> |
| 25 | <platform.version>1.2.0</platform.version> |
| 26 | <surefire.version>${mockito-core.version}</surefire.version> |
| 27 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 28 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
| 29 | <hibernate-validator.version>6.1.6.Final</hibernate-validator.version> |
| 30 | <jackson-databind.version>2.9.4</jackson-databind.version> |
| 31 | <mockito-core.version>2.22.0</mockito-core.version> |
| 32 | <spring.version>2.4.2</spring.version> |
| 33 | <docker-maven-plugin.version>0.31.0</docker-maven-plugin.version> |
| 34 | <skipDockerPush>false</skipDockerPush> |
| 35 | <nexusproxy>https://nexus.onap.org</nexusproxy> |
| 36 | <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath> |
| 37 | <releaseNexusPath>/content/repositories/releases/</releaseNexusPath> |
| 38 | <stagingNexusPath>/content/repositories/staging/</stagingNexusPath> |
| 39 | <docker-image.namespace>onap</docker-image.namespace> |
| 40 | <docker-image.name.prefix>org.onap.dcaegen2.platform</docker-image.name.prefix> |
| 41 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format> |
| 42 | <maven-compiler-plugin.version>3.5.1</maven-compiler-plugin.version> |
| 43 | <bean-matchers.version>0.13</bean-matchers.version> |
| 44 | </properties> |
| 45 | |
| 46 | <build> |
| 47 | <finalName>ves-openapi-manager</finalName> |
| 48 | <plugins> |
| 49 | <plugin> |
| 50 | <groupId>org.apache.maven.plugins</groupId> |
| 51 | <artifactId>maven-surefire-plugin</artifactId> |
| 52 | <version>${surefire.version}</version> |
| 53 | <dependencies> |
| 54 | <dependency> |
| 55 | <groupId>org.junit.platform</groupId> |
| 56 | <artifactId>junit-platform-surefire-provider</artifactId> |
| 57 | <version>${platform.version}</version> |
| 58 | </dependency> |
| 59 | <dependency> |
| 60 | <groupId>org.junit.jupiter</groupId> |
| 61 | <artifactId>junit-jupiter-engine</artifactId> |
| 62 | <version>${junit5.version}</version> |
| 63 | </dependency> |
| 64 | </dependencies> |
| 65 | </plugin> |
| 66 | <plugin> |
| 67 | <groupId>org.springframework.boot</groupId> |
| 68 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 69 | <version>${spring.version}</version> |
| 70 | <executions> |
| 71 | <execution> |
| 72 | <goals> |
| 73 | <goal>repackage</goal> |
| 74 | </goals> |
| 75 | </execution> |
| 76 | </executions> |
| 77 | </plugin> |
| 78 | <plugin> |
| 79 | <groupId>org.apache.maven.plugins</groupId> |
| 80 | <artifactId>maven-compiler-plugin</artifactId> |
| 81 | <version>${maven-compiler-plugin.version}</version> |
| 82 | <configuration> |
| 83 | <source>${maven.compiler.source}</source> |
| 84 | <target>${maven.compiler.target}</target> |
| 85 | </configuration> |
| 86 | </plugin> |
| 87 | </plugins> |
| 88 | </build> |
| 89 | <profiles> |
| 90 | <profile> |
| 91 | <id>docker</id> |
| 92 | <activation> |
| 93 | <activeByDefault>false</activeByDefault> |
| 94 | </activation> |
| 95 | <properties> |
| 96 | <os.detected.name>linux</os.detected.name> |
| 97 | <os.detected.arch>x86_64</os.detected.arch> |
| 98 | <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier> |
| 99 | </properties> |
| 100 | <build> |
| 101 | <plugins> |
| 102 | <plugin> |
| 103 | <groupId>io.fabric8</groupId> |
| 104 | <artifactId>docker-maven-plugin</artifactId> |
| 105 | <version>${docker-maven-plugin.version}</version> |
| 106 | <executions> |
| 107 | <execution> |
| 108 | <id>docker-build-image</id> |
| 109 | <phase>package</phase> |
| 110 | <goals> |
| 111 | <goal>build</goal> |
| 112 | </goals> |
| 113 | </execution> |
| 114 | <execution> |
| 115 | <id>docker-push-image</id> |
| 116 | <phase>deploy</phase> |
| 117 | <goals> |
| 118 | <goal>push</goal> |
| 119 | </goals> |
| 120 | </execution> |
| 121 | </executions> |
| 122 | <configuration> |
| 123 | <skipPush>${skipDockerPush}</skipPush> |
| 124 | <verbose>true</verbose> |
| 125 | <imagePullPolicy>IfNotPresent</imagePullPolicy> |
| 126 | <images> |
| 127 | <image> |
| 128 | <alias>${project.artifactId}</alias> |
| 129 | <name>${docker-image.namespace}/${docker-image.name.prefix}.${project.artifactId}</name> |
| 130 | <registry>${onap.nexus.dockerregistry.daily}</registry> |
| 131 | <build> |
| 132 | <dockerFileDir>${project.basedir}</dockerFileDir> |
| 133 | <tags> |
| 134 | <tag>${project.version}-STAGE-${maven.build.timestamp}Z</tag> |
| 135 | </tags> |
| 136 | </build> |
| 137 | </image> |
| 138 | </images> |
| 139 | </configuration> |
| 140 | </plugin> |
| 141 | </plugins> |
| 142 | </build> |
| 143 | </profile> |
| 144 | </profiles> |
| 145 | |
| 146 | <dependencyManagement> |
| 147 | <dependencies> |
| 148 | <dependency> |
| 149 | <!-- Import dependency management from Spring Boot --> |
| 150 | <groupId>org.springframework.boot</groupId> |
| 151 | <artifactId>spring-boot-dependencies</artifactId> |
| 152 | <version>${spring.version}</version> |
| 153 | <type>pom</type> |
| 154 | <scope>import</scope> |
| 155 | </dependency> |
| 156 | </dependencies> |
| 157 | </dependencyManagement> |
| 158 | <dependencies> |
| 159 | <dependency> |
| 160 | <groupId>org.springframework.boot</groupId> |
| 161 | <artifactId>spring-boot-starter-web</artifactId> |
| 162 | </dependency> |
| 163 | <dependency> |
| 164 | <groupId>org.springframework.boot</groupId> |
| 165 | <artifactId>spring-boot-configuration-processor</artifactId> |
| 166 | <optional>true</optional> |
| 167 | </dependency> |
| 168 | <dependency> |
| 169 | <groupId>org.hibernate</groupId> |
| 170 | <artifactId>hibernate-validator</artifactId> |
| 171 | <version>${hibernate-validator.version}</version> |
| 172 | </dependency> |
| 173 | <dependency> |
| 174 | <groupId>org.projectlombok</groupId> |
| 175 | <artifactId>lombok</artifactId> |
| 176 | <optional>true</optional> |
| 177 | </dependency> |
| 178 | <dependency> |
| 179 | <groupId>org.onap.sdc.sdc-distribution-client</groupId> |
| 180 | <artifactId>sdc-distribution-client</artifactId> |
| 181 | <version>${sdc-distribution-client.version}</version> |
| 182 | </dependency> |
| 183 | <dependency> |
| 184 | <groupId>com.fasterxml.jackson.core</groupId> |
| 185 | <artifactId>jackson-databind</artifactId> |
| 186 | <version>${jackson-databind.version}</version> |
| 187 | </dependency> |
| 188 | <dependency> |
| 189 | <groupId>com.fasterxml.jackson.dataformat</groupId> |
| 190 | <artifactId>jackson-dataformat-yaml</artifactId> |
| 191 | <version>${jackson-databind.version}</version> |
| 192 | </dependency> |
| 193 | <dependency> |
| 194 | <groupId>com.fasterxml.jackson.datatype</groupId> |
| 195 | <artifactId>jackson-datatype-jsr310</artifactId> |
| 196 | <version>${jackson-databind.version}</version> |
| 197 | </dependency> |
| 198 | |
| 199 | <dependency> |
| 200 | <groupId>org.springframework.boot</groupId> |
| 201 | <artifactId>spring-boot-starter-test</artifactId> |
| 202 | <scope>test</scope> |
| 203 | </dependency> |
| 204 | <dependency> |
| 205 | <groupId>org.mockito</groupId> |
| 206 | <artifactId>mockito-core</artifactId> |
| 207 | <version>${mockito-core.version}</version> |
| 208 | <scope>test</scope> |
| 209 | </dependency> |
| 210 | <dependency> |
| 211 | <groupId>com.google.code.bean-matchers</groupId> |
| 212 | <artifactId>bean-matchers</artifactId> |
| 213 | <version>${bean-matchers.version}</version> |
| 214 | <scope>test</scope> |
| 215 | </dependency> |
| 216 | </dependencies> |
| 217 | |
| 218 | <distributionManagement> |
| 219 | <repository> |
| 220 | <id>ecomp-releases</id> |
| 221 | <name>Integration simulators Release Repository</name> |
| 222 | <url>${nexusproxy}${releaseNexusPath}</url> |
| 223 | </repository> |
| 224 | <snapshotRepository> |
| 225 | <id>ecomp-snapshots</id> |
| 226 | <name>Integration simulators Snapshot Repository</name> |
| 227 | <url>${nexusproxy}${snapshotNexusPath}</url> |
| 228 | </snapshotRepository> |
| 229 | <site> |
| 230 | <id>ecomp-site</id> |
| 231 | <url>dav:${nexusproxy}${sitePath}</url> |
| 232 | </site> |
| 233 | </distributionManagement> |
| 234 | |
| 235 | </project> |