Added support for obfuscated password
[logging-analytics/pomba/pomba-context-aggregator.git] / pom.xml
1 <?xml version="1.0"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
4   <modelVersion>4.0.0</modelVersion>
5
6   <groupId>org.onap.logging-analytics.pomba</groupId>
7   <artifactId>pomba-context-aggregator</artifactId>
8   <version>1.3.1-SNAPSHOT</version>
9
10   <parent>
11     <groupId>org.onap.oparent</groupId>
12     <artifactId>oparent</artifactId>
13     <version>1.2.0</version>
14     <relativePath/>
15   </parent>
16
17   <properties>
18     <java.version>1.8</java.version>
19     <dmaap.client.version>1.1.5</dmaap.client.version>
20     <aai.rest.client.version>1.2.1</aai.rest.client.version>
21     <!--docker -->
22     <docker.tag>${project.version}-${timestamp}</docker.tag>
23     <docker.latest.tag>${project.version}-latest</docker.latest.tag>
24   </properties>
25
26   <dependencyManagement>
27     <dependencies>
28       <dependency>
29         <groupId>org.springframework.boot</groupId>
30         <artifactId>spring-boot-dependencies</artifactId>
31         <version>1.5.12.RELEASE</version>
32         <type>pom</type>
33         <scope>import</scope>
34       </dependency>
35     </dependencies>
36   </dependencyManagement>
37
38   <dependencies>
39     <dependency>
40       <groupId>org.eclipse.jetty</groupId>
41       <artifactId>jetty-security</artifactId>
42     </dependency>
43     <dependency>
44       <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
45       <artifactId>dmaapClient</artifactId>
46       <version>${dmaap.client.version}</version>
47     </dependency>
48     <dependency>
49       <groupId>org.onap.aai</groupId>
50       <artifactId>rest-client</artifactId>
51       <version>${aai.rest.client.version}</version>
52       <exclusions>
53         <exclusion>
54           <groupId>org.apache.logging.log4j</groupId>
55           <artifactId>log4j-slf4j-impl</artifactId>
56         </exclusion>
57       </exclusions>
58     </dependency>
59     <dependency>
60       <groupId>org.springframework.boot</groupId>
61       <artifactId>spring-boot-starter-web</artifactId>
62     </dependency>
63     <dependency>
64       <groupId>org.springframework.boot</groupId>
65       <artifactId>spring-boot-starter-actuator</artifactId>
66     </dependency>
67     <dependency>
68       <groupId>org.onap.logging-analytics.pomba</groupId>
69       <artifactId>pomba-audit-common</artifactId>
70       <version>1.3.1-SNAPSHOT</version>
71     </dependency>
72     <dependency>
73       <groupId>com.google.code.gson</groupId>
74       <artifactId>gson</artifactId>
75     </dependency>
76     <!-- logging dependencies -->
77     <dependency>
78       <groupId>org.slf4j</groupId>
79       <artifactId>slf4j-api</artifactId>
80     </dependency>
81     <dependency>
82       <groupId>org.onap.logging-analytics</groupId>
83       <artifactId>logging-slf4j</artifactId>
84       <version>1.2.2-SNAPSHOT</version>
85       <exclusions>
86         <exclusion>
87           <groupId>com.att.eelf</groupId>
88           <artifactId>eelf-core</artifactId>
89         </exclusion>
90       </exclusions>
91     </dependency>
92
93     <!-- JUnit dependencies -->
94     <dependency>
95       <groupId>junit</groupId>
96       <artifactId>junit</artifactId>
97       <scope>test</scope>
98     </dependency>
99     <dependency>
100       <groupId>org.springframework</groupId>
101       <artifactId>spring-test</artifactId>
102       <version>4.3.6.RELEASE</version>
103       <scope>test</scope>
104     </dependency>
105     <dependency>
106       <groupId>org.springframework.boot</groupId>
107       <artifactId>spring-boot-test</artifactId>
108       <version>1.5.1.RELEASE</version>
109       <scope>test</scope>
110     </dependency>
111     <dependency>
112       <groupId>org.mockito</groupId>
113       <artifactId>mockito-all</artifactId>
114       <version>1.10.19</version>
115       <scope>test</scope>
116     </dependency>
117     <dependency>
118       <groupId>org.springframework.boot</groupId>
119       <artifactId>spring-boot-configuration-processor</artifactId>
120       <optional>true</optional>
121     </dependency>
122
123   </dependencies>
124
125   <build>
126     <finalName>${project.artifactId}</finalName>
127     <plugins>
128       <plugin>
129         <groupId>org.springframework.boot</groupId>
130         <artifactId>spring-boot-maven-plugin</artifactId>
131         <executions>
132           <execution>
133             <goals>
134               <goal>repackage</goal>
135             </goals>
136           </execution>
137         </executions>
138       </plugin>
139     </plugins>
140
141     <resources>
142       <resource>
143         <targetPath>config</targetPath>
144         <directory>config</directory>
145         <filtering>true</filtering>
146         <includes>
147           <include>**/*</include>
148         </includes>
149       </resource>
150     </resources>
151   </build>
152
153   <profiles>
154     <profile>
155       <id>docker</id>
156       <build>
157         <plugins>
158           <plugin>
159             <groupId>io.fabric8</groupId>
160             <artifactId>docker-maven-plugin</artifactId>
161             <version>0.19.1</version>
162             <configuration>
163               <verbose>true</verbose>
164               <apiVersion>1.23</apiVersion>
165               <images>
166                 <image>
167                   <name>onap/${project.artifactId}</name>
168                   <alias>${project.artifactId}</alias>
169                   <build>
170                     <cleanup>try</cleanup>
171                     <dockerFileDir>${project.basedir}/target/docker-stage</dockerFileDir>
172                     <tags>
173                       <tag>${docker.snapshot.tag}</tag>
174                       <tag>${docker.latest.tag}</tag>
175                     </tags>
176                   </build>
177                 </image>
178               </images>
179             </configuration>
180             <executions>
181               <execution>
182                 <id>generate-images</id>
183                 <phase>generate-sources</phase>
184                 <goals>
185                   <goal>build</goal>
186                 </goals>
187               </execution>
188               <execution>
189                 <id>push-images</id>
190                 <phase>deploy</phase>
191                 <goals>
192                   <goal>build</goal>
193                   <goal>push</goal>
194                 </goals>
195               </execution>
196             </executions>
197           </plugin>
198           <plugin>
199             <artifactId>maven-resources-plugin</artifactId>
200             <version>2.6</version>
201             <executions>
202               <execution>
203                 <id>copy-dockerfile</id>
204                 <goals>
205                   <goal>copy-resources</goal>
206                 </goals><!-- here the phase you need -->
207                 <phase>package</phase>
208                 <configuration>
209                   <outputDirectory>${project.basedir}/target/docker-stage</outputDirectory>
210                   <resources>
211                     <resource>
212                       <directory>src/main/docker</directory>
213                       <includes>
214                         <include>Dockerfile</include>
215                       </includes>
216                       <filtering>true</filtering>
217                     </resource>
218                   </resources>
219                 </configuration>
220               </execution>
221               <execution>
222                 <id>copy-properties</id>
223                 <goals>
224                   <goal>copy-resources</goal>
225                 </goals>
226                 <phase>package</phase>
227                 <configuration>
228                   <outputDirectory>${project.basedir}/target/docker-stage/config</outputDirectory>
229                   <resources>
230                     <resource>
231                       <directory>config</directory>
232                       <includes>
233                         <include>*.properties</include>
234                         <include>builders/*.properties</include>
235                         <include>*.xml</include>
236                       </includes>
237                       <filtering>false</filtering>
238                     </resource>
239                   </resources>
240                 </configuration>
241               </execution>
242               <execution>
243                 <id>copy-script</id>
244                 <goals>
245                   <goal>copy-resources</goal>
246                 </goals>
247                 <phase>package</phase>
248                 <configuration>
249                   <outputDirectory>${project.basedir}/target/docker-stage/</outputDirectory>
250                   <resources>
251                     <resource>
252                       <directory>src/main/docker</directory>
253                       <includes>
254                         <include>*.sh</include>
255                       </includes>
256                       <filtering>false</filtering>
257                     </resource>
258                   </resources>
259                 </configuration>
260               </execution>
261               <execution>
262                 <id>copy-jar</id>
263                 <goals>
264                   <goal>copy-resources</goal>
265                 </goals>
266                 <phase>package</phase>
267                 <configuration>
268                   <outputDirectory>${project.basedir}/target/docker-stage/</outputDirectory>
269                   <resources>
270                     <resource>
271                       <directory>target</directory>
272                       <includes>
273                         <include>*.jar</include>
274                       </includes>
275                       <filtering>false</filtering>
276                     </resource>
277                   </resources>
278                 </configuration>
279               </execution>
280             </executions>
281           </plugin>
282         </plugins>
283       </build>
284     </profile>
285   </profiles>
286 </project>