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