Merge "Upversion router core in prep for branch"
[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       </dependency>
68       <!-- Dependencies for the REST Client component -->
69       <!-- Library to obfuscate encrypted passwords -->
70       <dependency>
71          <groupId>org.eclipse.jetty</groupId>
72          <artifactId>jetty-security</artifactId>
73          <version>9.3.8.RC0</version>
74       </dependency>
75       <!-- ECOMP REST Client Library. -->
76       <dependency>
77          <groupId>org.onap.aai</groupId>
78          <artifactId>rest-client</artifactId>
79          <version>1.1.0</version>
80       </dependency>
81       <!-- End REST Client specific dependencies. -->
82       <!-- testing -->
83       <dependency>
84          <groupId>org.apache.camel</groupId>
85          <artifactId>camel-test</artifactId>
86          <version>2.20.1</version>
87          <scope>test</scope>
88       </dependency>
89    </dependencies>
90    <build>
91       <defaultGoal>install</defaultGoal>
92       <plugins>
93          <plugin>
94             <groupId>org.apache.maven.plugins</groupId>
95             <artifactId>maven-compiler-plugin</artifactId>
96             <version>2.5.1</version>
97             <configuration>
98                <source>1.8</source>
99                <target>1.8</target>
100             </configuration>
101          </plugin>
102          <plugin>
103             <groupId>org.apache.maven.plugins</groupId>
104             <artifactId>maven-resources-plugin</artifactId>
105             <version>2.6</version>
106             <configuration>
107                <encoding>UTF-8</encoding>
108             </configuration>
109          </plugin>
110          <!-- to generate the MANIFEST-FILE of the bundle -->
111          <plugin>
112             <groupId>org.apache.felix</groupId>
113             <artifactId>maven-bundle-plugin</artifactId>
114             <version>2.3.7</version>
115             <extensions>true</extensions>
116             <configuration>
117                <instructions>
118                   <Bundle-SymbolicName>org.onap.aai.router-core</Bundle-SymbolicName>
119                   <Export-Service>org.apache.camel.spi.ComponentResolver;component=event-bus</Export-Service>
120                </instructions>
121             </configuration>
122          </plugin>
123          <!-- license plugin -->
124          <!-- Uncomment this to add a license header to every source file
125          <plugin>
126             <groupId>com.mycila</groupId>
127             <artifactId>license-maven-plugin</artifactId>
128             <version>3.0</version>
129             <configuration>
130                <header>License.txt</header>
131                <includes>
132                   <include>src/main/java/**</include>
133                </includes>
134             </configuration>
135             <executions>
136                <execution>
137                   <goals>
138                      <goal>format</goal>
139                   </goals>
140                   <phase>process-sources</phase>
141                </execution>
142             </executions>
143          </plugin>
144          -->
145
146          <!-- Checkstyle plugin - used to report on compliance with -->
147          <!-- the Google style guide. -->
148          <plugin>
149             <groupId>org.apache.maven.plugins</groupId>
150             <artifactId>maven-site-plugin</artifactId>
151             <version>3.6</version>
152          </plugin>
153          <plugin>
154             <groupId>org.sonatype.plugins</groupId>
155             <artifactId>nexus-staging-maven-plugin</artifactId>
156             <version>1.6.7</version>
157             <extensions>true</extensions>
158             <configuration>
159                <nexusUrl>${onap.nexus.url}</nexusUrl>
160                <stagingProfileId>176c31dfe190a</stagingProfileId>
161                <serverId>ecomp-staging</serverId>
162             </configuration>
163          </plugin>
164          <plugin>
165             <groupId>org.codehaus.mojo</groupId>
166             <artifactId>sonar-maven-plugin</artifactId>
167             <version>3.2</version>
168          </plugin>
169          <plugin>
170             <groupId>org.jacoco</groupId>
171             <artifactId>jacoco-maven-plugin</artifactId>
172             <version>0.7.7.201606060606</version>
173             <configuration>
174                <dumpOnExit>true</dumpOnExit>
175             </configuration>
176             <executions>
177                <execution>
178                   <id>jacoco-initialize-unit-tests</id>
179                   <goals>
180                      <goal>prepare-agent</goal>
181                   </goals>
182                   <configuration>
183                      <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
184                      <!-- <append>true</append> -->
185                   </configuration>
186                </execution>
187             </executions>
188          </plugin>
189       </plugins>
190    </build>
191
192    <reporting>
193       <plugins>
194          <plugin>
195             <groupId>org.apache.maven.plugins</groupId>
196             <artifactId>maven-checkstyle-plugin</artifactId>
197             <version>2.17</version>
198             <reportSets>
199                <reportSet>
200                   <reports>
201                      <report>checkstyle</report>
202                   </reports>
203                </reportSet>
204             </reportSets>
205          </plugin>
206       </plugins>
207    </reporting>
208
209 </project>