c410a40a85765a8687e1c030ccf1b15468853dfa
[oom/platform/cert-service.git] / certServicePostProcessor / 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>oom-certservice</artifactId>
7         <groupId>org.onap.oom.platform.cert-service</groupId>
8         <version>2.5.0-SNAPSHOT</version>
9     </parent>
10     <modelVersion>4.0.0</modelVersion>
11
12     <artifactId>oom-certservice-post-processor</artifactId>
13     <version>2.5.0-SNAPSHOT</version>
14     <name>oom-certservice-post-processor</name>
15     <description>An application which conducts certificate post-processing like: merging truststores, copying keystores.</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
72                                                 implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
73                                             <mainClass>org.onap.oom.certservice.postprocessor.MainApp</mainClass>
74                                         </transformer>
75                                     </transformers>
76                                 </configuration>
77                             </execution>
78                         </executions>
79                     </plugin>
80                     <plugin>
81                         <groupId>io.fabric8</groupId>
82                         <artifactId>docker-maven-plugin</artifactId>
83                         <version>${docker-maven-plugin.version}</version>
84                         <executions>
85                             <execution>
86                                 <id>docker-build-image</id>
87                                 <phase>package</phase>
88                                 <goals>
89                                     <goal>build</goal>
90                                 </goals>
91                             </execution>
92                             <execution>
93                                 <id>docker-push-image</id>
94                                 <phase>deploy</phase>
95                                 <goals>
96                                     <goal>push</goal>
97                                 </goals>
98                             </execution>
99                         </executions>
100                         <configuration>
101                             <skipPush>${skipDockerPush}</skipPush>
102                             <verbose>true</verbose>
103                             <imagePullPolicy>IfNotPresent</imagePullPolicy>
104                             <images>
105                                 <image>
106                                     <alias>${project.artifactId}</alias>
107                                     <name>${docker-image.namespace}/${docker-image.name}:${docker-image.tag.latest}
108                                     </name>
109                                     <registry>${docker-image.registry}</registry>
110                                     <build>
111                                         <dockerFileDir>${project.basedir}</dockerFileDir>
112                                         <tags>
113                                             <tag>${project.version}-${maven.build.timestamp}Z</tag>
114                                         </tags>
115                                     </build>
116                                 </image>
117                             </images>
118                         </configuration>
119                     </plugin>
120                 </plugins>
121             </build>
122         </profile>
123     </profiles>
124
125     <distributionManagement>
126         <repository>
127             <id>ecomp-releases</id>
128             <name>ONAP Release Repository</name>
129             <url>${nexusproxy}${releaseNexusPath}</url>
130         </repository>
131         <snapshotRepository>
132             <id>ecomp-snapshots</id>
133             <name>ONAP Snapshot Repository</name>
134             <url>${nexusproxy}${snapshotNexusPath}</url>
135         </snapshotRepository>
136         <site>
137             <id>ecomp-site</id>
138             <url>dav:${nexusproxy}${sitePath}</url>
139         </site>
140     </distributionManagement>
141
142
143     <dependencies>
144         <dependency>
145             <groupId>commons-io</groupId>
146             <artifactId>commons-io</artifactId>
147         </dependency>
148         <dependency>
149             <groupId>org.assertj</groupId>
150             <artifactId>assertj-core</artifactId>
151         </dependency>
152         <dependency>
153             <groupId>org.junit.jupiter</groupId>
154             <artifactId>junit-jupiter</artifactId>
155         </dependency>
156         <dependency>
157             <groupId>org.mockito</groupId>
158             <artifactId>mockito-core</artifactId>
159         </dependency>
160         <dependency>
161             <groupId>org.mockito</groupId>
162             <artifactId>mockito-junit-jupiter</artifactId>
163         </dependency>
164         <dependency>
165             <groupId>org.slf4j</groupId>
166             <artifactId>slf4j-api</artifactId>
167         </dependency>
168         <dependency>
169             <groupId>org.springframework.boot</groupId>
170             <artifactId>spring-boot-starter-log4j2</artifactId>
171         </dependency>
172         <dependency>
173             <groupId>org.bouncycastle</groupId>
174             <artifactId>bcpkix-jdk15on</artifactId>
175         </dependency>
176     </dependencies>
177 </project>