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