blob: f092990a7338d452bb52c4ea2ffa4dcce3b6f741 [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>
59 <transformers>
60 <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
kjaniakc45f39c2020-02-19 16:42:38 +010061 <mainClass>org.onap.aaf.certservice.client.MainApp</mainClass>
Joanna Jeremicz272a9a92020-02-20 14:52:01 +010062 </transformer>
63 </transformers>
64 </configuration>
65 </execution>
66 </executions>
67 </plugin>
68 <plugin>
Joanna Jeremiczacae4022020-02-20 08:47:25 +010069 <groupId>io.fabric8</groupId>
70 <artifactId>docker-maven-plugin</artifactId>
71 <version>${docker-maven-plugin.version}</version>
72 <executions>
73 <execution>
74 <id>docker-build-image</id>
75 <phase>package</phase>
76 <goals>
77 <goal>build</goal>
78 </goals>
79 </execution>
80 <execution>
81 <id>docker-push-image</id>
82 <phase>deploy</phase>
83 <goals>
84 <goal>push</goal>
85 </goals>
86 </execution>
87 </executions>
88 <configuration>
89 <skipPush>${skipDockerPush}</skipPush>
90 <verbose>true</verbose>
91 <imagePullPolicy>IfNotPresent</imagePullPolicy>
92 <images>
93 <image>
94 <alias>${project.artifactId}</alias>
95 <name>${docker-image.namespace}/${docker-image.name}
96 </name>
97 <registry>${docker-image.registry}</registry>
98 <build>
99 <dockerFileDir>${project.basedir}</dockerFileDir>
100 <tags>
101 <tag>${project.version}-${maven.build.timestamp}Z</tag>
102 <tag>${project.version}</tag>
103 <tag>${docker-image.latest}</tag>
104 </tags>
105 </build>
106 </image>
107 </images>
108 </configuration>
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
kjaniak85022a82020-02-14 16:27:00 +0100132 <dependencies>
kjaniak3a1f8302020-02-18 13:25:43 +0100133 <dependency>
kjaniakc45f39c2020-02-19 16:42:38 +0100134 <groupId>org.bouncycastle</groupId>
135 <artifactId>bcpkix-jdk15on</artifactId>
kjaniak3a1f8302020-02-18 13:25:43 +0100136 </dependency>
kjaniak85022a82020-02-14 16:27:00 +0100137 <dependency>
kjaniakc45f39c2020-02-19 16:42:38 +0100138 <groupId>org.assertj</groupId>
139 <artifactId>assertj-core</artifactId>
pwielebs102a4112020-02-17 12:43:31 +0100140 </dependency>
141 <dependency>
kjaniak85022a82020-02-14 16:27:00 +0100142 <groupId>org.junit.jupiter</groupId>
143 <artifactId>junit-jupiter-engine</artifactId>
144 </dependency>
145 <dependency>
kjaniak6e2234c2020-02-17 23:04:25 +0100146 <groupId>org.junit.jupiter</groupId>
147 <artifactId>junit-jupiter-api</artifactId>
148 </dependency>
149 <dependency>
kjaniak7e02d162020-02-18 16:13:54 +0100150 <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>
kjaniakc45f39c2020-02-19 16:42:38 +0100158 <groupId>org.slf4j</groupId>
159 <artifactId>slf4j-api</artifactId>
160 </dependency>
161 <dependency>
kjaniak7e02d162020-02-18 16:13:54 +0100162 <groupId>org.springframework.boot</groupId>
163 <artifactId>spring-boot-starter-log4j2</artifactId>
kjaniak85022a82020-02-14 16:27:00 +0100164 </dependency>
165 </dependencies>
166
kjaniak8209f7c2020-02-14 14:33:27 +0100167</project>