Set a new version
[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.1-SNAPSHOT</version>
9     </parent>
10     <modelVersion>4.0.0</modelVersion>
11
12     <artifactId>aaf-certservice-client</artifactId>
13     <version>1.0.1-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                                         </tags>
114                                     </build>
115                                 </image>
116                             </images>
117                         </configuration>
118                     </plugin>
119                 </plugins>
120             </build>
121         </profile>
122     </profiles>
123
124     <distributionManagement>
125         <repository>
126             <id>ecomp-releases</id>
127             <name>AAF Release Repository</name>
128             <url>${nexusproxy}${releaseNexusPath}</url>
129         </repository>
130         <snapshotRepository>
131             <id>ecomp-snapshots</id>
132             <name>AAF Snapshot Repository</name>
133             <url>${nexusproxy}${snapshotNexusPath}</url>
134         </snapshotRepository>
135         <site>
136             <id>ecomp-site</id>
137             <url>dav:${nexusproxy}${sitePath}</url>
138         </site>
139     </distributionManagement>
140
141     <dependencies>
142         <dependency>
143             <groupId>org.bouncycastle</groupId>
144             <artifactId>bcpkix-jdk15on</artifactId>
145         </dependency>
146         <dependency>
147             <groupId>org.apache.commons</groupId>
148             <artifactId>commons-lang3</artifactId>
149         </dependency>
150         <dependency>
151             <groupId>org.assertj</groupId>
152             <artifactId>assertj-core</artifactId>
153         </dependency>
154         <dependency>
155             <groupId>org.junit.jupiter</groupId>
156             <artifactId>junit-jupiter</artifactId>
157         </dependency>
158         <dependency>
159             <groupId>org.mockito</groupId>
160             <artifactId>mockito-core</artifactId>
161         </dependency>
162         <dependency>
163             <groupId>org.mockito</groupId>
164             <artifactId>mockito-junit-jupiter</artifactId>
165         </dependency>
166         <dependency>
167             <groupId>org.slf4j</groupId>
168             <artifactId>slf4j-api</artifactId>
169         </dependency>
170         <dependency>
171             <groupId>org.springframework.boot</groupId>
172             <artifactId>spring-boot-starter-log4j2</artifactId>
173         </dependency>
174         <dependency>
175             <groupId>com.google.code.gson</groupId>
176             <artifactId>gson</artifactId>
177         </dependency>
178         <dependency>
179             <groupId>org.apache.httpcomponents</groupId>
180             <artifactId>httpclient</artifactId>
181         </dependency>
182     </dependencies>
183
184 </project>