[OOM-CERT-SERVICE] Align implementation with RFC4210
[oom/platform/cert-service.git] / certServiceK8sExternalProvider / pom.xml
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   <parent>
6     <artifactId>oom-certservice</artifactId>
7     <groupId>org.onap.oom.platform.cert-service</groupId>
8     <version>2.3.2-SNAPSHOT</version>
9   </parent>
10   <modelVersion>4.0.0</modelVersion>
11
12   <artifactId>oom-certservice-k8s-external-provider</artifactId>
13   <packaging>mvn-golang</packaging>
14
15   <properties>
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>
21   </properties>
22
23
24   <dependencies>
25     <dependency>
26       <groupId>org.sonarsource.go</groupId>
27       <artifactId>sonar-go-plugin</artifactId>
28       <version>${sonar-go-plugin.version}</version>
29     </dependency>
30   </dependencies>
31
32   <build>
33     <!--Changing standard Maven project source structure to make it Go compatible-->
34     <sourceDirectory>${basedir}</sourceDirectory>
35     <directory>${basedir}${file.separator}bin</directory>
36
37     <defaultGoal>clean package</defaultGoal>
38
39     <plugins>
40       <plugin>
41         <groupId>org.apache.maven.plugins</groupId>
42         <artifactId>maven-clean-plugin</artifactId>
43         <version>${version.mvn-clean-plugin}</version>
44         <configuration>
45           <followSymLinks>false</followSymLinks>
46           <excludeDefaultDirectories>true</excludeDefaultDirectories>
47           <filesets>
48             <fileset>
49               <directory>${basedir}${file.separator}bin</directory>
50             </fileset>
51           </filesets>
52         </configuration>
53       </plugin>
54       <plugin>
55         <groupId>com.igormaznitsa</groupId>
56         <artifactId>mvn-golang-wrapper</artifactId>
57         <version>${version.mvn-golang-wrapper-plugin}</version>
58         <extensions>true</extensions>
59         <executions>
60           <execution>
61             <id>coverage</id>
62             <goals>
63               <goal>test</goal>
64             </goals>
65             <configuration>
66               <testFlags>
67                 <flag>-coverprofile=bin/coverage.out</flag>
68               </testFlags>
69             </configuration>
70           </execution>
71           <execution>
72             <id>install</id>
73             <goals>
74               <goal>install</goal>
75             </goals>
76           </execution>
77         </executions>
78       </plugin>
79     </plugins>
80   </build>
81
82   <profiles>
83
84     <profile>
85       <id>docker-staging</id>
86       <properties>
87         <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
88         <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
89       </properties>
90     </profile>
91
92     <profile>
93       <id>docker</id>
94       <activation>
95         <activeByDefault>false</activeByDefault>
96       </activation>
97       <properties>
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>
101       </properties>
102       <build>
103         <plugins>
104           <plugin>
105             <groupId>io.fabric8</groupId>
106             <artifactId>docker-maven-plugin</artifactId>
107             <version>${docker-maven-plugin.version}</version>
108             <executions>
109               <execution>
110                 <id>docker-build-image</id>
111                 <phase>package</phase>
112                 <goals>
113                   <goal>build</goal>
114                 </goals>
115               </execution>
116               <execution>
117                 <id>docker-push-image</id>
118                 <phase>deploy</phase>
119                 <goals>
120                   <goal>push</goal>
121                 </goals>
122               </execution>
123             </executions>
124             <configuration>
125               <skipPush>${skipDockerPush}</skipPush>
126               <verbose>true</verbose>
127               <imagePullPolicy>IfNotPresent</imagePullPolicy>
128               <images>
129                 <image>
130                   <alias>${project.artifactId}</alias>
131                   <name>${docker-image.namespace}/${docker-image.name}:${docker-image.tag.latest}
132                   </name>
133                   <registry>${docker-image.registry}</registry>
134                   <build>
135                     <dockerFileDir>${project.basedir}</dockerFileDir>
136                     <tags>
137                       <tag>${project.version}-${maven.build.timestamp}Z</tag>
138                     </tags>
139                   </build>
140                 </image>
141               </images>
142             </configuration>
143           </plugin>
144         </plugins>
145       </build>
146     </profile>
147   </profiles>
148
149
150 </project>