67801cc3fb4d64af38e85c91574de44541776279
[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.2.1-SNAPSHOT</version>
34    <name>aai-router-core</name>
35    <properties>
36       <checkstyle.config.location>google_checks.xml</checkstyle.config.location>
37       <!-- Sonar Properties -->
38       <sonar.language>java</sonar.language>
39       <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
40       <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
41       <sonar.jacoco.reportPath>${project.build.directory}/code-coverage/jacoco-ut.exec</sonar.jacoco.reportPath>
42       <sonar.jacoco.reportMissing.force.zero>false</sonar.jacoco.reportMissing.force.zero>
43       <sonar.projectVersion>${project.version}</sonar.projectVersion>
44    </properties>
45    <dependencies>
46       <dependency>
47          <groupId>org.apache.camel</groupId>
48          <artifactId>camel-core</artifactId>
49          <version>2.20.1</version>
50       </dependency>
51       <!-- support camel documentation -->
52       <dependency>
53          <groupId>org.apache.camel</groupId>
54          <artifactId>apt</artifactId>
55          <version>2.20.1</version>
56       </dependency>
57       <!-- logging -->
58       <dependency>
59          <groupId>org.onap.aai.logging-service</groupId>
60          <artifactId>common-logging</artifactId>
61          <version>1.2.2</version>
62       </dependency>
63       <dependency>
64          <groupId>com.att.nsa</groupId>
65          <artifactId>cambriaClient</artifactId>
66          <version>0.0.1</version>
67          <exclusions>
68                 <exclusion>
69                   <groupId>org.apache.httpcomponents</groupId>
70                   <artifactId>httpclient</artifactId>
71                 </exclusion>
72                 <exclusion>
73                   <groupId>org.apache.httpcomponents</groupId>
74                   <artifactId>httpclient-cache</artifactId>
75                 </exclusion>
76             </exclusions>
77       </dependency>
78
79       <dependency>
80             <groupId>org.apache.httpcomponents</groupId>
81             <artifactId>httpclient</artifactId>
82             <version>4.5.5</version>
83       </dependency>
84
85       <!-- Dependencies for the REST Client component -->
86       <!-- Library to obfuscate encrypted passwords -->
87       <dependency>
88          <groupId>org.eclipse.jetty</groupId>
89          <artifactId>jetty-security</artifactId>
90          <version>9.3.8.RC0</version>
91       </dependency>
92       <!-- ECOMP REST Client Library. -->
93       <dependency>
94          <groupId>org.onap.aai</groupId>
95          <artifactId>rest-client</artifactId>
96          <version>1.1.0</version>
97       </dependency>
98       <!-- End REST Client specific dependencies. -->
99       <!-- testing -->
100       <dependency>
101          <groupId>org.apache.camel</groupId>
102          <artifactId>camel-test</artifactId>
103          <version>2.20.1</version>
104          <scope>test</scope>
105       </dependency>
106    </dependencies>
107    <build>
108       <defaultGoal>install</defaultGoal>
109       <plugins>
110          <plugin>
111             <groupId>org.apache.maven.plugins</groupId>
112             <artifactId>maven-compiler-plugin</artifactId>
113             <version>2.5.1</version>
114             <configuration>
115                <source>1.8</source>
116                <target>1.8</target>
117             </configuration>
118          </plugin>
119          <plugin>
120             <groupId>org.apache.maven.plugins</groupId>
121             <artifactId>maven-resources-plugin</artifactId>
122             <version>2.6</version>
123             <configuration>
124                <encoding>UTF-8</encoding>
125             </configuration>
126          </plugin>
127          <!-- to generate the MANIFEST-FILE of the bundle -->
128          <plugin>
129             <groupId>org.apache.felix</groupId>
130             <artifactId>maven-bundle-plugin</artifactId>
131             <version>2.3.7</version>
132             <extensions>true</extensions>
133             <configuration>
134                <instructions>
135                   <Bundle-SymbolicName>org.onap.aai.router-core</Bundle-SymbolicName>
136                   <Export-Service>org.apache.camel.spi.ComponentResolver;component=event-bus</Export-Service>
137                </instructions>
138             </configuration>
139          </plugin>
140          <!-- license plugin -->
141          <!-- Uncomment this to add a license header to every source file
142          <plugin>
143             <groupId>com.mycila</groupId>
144             <artifactId>license-maven-plugin</artifactId>
145             <version>3.0</version>
146             <configuration>
147                <header>License.txt</header>
148                <includes>
149                   <include>src/main/java/**</include>
150                </includes>
151             </configuration>
152             <executions>
153                <execution>
154                   <goals>
155                      <goal>format</goal>
156                   </goals>
157                   <phase>process-sources</phase>
158                </execution>
159             </executions>
160          </plugin>
161          -->
162
163          <!-- Checkstyle plugin - used to report on compliance with -->
164          <!-- the Google style guide. -->
165          <plugin>
166             <groupId>org.apache.maven.plugins</groupId>
167             <artifactId>maven-site-plugin</artifactId>
168             <version>3.6</version>
169          </plugin>
170          <plugin>
171             <groupId>org.sonatype.plugins</groupId>
172             <artifactId>nexus-staging-maven-plugin</artifactId>
173             <version>1.6.7</version>
174             <extensions>true</extensions>
175             <configuration>
176                <nexusUrl>${onap.nexus.url}</nexusUrl>
177                <stagingProfileId>176c31dfe190a</stagingProfileId>
178                <serverId>ecomp-staging</serverId>
179             </configuration>
180          </plugin>
181          <plugin>
182             <groupId>org.codehaus.mojo</groupId>
183             <artifactId>sonar-maven-plugin</artifactId>
184             <version>3.2</version>
185          </plugin>
186          <plugin>
187             <groupId>org.jacoco</groupId>
188             <artifactId>jacoco-maven-plugin</artifactId>
189             <version>0.7.7.201606060606</version>
190             <configuration>
191                <dumpOnExit>true</dumpOnExit>
192             </configuration>
193             <executions>
194                <execution>
195                   <id>jacoco-initialize-unit-tests</id>
196                   <goals>
197                      <goal>prepare-agent</goal>
198                   </goals>
199                   <configuration>
200                      <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
201                      <!-- <append>true</append> -->
202                   </configuration>
203                </execution>
204             </executions>
205          </plugin>
206       </plugins>
207    </build>
208
209    <reporting>
210       <plugins>
211          <plugin>
212             <groupId>org.apache.maven.plugins</groupId>
213             <artifactId>maven-checkstyle-plugin</artifactId>
214             <version>2.17</version>
215             <reportSets>
216                <reportSet>
217                   <reports>
218                      <report>checkstyle</report>
219                   </reports>
220                </reportSet>
221             </reportSets>
222          </plugin>
223       </plugins>
224    </reporting>
225
226 </project>