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">
6 <artifactId>oom-certservice</artifactId>
7 <groupId>org.onap.oom.platform.cert-service</groupId>
8 <version>2.3.0-SNAPSHOT</version>
10 <modelVersion>4.0.0</modelVersion>
12 <artifactId>oom-certservice-k8s-external-provider</artifactId>
13 <packaging>mvn-golang</packaging>
16 <version.mvn-clean-plugin>3.1.0</version.mvn-clean-plugin>
17 <version.mvn-golang-wrapper-plugin>2.3.5</version.mvn-golang-wrapper-plugin>
18 <sonar.go.coverage.reportPaths>bin/coverage.out</sonar.go.coverage.reportPaths>
19 <sonar.exclusions>**/*_test.go, **/testdata/*</sonar.exclusions>
20 <sonar-go-plugin.version>1.1.1.2000</sonar-go-plugin.version>
26 <groupId>org.sonarsource.go</groupId>
27 <artifactId>sonar-go-plugin</artifactId>
28 <version>${sonar-go-plugin.version}</version>
33 <!--Changing standard Maven project source structure to make it Go compatible-->
34 <sourceDirectory>${basedir}</sourceDirectory>
35 <directory>${basedir}${file.separator}bin</directory>
37 <defaultGoal>clean package</defaultGoal>
41 <groupId>org.apache.maven.plugins</groupId>
42 <artifactId>maven-clean-plugin</artifactId>
43 <version>${version.mvn-clean-plugin}</version>
45 <followSymLinks>false</followSymLinks>
46 <excludeDefaultDirectories>true</excludeDefaultDirectories>
49 <directory>${basedir}${file.separator}bin</directory>
55 <groupId>com.igormaznitsa</groupId>
56 <artifactId>mvn-golang-wrapper</artifactId>
57 <version>${version.mvn-golang-wrapper-plugin}</version>
58 <extensions>true</extensions>
67 <flag>-coverprofile=bin/coverage.out</flag>
85 <id>docker-staging</id>
87 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
88 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
95 <activeByDefault>false</activeByDefault>
98 <os.detected.name>linux</os.detected.name>
99 <os.detected.arch>x86_64</os.detected.arch>
100 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
105 <groupId>io.fabric8</groupId>
106 <artifactId>docker-maven-plugin</artifactId>
107 <version>${docker-maven-plugin.version}</version>
110 <id>docker-build-image</id>
111 <phase>package</phase>
117 <id>docker-push-image</id>
118 <phase>deploy</phase>
125 <skipPush>${skipDockerPush}</skipPush>
126 <verbose>true</verbose>
127 <imagePullPolicy>IfNotPresent</imagePullPolicy>
130 <alias>${project.artifactId}</alias>
131 <name>${docker-image.namespace}/${docker-image.name}:${docker-image.tag.latest}
133 <registry>${docker-image.registry}</registry>
135 <dockerFileDir>${project.basedir}</dockerFileDir>
137 <tag>${project.version}-${maven.build.timestamp}Z</tag>