Merge "Fix file not found in tests"
[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>org.apache.maven.plugins</groupId>
50                         <artifactId>maven-shade-plugin</artifactId>
51                         <version>${maven-shade-plugin.version}</version>
52                         <executions>
53                             <execution>
54                                 <phase>package</phase>
55                                 <goals>
56                                     <goal>shade</goal>
57                                 </goals>
58                                 <configuration>
59                                     <createDependencyReducedPom>false</createDependencyReducedPom>
60                                     <filters>
61                                         <filter>
62                                             <artifact>*:*</artifact>
63                                             <excludes>
64                                                 <exclude>META-INF/*.SF</exclude>
65                                                 <exclude>META-INF/*.DSA</exclude>
66                                                 <exclude>META-INF/*.RSA</exclude>
67                                             </excludes>
68                                         </filter>
69                                     </filters>
70                                     <transformers>
71                                         <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
72                                             <mainClass>org.onap.aaf.certservice.client.MainApp</mainClass>
73                                         </transformer>
74                                     </transformers>
75                                 </configuration>
76                             </execution>
77                         </executions>
78                     </plugin>
79                     <plugin>
80                         <groupId>io.fabric8</groupId>
81                         <artifactId>docker-maven-plugin</artifactId>
82                         <version>${docker-maven-plugin.version}</version>
83                         <executions>
84                             <execution>
85                                 <id>docker-build-image</id>
86                                 <phase>package</phase>
87                                 <goals>
88                                     <goal>build</goal>
89                                 </goals>
90                             </execution>
91                             <execution>
92                                 <id>docker-push-image</id>
93                                 <phase>deploy</phase>
94                                 <goals>
95                                     <goal>push</goal>
96                                 </goals>
97                             </execution>
98                         </executions>
99                         <configuration>
100                             <skipPush>${skipDockerPush}</skipPush>
101                             <verbose>true</verbose>
102                             <imagePullPolicy>IfNotPresent</imagePullPolicy>
103                             <images>
104                                 <image>
105                                     <alias>${project.artifactId}</alias>
106                                     <name>${docker-image.namespace}/${docker-image.name}
107                                     </name>
108                                     <registry>${docker-image.registry}</registry>
109                                     <build>
110                                         <dockerFileDir>${project.basedir}</dockerFileDir>
111                                         <tags>
112                                             <tag>${project.version}-${maven.build.timestamp}Z</tag>
113                                             <tag>${project.version}</tag>
114                                             <tag>${docker-image.latest}</tag>
115                                         </tags>
116                                     </build>
117                                 </image>
118                             </images>
119                         </configuration>
120                     </plugin>
121                 </plugins>
122             </build>
123         </profile>
124     </profiles>
125
126     <distributionManagement>
127         <repository>
128             <id>ecomp-releases</id>
129             <name>AAF Release Repository</name>
130             <url>${nexusproxy}${releaseNexusPath}</url>
131         </repository>
132         <snapshotRepository>
133             <id>ecomp-snapshots</id>
134             <name>AAF Snapshot Repository</name>
135             <url>${nexusproxy}${snapshotNexusPath}</url>
136         </snapshotRepository>
137         <site>
138             <id>ecomp-site</id>
139             <url>dav:${nexusproxy}${sitePath}</url>
140         </site>
141     </distributionManagement>
142
143     <dependencies>
144         <dependency>
145             <groupId>org.bouncycastle</groupId>
146             <artifactId>bcpkix-jdk15on</artifactId>
147         </dependency>
148         <dependency>
149             <groupId>org.apache.commons</groupId>
150             <artifactId>commons-lang3</artifactId>
151         </dependency>
152         <dependency>
153             <groupId>org.assertj</groupId>
154             <artifactId>assertj-core</artifactId>
155         </dependency>
156         <dependency>
157             <groupId>org.junit.jupiter</groupId>
158             <artifactId>junit-jupiter</artifactId>
159         </dependency>
160         <dependency>
161             <groupId>org.mockito</groupId>
162             <artifactId>mockito-core</artifactId>
163         </dependency>
164         <dependency>
165             <groupId>org.mockito</groupId>
166             <artifactId>mockito-junit-jupiter</artifactId>
167         </dependency>
168         <dependency>
169             <groupId>org.slf4j</groupId>
170             <artifactId>slf4j-api</artifactId>
171         </dependency>
172         <dependency>
173             <groupId>org.springframework.boot</groupId>
174             <artifactId>spring-boot-starter-log4j2</artifactId>
175         </dependency>
176         <dependency>
177             <groupId>com.google.code.gson</groupId>
178             <artifactId>gson</artifactId>
179         </dependency>
180         <dependency>
181             <groupId>org.apache.httpcomponents</groupId>
182             <artifactId>httpclient</artifactId>
183         </dependency>
184     </dependencies>
185
186 </project>