Upversion artifacts to 1.8.0-SNAPSHOT
[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>2.0.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.6.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.5.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       <jacoco.line.coverage.limit>0.70</jacoco.line.coverage.limit>
47       <springframework.version>4.3.18.RELEASE</springframework.version>
48    </properties>
49
50    <dependencyManagement>
51      <dependencies>
52        <dependency>
53          <groupId>ch.qos.logback</groupId>
54          <artifactId>logback-classic</artifactId>
55          <version>1.1.3</version>
56        </dependency>
57         <dependency>
58             <groupId>org.springframework</groupId>
59             <artifactId>spring-context</artifactId>
60             <version>${springframework.version}</version>
61         </dependency>
62         <dependency>
63             <groupId>org.springframework</groupId>
64             <artifactId>spring-web</artifactId>
65             <version>${springframework.version}</version>
66         </dependency>
67         <dependency>
68             <groupId>org.springframework</groupId>
69             <artifactId>spring-core</artifactId>
70             <version>${springframework.version}</version>
71         </dependency>
72         <dependency>
73             <groupId>org.springframework</groupId>
74             <artifactId>spring-expression</artifactId>
75             <version>${springframework.version}</version>
76         </dependency>
77         <dependency>
78             <groupId>org.springframework</groupId>
79             <artifactId>spring-webmvc</artifactId>
80             <version>${springframework.version}</version>
81         </dependency>
82          <dependency>
83             <groupId>org.springframework</groupId>
84             <artifactId>spring-test</artifactId>
85             <version>${springframework.version}</version>
86             <scope>test</scope>
87         </dependency>
88      </dependencies>
89    </dependencyManagement>
90
91    <dependencies>
92       <dependency>
93          <groupId>org.apache.camel</groupId>
94          <artifactId>camel-core</artifactId>
95          <version>${camel-spring-boot.version}</version>
96       </dependency>
97       <!-- support camel documentation -->
98       <dependency>
99          <groupId>org.apache.camel</groupId>
100          <artifactId>apt</artifactId>
101          <version>${camel-spring-boot.version}</version>
102       </dependency>
103       <!-- logging -->
104       <dependency>
105          <groupId>org.onap.aai.logging-service</groupId>
106          <artifactId>common-logging</artifactId>
107          <version>1.5.0</version>
108       </dependency>
109
110       <dependency>
111           <groupId>org.onap.aai.event-client</groupId>
112           <artifactId>event-client-api</artifactId>
113           <version>${event.client.version}</version>
114       </dependency>
115       <dependency>
116           <groupId>org.onap.aai.event-client</groupId>
117           <artifactId>event-client-dmaap</artifactId>
118           <version>${event.client.version}</version>
119       </dependency>
120       <dependency>
121           <groupId>org.onap.aai.event-client</groupId>
122           <artifactId>event-client-kafka</artifactId>
123           <version>${event.client.version}</version>
124       </dependency>
125
126       <dependency>
127            <groupId>org.onap.aai.event-client</groupId>
128            <artifactId>event-client-rabbitmq</artifactId>
129            <version>${event.client.version}</version>
130       </dependency>
131
132       <dependency>
133             <groupId>org.apache.httpcomponents</groupId>
134             <artifactId>httpclient</artifactId>
135             <version>4.5.5</version>
136       </dependency>
137
138       <dependency>
139          <groupId>org.onap.aai.schema-service</groupId>
140          <artifactId>aai-schema</artifactId>
141          <version>1.6.0</version>
142       </dependency>
143       <dependency>
144          <groupId>org.onap.aai.aai-common</groupId>
145          <artifactId>aai-schema-ingest</artifactId>
146          <version>1.4.1</version>
147          <!--<exclusions>-->
148             <!--<exclusion>-->
149                <!--<groupId>com.google.guava</groupId>-->
150                <!--<artifactId>guava</artifactId>-->
151             <!--</exclusion>-->
152          <!--</exclusions>-->
153       </dependency>
154
155       <!-- Dependencies for the REST Client component -->
156       <!-- Library to obfuscate encrypted passwords -->
157       <dependency>
158          <groupId>org.eclipse.jetty</groupId>
159          <artifactId>jetty-security</artifactId>
160          <version>9.3.24.v20180605</version>
161       </dependency>
162       <!-- ECOMP REST Client Library. -->
163       <dependency>
164          <groupId>org.onap.aai</groupId>
165          <artifactId>rest-client</artifactId>
166          <version>1.2.1</version>
167       </dependency>
168       <!-- End REST Client specific dependencies. -->
169       <!-- testing -->
170       <dependency>
171          <groupId>org.apache.camel</groupId>
172          <artifactId>camel-test</artifactId>
173          <version>${camel-spring-boot.version}</version>
174          <scope>test</scope>
175       </dependency>
176     <dependency>
177        <groupId>org.mockito</groupId>
178        <artifactId>mockito-all</artifactId>
179        <version>1.10.19</version>
180        <scope>test</scope>
181     </dependency>
182     <dependency>
183       <groupId>org.springframework</groupId>
184       <artifactId>spring-context</artifactId>
185       <version>4.3.18.RELEASE</version>
186     </dependency>
187     <dependency>
188       <groupId>org.springframework</groupId>
189       <artifactId>spring-test</artifactId>
190       <version>4.3.18.RELEASE</version>
191       <scope>test</scope>
192     </dependency>
193    </dependencies>
194    <build>
195       <defaultGoal>install</defaultGoal>
196       <plugins>
197          <plugin>
198             <groupId>org.apache.maven.plugins</groupId>
199             <artifactId>maven-compiler-plugin</artifactId>
200             <version>2.5.1</version>
201             <configuration>
202                <source>1.8</source>
203                <target>1.8</target>
204             </configuration>
205          </plugin>
206          <plugin>
207             <groupId>org.apache.maven.plugins</groupId>
208             <artifactId>maven-resources-plugin</artifactId>
209             <version>2.6</version>
210             <configuration>
211                <encoding>UTF-8</encoding>
212             </configuration>
213          </plugin>
214          <!-- to generate the MANIFEST-FILE of the bundle -->
215          <plugin>
216             <groupId>org.apache.felix</groupId>
217             <artifactId>maven-bundle-plugin</artifactId>
218             <version>2.5.4</version>
219             <extensions>true</extensions>
220             <configuration>
221                <instructions>
222                   <Bundle-SymbolicName>org.onap.aai.router-core</Bundle-SymbolicName>
223                   <Export-Service>org.apache.camel.spi.ComponentResolver;component=event-bus</Export-Service>
224                </instructions>
225             </configuration>
226          </plugin>
227          <!-- license plugin -->
228          <!-- Uncomment this to add a license header to every source file
229          <plugin>
230             <groupId>com.mycila</groupId>
231             <artifactId>license-maven-plugin</artifactId>
232             <version>3.0</version>
233             <configuration>
234                <header>License.txt</header>
235                <includes>
236                   <include>src/main/java/**</include>
237                </includes>
238             </configuration>
239             <executions>
240                <execution>
241                   <goals>
242                      <goal>format</goal>
243                   </goals>
244                   <phase>process-sources</phase>
245                </execution>
246             </executions>
247          </plugin>
248          -->
249
250          <!-- Checkstyle plugin - used to report on compliance with -->
251          <!-- the Google style guide. -->
252          <plugin>
253             <groupId>org.apache.maven.plugins</groupId>
254             <artifactId>maven-site-plugin</artifactId>
255             <version>3.6</version>
256          </plugin>
257          <plugin>
258            <groupId>org.apache.maven.plugins</groupId>
259            <artifactId>maven-deploy-plugin</artifactId>
260          </plugin>
261          <plugin>
262             <groupId>org.codehaus.mojo</groupId>
263             <artifactId>sonar-maven-plugin</artifactId>
264             <version>3.2</version>
265          </plugin>
266          <plugin>
267             <groupId>org.jacoco</groupId>
268             <artifactId>jacoco-maven-plugin</artifactId>
269             <version>0.7.7.201606060606</version>
270             <configuration>
271                <dumpOnExit>true</dumpOnExit>
272             </configuration>
273             <executions>
274                           
275                <execution>
276                     <id>default-check</id>
277                     <goals>
278                         <goal>check</goal>
279                     </goals>
280                     <configuration>
281                        <dataFile>${sonar.jacoco.reportPath}</dataFile>
282                         <rules>
283                             <!--  implementation is needed only for Maven 2  -->
284                            <rule implementation="org.jacoco.maven.RuleConfiguration">
285                                <element>BUNDLE</element>
286                                 <limits>
287                                   <limit implementation="org.jacoco.report.check.Limit">
288                                         <counter>LINE</counter>
289                                        <value>COVEREDRATIO</value>
290                                        <minimum>${jacoco.line.coverage.limit}</minimum>
291                                    </limit>
292                                 </limits>
293                             </rule>
294                         </rules>
295                     </configuration>
296                   </execution>                        
297                
298             </executions>
299          </plugin>
300       </plugins>
301    </build>
302
303    <reporting>
304       <plugins>
305          <plugin>
306             <groupId>org.apache.maven.plugins</groupId>
307             <artifactId>maven-checkstyle-plugin</artifactId>
308             <version>2.17</version>
309             <reportSets>
310                <reportSet>
311                   <reports>
312                      <report>checkstyle</report>
313                   </reports>
314                </reportSet>
315             </reportSets>
316          </plugin>
317       </plugins>
318    </reporting>
319
320 </project>