blob: 9e8288390a7cd6b7f1be1c8e7343797c0c1185cc [file] [log] [blame]
kjaniak8209f7c2020-02-14 14:33:27 +01001<?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>
kjaniak6e2234c2020-02-17 23:04:25 +010019 <plugins>
20 <plugin>
21 <groupId>org.apache.maven.plugins</groupId>
22 <artifactId>maven-surefire-plugin</artifactId>
23 </plugin>
24 </plugins>
kjaniak8209f7c2020-02-14 14:33:27 +010025 </build>
26
Joanna Jeremiczacae4022020-02-20 08:47:25 +010027 <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>
Joanna Jeremicz272a9a92020-02-20 14:52:01 +010049 <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>
Remigiusz Janeczek96898312020-02-26 12:34:08 +010059 <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>
Joanna Jeremicz272a9a92020-02-20 14:52:01 +010070 <transformers>
71 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
kjaniakc45f39c2020-02-19 16:42:38 +010072 <mainClass>org.onap.aaf.certservice.client.MainApp</mainClass>
Joanna Jeremicz272a9a92020-02-20 14:52:01 +010073 </transformer>
74 </transformers>
75 </configuration>
76 </execution>
77 </executions>
78 </plugin>
79 <plugin>
Joanna Jeremiczacae4022020-02-20 08:47:25 +010080 <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
kjaniak85022a82020-02-14 16:27:00 +0100143 <dependencies>
kjaniak3a1f8302020-02-18 13:25:43 +0100144 <dependency>
kjaniakc45f39c2020-02-19 16:42:38 +0100145 <groupId>org.bouncycastle</groupId>
146 <artifactId>bcpkix-jdk15on</artifactId>
kjaniak3a1f8302020-02-18 13:25:43 +0100147 </dependency>
kjaniak85022a82020-02-14 16:27:00 +0100148 <dependency>
kjaniakc45f39c2020-02-19 16:42:38 +0100149 <groupId>org.assertj</groupId>
150 <artifactId>assertj-core</artifactId>
pwielebs102a4112020-02-17 12:43:31 +0100151 </dependency>
152 <dependency>
kjaniak85022a82020-02-14 16:27:00 +0100153 <groupId>org.junit.jupiter</groupId>
154 <artifactId>junit-jupiter-engine</artifactId>
155 </dependency>
156 <dependency>
kjaniak6e2234c2020-02-17 23:04:25 +0100157 <groupId>org.junit.jupiter</groupId>
158 <artifactId>junit-jupiter-api</artifactId>
159 </dependency>
160 <dependency>
kjaniak7e02d162020-02-18 16:13:54 +0100161 <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>
kjaniakc45f39c2020-02-19 16:42:38 +0100169 <groupId>org.slf4j</groupId>
170 <artifactId>slf4j-api</artifactId>
171 </dependency>
172 <dependency>
kjaniak7e02d162020-02-18 16:13:54 +0100173 <groupId>org.springframework.boot</groupId>
174 <artifactId>spring-boot-starter-log4j2</artifactId>
kjaniak85022a82020-02-14 16:27:00 +0100175 </dependency>
Tomasz Wrobele78bfe12020-02-20 16:45:12 +0100176 <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>
kjaniak85022a82020-02-14 16:27:00 +0100184 </dependencies>
185
kjaniak8209f7c2020-02-14 14:33:27 +0100186</project>