[CLIENT] Change certService client to use comma as SANS delimiter
[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.0-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   </properties>
19
20   <build>
21     <!--Changing standard Maven project source structure to make it Go compatible-->
22     <sourceDirectory>${basedir}</sourceDirectory>
23     <directory>${basedir}${file.separator}bin</directory>
24
25     <defaultGoal>clean package</defaultGoal>
26
27     <plugins>
28       <plugin>
29         <groupId>org.apache.maven.plugins</groupId>
30         <artifactId>maven-clean-plugin</artifactId>
31         <version>${version.mvn-clean-plugin}</version>
32         <configuration>
33           <followSymLinks>false</followSymLinks>
34           <excludeDefaultDirectories>true</excludeDefaultDirectories>
35           <filesets>
36             <fileset>
37               <directory>${basedir}${file.separator}bin</directory>
38             </fileset>
39           </filesets>
40         </configuration>
41       </plugin>
42       <plugin>
43         <groupId>com.igormaznitsa</groupId>
44         <artifactId>mvn-golang-wrapper</artifactId>
45         <version>${version.mvn-golang-wrapper-plugin}</version>
46         <extensions>true</extensions>
47         <executions>
48           <execution>
49             <id>install</id>
50             <goals>
51               <goal>install</goal>
52             </goals>
53           </execution>
54         </executions>
55       </plugin>
56     </plugins>
57   </build>
58
59   <profiles>
60
61     <profile>
62       <id>docker-staging</id>
63       <properties>
64         <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
65         <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
66       </properties>
67     </profile>
68
69     <profile>
70       <id>docker</id>
71       <activation>
72         <activeByDefault>false</activeByDefault>
73       </activation>
74       <properties>
75         <os.detected.name>linux</os.detected.name>
76         <os.detected.arch>x86_64</os.detected.arch>
77         <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
78       </properties>
79       <build>
80         <plugins>
81           <plugin>
82             <groupId>io.fabric8</groupId>
83             <artifactId>docker-maven-plugin</artifactId>
84             <version>${docker-maven-plugin.version}</version>
85             <executions>
86               <execution>
87                 <id>docker-build-image</id>
88                 <phase>package</phase>
89                 <goals>
90                   <goal>build</goal>
91                 </goals>
92               </execution>
93               <execution>
94                 <id>docker-push-image</id>
95                 <phase>deploy</phase>
96                 <goals>
97                   <goal>push</goal>
98                 </goals>
99               </execution>
100             </executions>
101             <configuration>
102               <skipPush>${skipDockerPush}</skipPush>
103               <verbose>true</verbose>
104               <imagePullPolicy>IfNotPresent</imagePullPolicy>
105               <images>
106                 <image>
107                   <alias>${project.artifactId}</alias>
108                   <name>${docker-image.namespace}/${docker-image.name}:${docker-image.tag.latest}
109                   </name>
110                   <registry>${docker-image.registry}</registry>
111                   <build>
112                     <dockerFileDir>${project.basedir}</dockerFileDir>
113                     <tags>
114                       <tag>${project.version}-${maven.build.timestamp}Z</tag>
115                     </tags>
116                   </build>
117                 </image>
118               </images>
119             </configuration>
120           </plugin>
121         </plugins>
122       </build>
123     </profile>
124   </profiles>
125
126
127 </project>