d78eacd6d1f87e84fc33abe1bf40dc38346d328b
[oom/platform/cert-service.git] / certServiceClient / 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>aaf-certservice</artifactId>
7         <groupId>org.onap.aaf.certservice</groupId>
8         <version>1.0.0-SNAPSHOT</version>
9     </parent>
10     <modelVersion>4.0.0</modelVersion>
11
12     <artifactId>aaf-certservice-client</artifactId>
13     <version>1.0.0-SNAPSHOT</version>
14     <name>aaf-certservice-client</name>
15     <description>AAF Certification Service Api Client</description>
16     <packaging>jar</packaging>
17
18     <build>
19         <plugins>
20             <plugin>
21                 <groupId>org.apache.maven.plugins</groupId>
22                 <artifactId>maven-surefire-plugin</artifactId>
23             </plugin>
24         </plugins>
25     </build>
26
27     <profiles>
28         <profile>
29             <id>docker-staging</id>
30             <properties>
31                 <docker.tag>${project.version}-STAGING-${maven.build.timestamp}</docker.tag>
32                 <docker.latest.tag>${project.version}-STAGING-latest</docker.latest.tag>
33             </properties>
34         </profile>
35
36         <profile>
37             <id>docker</id>
38             <activation>
39                 <activeByDefault>false</activeByDefault>
40             </activation>
41             <properties>
42                 <os.detected.name>linux</os.detected.name>
43                 <os.detected.arch>x86_64</os.detected.arch>
44                 <os.detected.classifier>${os.detected.name}-${os.detected.arch}</os.detected.classifier>
45             </properties>
46             <build>
47                 <plugins>
48                     <plugin>
49                         <groupId>io.fabric8</groupId>
50                         <artifactId>docker-maven-plugin</artifactId>
51                         <version>${docker-maven-plugin.version}</version>
52                         <executions>
53                             <execution>
54                                 <id>docker-build-image</id>
55                                 <phase>package</phase>
56                                 <goals>
57                                     <goal>build</goal>
58                                 </goals>
59                             </execution>
60                             <execution>
61                                 <id>docker-push-image</id>
62                                 <phase>deploy</phase>
63                                 <goals>
64                                     <goal>push</goal>
65                                 </goals>
66                             </execution>
67                         </executions>
68                         <configuration>
69                             <skipPush>${skipDockerPush}</skipPush>
70                             <verbose>true</verbose>
71                             <imagePullPolicy>IfNotPresent</imagePullPolicy>
72                             <images>
73                                 <image>
74                                     <alias>${project.artifactId}</alias>
75                                     <name>${docker-image.namespace}/${docker-image.name}
76                                     </name>
77                                     <registry>${docker-image.registry}</registry>
78                                     <build>
79                                         <dockerFileDir>${project.basedir}</dockerFileDir>
80                                         <tags>
81                                             <tag>${project.version}-${maven.build.timestamp}Z</tag>
82                                             <tag>${project.version}</tag>
83                                             <tag>${docker-image.latest}</tag>
84                                         </tags>
85                                     </build>
86                                 </image>
87                             </images>
88                         </configuration>
89                     </plugin>
90                     <plugin>
91                         <groupId>org.apache.maven.plugins</groupId>
92                         <artifactId>maven-shade-plugin</artifactId>
93                         <version>3.2.2</version>
94                         <executions>
95                             <execution>
96                                 <phase>package</phase>
97                                 <goals>
98                                     <goal>shade</goal>
99                                 </goals>
100                                 <configuration>
101                                     <transformers>
102                                         <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
103                                             <mainClass>org.onap.aaf.certservice.client.CertServiceClientApp</mainClass>
104                                         </transformer>
105                                     </transformers>
106                                 </configuration>
107                             </execution>
108                         </executions>
109                     </plugin>
110                 </plugins>
111             </build>
112         </profile>
113     </profiles>
114
115     <distributionManagement>
116         <repository>
117             <id>ecomp-releases</id>
118             <name>AAF Release Repository</name>
119             <url>${nexusproxy}${releaseNexusPath}</url>
120         </repository>
121         <snapshotRepository>
122             <id>ecomp-snapshots</id>
123             <name>AAF Snapshot Repository</name>
124             <url>${nexusproxy}${snapshotNexusPath}</url>
125         </snapshotRepository>
126         <site>
127             <id>ecomp-site</id>
128             <url>dav:${nexusproxy}${sitePath}</url>
129         </site>
130     </distributionManagement>
131
132     <dependencies>
133         <dependency>
134             <groupId>org.assertj</groupId>
135             <artifactId>assertj-core</artifactId>
136         </dependency>
137         <dependency>
138             <groupId>org.slf4j</groupId>
139             <artifactId>slf4j-api</artifactId>
140         </dependency>
141         <dependency>
142             <groupId>org.junit.jupiter</groupId>
143             <artifactId>junit-jupiter-engine</artifactId>
144         </dependency>
145         <dependency>
146             <groupId>org.junit.jupiter</groupId>
147             <artifactId>junit-jupiter-api</artifactId>
148         </dependency>
149         <dependency>
150             <groupId>org.mockito</groupId>
151             <artifactId>mockito-core</artifactId>
152         </dependency>
153         <dependency>
154             <groupId>org.mockito</groupId>
155             <artifactId>mockito-junit-jupiter</artifactId>
156         </dependency>
157         <dependency>
158             <groupId>org.springframework.boot</groupId>
159             <artifactId>spring-boot-starter-log4j2</artifactId>
160         </dependency>
161     </dependencies>
162
163 </project>