Fixing nexus sonar scan issues
[aai/router-core.git] / pom.xml
1 <?xml version="1.0"?>
2 <!--
3 ============LICENSE_START=======================================================
4 org.onap.aai
5 ================================================================================
6 Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
7 Copyright © 2017-2018 Amdocs
8 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
12
13       http://www.apache.org/licenses/LICENSE-2.0
14
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END=========================================================
21 -->
22 <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/maven-v4_0_0.xsd">
23    <modelVersion>4.0.0</modelVersion>
24    <parent>
25       <groupId>org.onap.oparent</groupId>
26       <artifactId>oparent</artifactId>
27       <version>1.2.0</version>
28    </parent>
29
30    <groupId>org.onap.aai.router-core</groupId>
31    <artifactId>router-core</artifactId>
32    <packaging>bundle</packaging>
33    <version>1.3.0-SNAPSHOT</version>
34    <name>aai-router-core</name>
35    <properties>
36       <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
37       <event.client.version>1.3.0</event.client.version>
38       <!-- Sonar Properties -->
39       <sonar.language>java</sonar.language>
40       <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
41       <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
42       <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
43       <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
44       <sonar.projectVersion>${project.version}</sonar.projectVersion>
45       <camel-spring-boot.version>2.22.1</camel-spring-boot.version>
46    </properties>
47    <dependencies>
48       <dependency>
49          <groupId>org.apache.camel</groupId>
50          <artifactId>camel-core</artifactId>
51          <version>${camel-spring-boot.version}</version>
52       </dependency>
53       <!-- support camel documentation -->
54       <dependency>
55          <groupId>org.apache.camel</groupId>
56          <artifactId>apt</artifactId>
57          <version>${camel-spring-boot.version}</version>
58       </dependency>
59       <!-- logging -->
60       <dependency>
61          <groupId>org.onap.aai.logging-service</groupId>
62          <artifactId>common-logging</artifactId>
63          <version>1.2.2</version>
64       </dependency>
65
66       <dependency>
67           <groupId>org.onap.aai.event-client</groupId>
68           <artifactId>event-client-api</artifactId>
69           <version>${event.client.version}</version>
70       </dependency>
71       <dependency>
72           <groupId>org.onap.aai.event-client</groupId>
73           <artifactId>event-client-dmaap</artifactId>
74           <version>${event.client.version}</version>
75       </dependency>
76       <dependency>
77           <groupId>org.onap.aai.event-client</groupId>
78           <artifactId>event-client-kafka</artifactId>
79           <version>${event.client.version}</version>
80       </dependency>
81
82       <dependency>
83             <groupId>org.apache.httpcomponents</groupId>
84             <artifactId>httpclient</artifactId>
85             <version>4.5.5</version>
86       </dependency>
87
88       <dependency>
89          <groupId>org.onap.aai.aai-common</groupId>
90          <artifactId>aai-schema</artifactId>
91          <version>1.3.0-SNAPSHOT</version>
92       </dependency>
93       <dependency>
94          <groupId>org.onap.aai.aai-common</groupId>
95          <artifactId>aai-schema-ingest</artifactId>
96          <version>1.2.2</version>
97          <!--<exclusions>-->
98             <!--<exclusion>-->
99                <!--<groupId>com.google.guava</groupId>-->
100                <!--<artifactId>guava</artifactId>-->
101             <!--</exclusion>-->
102          <!--</exclusions>-->
103       </dependency>
104
105       <!-- Dependencies for the REST Client component -->
106       <!-- Library to obfuscate encrypted passwords -->
107       <dependency>
108          <groupId>org.eclipse.jetty</groupId>
109          <artifactId>jetty-security</artifactId>
110          <version>9.3.8.RC0</version>
111       </dependency>
112       <!-- ECOMP REST Client Library. -->
113       <dependency>
114          <groupId>org.onap.aai</groupId>
115          <artifactId>rest-client</artifactId>
116          <version>1.1.0</version>
117       </dependency>
118       <!-- End REST Client specific dependencies. -->
119       <!-- testing -->
120       <dependency>
121          <groupId>org.apache.camel</groupId>
122          <artifactId>camel-test</artifactId>
123          <version>${camel-spring-boot.version}</version>
124          <scope>test</scope>
125       </dependency>
126     <dependency>
127        <groupId>org.mockito</groupId>
128        <artifactId>mockito-all</artifactId>
129        <version>1.10.19</version>
130        <scope>test</scope>
131     </dependency>
132    </dependencies>
133    <build>
134       <defaultGoal>install</defaultGoal>
135       <plugins>
136          <plugin>
137             <groupId>org.apache.maven.plugins</groupId>
138             <artifactId>maven-compiler-plugin</artifactId>
139             <version>2.5.1</version>
140             <configuration>
141                <source>1.8</source>
142                <target>1.8</target>
143             </configuration>
144          </plugin>
145          <plugin>
146             <groupId>org.apache.maven.plugins</groupId>
147             <artifactId>maven-resources-plugin</artifactId>
148             <version>2.6</version>
149             <configuration>
150                <encoding>UTF-8</encoding>
151             </configuration>
152          </plugin>
153          <!-- to generate the MANIFEST-FILE of the bundle -->
154          <plugin>
155             <groupId>org.apache.felix</groupId>
156             <artifactId>maven-bundle-plugin</artifactId>
157             <version>2.5.4</version>
158             <extensions>true</extensions>
159             <configuration>
160                <instructions>
161                   <Bundle-SymbolicName>org.onap.aai.router-core</Bundle-SymbolicName>
162                   <Export-Service>org.apache.camel.spi.ComponentResolver;component=event-bus</Export-Service>
163                </instructions>
164             </configuration>
165          </plugin>
166          <!-- license plugin -->
167          <!-- Uncomment this to add a license header to every source file
168          <plugin>
169             <groupId>com.mycila</groupId>
170             <artifactId>license-maven-plugin</artifactId>
171             <version>3.0</version>
172             <configuration>
173                <header>License.txt</header>
174                <includes>
175                   <include>src/main/java/**</include>
176                </includes>
177             </configuration>
178             <executions>
179                <execution>
180                   <goals>
181                      <goal>format</goal>
182                   </goals>
183                   <phase>process-sources</phase>
184                </execution>
185             </executions>
186          </plugin>
187          -->
188
189          <!-- Checkstyle plugin - used to report on compliance with -->
190          <!-- the Google style guide. -->
191          <plugin>
192             <groupId>org.apache.maven.plugins</groupId>
193             <artifactId>maven-site-plugin</artifactId>
194             <version>3.6</version>
195          </plugin>
196          <plugin>
197             <groupId>org.sonatype.plugins</groupId>
198             <artifactId>nexus-staging-maven-plugin</artifactId>
199             <version>1.6.7</version>
200             <extensions>true</extensions>
201             <configuration>
202                <nexusUrl>${onap.nexus.url}</nexusUrl>
203                <stagingProfileId>176c31dfe190a</stagingProfileId>
204                <serverId>ecomp-staging</serverId>
205             </configuration>
206          </plugin>
207          <plugin>
208             <groupId>org.codehaus.mojo</groupId>
209             <artifactId>sonar-maven-plugin</artifactId>
210             <version>3.2</version>
211          </plugin>
212          <plugin>
213             <groupId>org.jacoco</groupId>
214             <artifactId>jacoco-maven-plugin</artifactId>
215             <version>0.7.7.201606060606</version>
216             <configuration>
217                <dumpOnExit>true</dumpOnExit>
218             </configuration>
219             <executions>
220                <execution>
221                   <id>jacoco-initialize-unit-tests</id>
222                   <goals>
223                      <goal>prepare-agent</goal>
224                   </goals>
225                   <configuration>
226                      <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
227                      <!-- <append>true</append> -->
228                   </configuration>
229                </execution>
230             </executions>
231          </plugin>
232       </plugins>
233    </build>
234
235    <reporting>
236       <plugins>
237          <plugin>
238             <groupId>org.apache.maven.plugins</groupId>
239             <artifactId>maven-checkstyle-plugin</artifactId>
240             <version>2.17</version>
241             <reportSets>
242                <reportSet>
243                   <reports>
244                      <report>checkstyle</report>
245                   </reports>
246                </reportSet>
247             </reportSets>
248          </plugin>
249       </plugins>
250    </reporting>
251
252 </project>