[DMAAP-BC] Fix jjb failure
[dmaap/buscontroller.git] / pom.xml
1 <!--* ============LICENSE_START==================================================== 
2    * =========================================================================== 
3    * org.onap.aaf 
4    * Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. 
5    * =========================================================================== 
6    * Licensed under the Apache License, Version 2.0 (the "License"); 
7    * you may not use this file except in compliance with the License. 
8    * You may obtain a copy of the License at 
9    * 
10   * http://www.apache.org/licenses/LICENSE-2.0 
11   * 
12   * Unless required by applicable law or agreed to in writing, software 
13   * distributed under the License is distributed on an "AS IS" BASIS, 
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
15   * See the License for the specific language governing permissions and 
16   * limitations under the License. 
17   * ============LICENSE_END==================================================== 
18   * -->
19 <project xmlns="http://maven.apache.org/POM/4.0.0"
20   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22   <modelVersion>4.0.0</modelVersion>
23   <groupId>org.onap.dmaap.buscontroller</groupId>
24   <artifactId>parent</artifactId>
25   <version>${revision}</version>
26   <name>dmaap-buscontroller</name>
27   <packaging>pom</packaging>
28
29   <parent>
30     <groupId>org.onap.oparent</groupId>
31     <artifactId>oparent</artifactId>
32     <version>3.2.0</version>
33   </parent>
34
35   <properties>
36     <revision>2.0.8-SNAPSHOT</revision>
37     <multiproject.basedir>${basedir}</multiproject.basedir>
38     <docker.maven.plugin.version>1.0.0</docker.maven.plugin.version>
39     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40     <skip.docker.build>false</skip.docker.build>
41     <skip.docker.tag>false</skip.docker.tag>
42     <skip.docker.push>false</skip.docker.push>
43     <docker.verbose>true</docker.verbose>
44     <docker.apiVersion>2.2.54</docker.apiVersion>
45     <io.fabric8.version>0.33.0</io.fabric8.version>
46     <gmaven-plugin.version>1.5</gmaven-plugin.version>
47     <maven.compiler.source>11</maven.compiler.source>
48     <maven.compiler.target>11</maven.compiler.target>
49     <snapshotNexusPath>/content/repositories/snapshots/</snapshotNexusPath>
50     <docker.image.root>onap/dmaap/</docker.image.root>
51     <nexusproxy>https://nexus.onap.org</nexusproxy>
52     <docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
53     <timestamp>${maven.build.timestamp}</timestamp>
54     <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
55     <sonar.language>java</sonar.language>
56     <sonar.skip>false</sonar.skip>
57     <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports
58     </sonar.surefire.reportsPath>
59     <sonar.projectVersion>${project.version}</sonar.projectVersion>
60     <sitePath>/content/sites/site/org/onap/dmaap/buscontroller/${project.artifactId}/${revision}
61     </sitePath>
62   </properties>
63   <modules>
64     <module>dmaap-bc</module>
65     <module>dbc-client</module>
66   </modules>
67   <build>
68     <plugins>
69     </plugins>
70     <pluginManagement>
71       <plugins>
72         <plugin>
73           <groupId>org.apache.maven.plugins</groupId>
74           <artifactId>maven-surefire-plugin</artifactId>
75           <configuration>
76             <excludes>
77             </excludes>
78             <forkCount>0</forkCount>
79             <argLine>
80               ${surefireArgLine} --illegal-access=permit
81             </argLine>
82           </configuration>
83         </plugin>
84         <plugin>
85           <groupId>org.apache.maven.plugins</groupId>
86           <artifactId>maven-failsafe-plugin</artifactId>
87           <configuration>
88             <argLine>
89               --illegal-access=permit
90             </argLine>
91           </configuration>
92         </plugin>
93         <plugin>
94           <groupId>org.codehaus.mojo</groupId>
95           <artifactId>flatten-maven-plugin</artifactId>
96           <version>1.0.1</version>
97           <configuration>
98             <updatePomFile>true</updatePomFile>
99             <outputDirectory>target</outputDirectory>
100           </configuration>
101           <executions>
102             <execution>
103               <id>flatten</id>
104               <phase>process-resources</phase>
105               <goals>
106                 <goal>flatten</goal>
107               </goals>
108             </execution>
109           </executions>
110         </plugin>
111         <plugin>
112           <artifactId>maven-checkstyle-plugin</artifactId>
113           <executions>
114             <execution>
115               <id>onap-java-style</id>
116               <configuration>
117                 <consoleOutput>false</consoleOutput>
118               </configuration>
119             </execution>
120           </executions>
121         </plugin>
122         <plugin>
123           <groupId>org.apache.maven.plugins</groupId>
124           <artifactId>maven-compiler-plugin</artifactId>
125           <configuration>
126             <source>${maven.compiler.source}</source>
127             <target>${maven.compiler.target}</target>
128           </configuration>
129         </plugin>
130         <plugin>
131           <groupId>org.apache.maven.plugins</groupId>
132           <artifactId>maven-source-plugin</artifactId>
133           <version>2.2.1</version>
134           <executions>
135             <execution>
136               <id>attach-sources</id>
137               <goals>
138                 <goal>jar-no-fork</goal>
139               </goals>
140             </execution>
141           </executions>
142         </plugin>
143         <plugin>
144           <groupId>org.codehaus.gmaven</groupId>
145           <artifactId>gmaven-plugin</artifactId>
146           <version>${gmaven-plugin.version}</version>
147           <executions>
148             <execution>
149               <phase>validate</phase>
150               <goals>
151                 <goal>execute</goal>
152               </goals>
153               <configuration>
154                 <properties>
155                   <ver>${project.version}</ver>
156                 </properties>
157                 <!-- Setup image tags per https://wiki.onap.org/display/DW/Independent+Versioning+and+Release+Process#IndependentVersioningandReleaseProcess-StandardizedDockerTagging -->
158                 <source>
159                   println 'ver: ' + project.properties['ver'];
160                   if (project.properties['ver'].endsWith("-SNAPSHOT")) {
161                     project.properties['dockertag1'] = project.properties['ver'] + "-latest";
162                     project.properties['dockertag2'] = project.properties['ver'] + "-" + project.properties['timestamp'];
163                   } else {
164                     project.properties['dockertag1'] = project.properties['ver'] + "-STAGING-latest";
165                     project.properties['dockertag2'] = project.properties['ver'] + "-STAGING-" + project.properties['timestamp'];
166                   }
167                   println 'docker tag 1: ' + project.properties['dockertag1'];
168                   println 'docker tag 2: ' + project.properties['dockertag2'];
169                 </source>
170               </configuration>
171             </execution>
172           </executions>
173         </plugin>
174         <plugin>
175           <groupId>io.fabric8</groupId>
176           <artifactId>docker-maven-plugin</artifactId>
177           <version>${io.fabric8.version}</version>
178           <configuration>
179             <skipBuild>${skip.docker.build}</skipBuild>
180             <verbose>${docker.verbose}</verbose>
181             <apiVersion>${docker.apiVersion}</apiVersion>
182             <pullRegistry>${docker.pull.registry}</pullRegistry>
183             <pushRegistry>${docker.push.registry}</pushRegistry>
184           </configuration>
185         </plugin>
186         <plugin>
187           <groupId>org.codehaus.mojo</groupId>
188           <artifactId>properties-maven-plugin</artifactId>
189           <version>1.0.0</version>
190           <executions>
191             <execution>
192               <phase>validate</phase>
193               <goals>
194                 <goal>read-project-properties</goal>
195               </goals>
196               <configuration>
197                 <files>
198                   <file>../version.properties</file>
199                 </files>
200               </configuration>
201             </execution>
202           </executions>
203         </plugin>
204       </plugins>
205     </pluginManagement>
206   </build>
207   <pluginRepositories>
208     <pluginRepository>
209       <id>onap-plugin-snapshots</id>
210       <url>${onap.nexus.url}${snapshotNexusPath}</url>
211     </pluginRepository>
212   </pluginRepositories>
213 </project>