Address security vulnerabilities
[aai/champ.git] / champ-lib / 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 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24
25     <parent>
26         <groupId>org.onap.aai</groupId>
27         <artifactId>champ</artifactId>
28         <version>1.2.0-SNAPSHOT</version>
29     </parent>
30
31     <artifactId>champ-lib</artifactId>
32     <packaging>pom</packaging>
33
34     <modules>
35         <module>champ-core</module>
36         <module>champ-titan</module>
37         <module>champ-janus</module>
38     </modules>
39
40     <properties>
41         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
42         <!--<absoluteDistFilesRoot>/appl/${project.artifactId}</absoluteDistFilesRoot>-->
43
44         <!--&lt;!&ndash; For NO Versioning, REMOVE the /${project.version} from the <distFilesRoot>-->
45         <!--property, below. PLEASE, NOTE: If your ${project.version} is a "-SNAPSHOT"-->
46         <!--version, THIS will be used as your directory structure. If you do NOT want-->
47         <!--this, simply remove the "-SNAPSHOT" from your <version> declaration at the-->
48         <!--top of pom.xml &ndash;&gt;-->
49         <!--<distFilesRoot>/appl/${project.artifactId}/${project.version}</distFilesRoot>-->
50     </properties>
51
52     <dependencies>
53         <dependency>
54             <groupId>junit</groupId>
55             <artifactId>junit</artifactId>
56             <version>4.12</version>
57             <scope>test</scope>
58         </dependency>
59         <dependency>
60             <groupId>jdk.tools</groupId>
61             <artifactId>jdk.tools</artifactId>
62             <version>1.8</version>
63             <scope>system</scope>
64             <systemPath>${java.home}/../lib/tools.jar</systemPath>
65         </dependency>
66         <dependency>
67             <groupId>org.jacoco</groupId>
68             <artifactId>org.jacoco.agent</artifactId>
69             <version>0.7.9</version>
70             <classifier>runtime</classifier>
71             <scope>test</scope>
72         </dependency>
73     </dependencies>
74
75     <build>
76         <plugins>
77             <plugin>
78                 <groupId>org.jacoco</groupId>
79                 <artifactId>jacoco-maven-plugin</artifactId>
80                 <version>0.7.9</version>
81                 <configuration>
82                     <excludes>
83                         <!-- These three need to be included again at some point -->
84                         <exclude>**/AbstractGremlinChampGraph*</exclude>
85                         <exclude>**/DseChampGraphImpl*</exclude>
86                         <exclude>**/DseChampformer*</exclude>
87                         <!-- Permanently excluded, not worth testing -->
88                         <exclude>**/ChampAPIPerformanceTest*</exclude>
89                     </excludes>
90                 </configuration>
91                 <executions>
92                     <execution>
93                         <id>default-prepare-agent</id>
94                         <goals>
95                             <goal>prepare-agent</goal>
96                         </goals>
97                     </execution>
98                     <execution>
99                         <id>default-report</id>
100                         <phase>prepare-package</phase>
101                         <goals>
102                             <goal>report</goal>
103                         </goals>
104                     </execution>
105                     <execution>
106                         <id>default-check</id>
107                         <goals>
108                             <goal>check</goal>
109                         </goals>
110                         <configuration>
111                             <rules>
112                                 <!--  implementation is needed only for Maven 2  -->
113                                 <rule implementation="org.jacoco.maven.RuleConfiguration">
114                                     <element>BUNDLE</element>
115                                     <limits>
116                                         <!--  implementation is needed only for Maven 2  -->
117                                         <limit implementation="org.jacoco.report.check.Limit">
118                                             <counter>INSTRUCTION</counter>
119                                             <value>COVEREDRATIO</value>
120                                             <minimum>.15</minimum>
121                                         </limit>
122                                         <limit implementation="org.jacoco.report.check.Limit">
123                                             <counter>BRANCH</counter>
124                                             <value>COVEREDRATIO</value>
125                                             <minimum>.12</minimum>
126                                         </limit>
127                                         <limit implementation="org.jacoco.report.check.Limit">
128                                             <counter>COMPLEXITY</counter>
129                                             <value>COVEREDRATIO</value>
130                                             <minimum>.15</minimum>
131                                         </limit>
132                                         <limit implementation="org.jacoco.report.check.Limit">
133                                             <counter>LINE</counter>
134                                             <value>COVEREDRATIO</value>
135                                             <minimum>.10</minimum>
136                                         </limit>
137                                         <limit implementation="org.jacoco.report.check.Limit">
138                                             <counter>METHOD</counter>
139                                             <value>COVEREDRATIO</value>
140                                             <minimum>.17</minimum>
141                                         </limit>
142                                         <limit implementation="org.jacoco.report.check.Limit">
143                                             <counter>CLASS</counter>
144                                             <value>MISSEDCOUNT</value>
145                                             <maximum>5</maximum>
146                                         </limit>
147                                     </limits>
148                                 </rule>
149                             </rules>
150                         </configuration>
151                     </execution>
152                 </executions>
153             </plugin>
154             <plugin>
155                 <groupId>org.apache.maven.plugins</groupId>
156                 <artifactId>maven-compiler-plugin</artifactId>
157                 <version>3.6.1</version>
158                 <configuration>
159                     <source>1.8</source>
160                     <target>1.8</target>
161                 </configuration>
162             </plugin>
163             <plugin>
164                 <artifactId>maven-release-plugin</artifactId>
165                 <version>2.4.2</version>
166                 <dependencies>
167                     <dependency>
168                         <groupId>org.apache.maven.scm</groupId>
169                         <artifactId>maven-scm-provider-gitexe</artifactId>
170                         <version>1.8.1</version>
171                     </dependency>
172                 </dependencies>
173             </plugin>
174             <plugin>
175                 <groupId>org.apache.maven.plugins</groupId>
176                 <artifactId>maven-source-plugin</artifactId>
177                 <version>3.0.1</version>
178                 <executions>
179                     <execution>
180                         <id>attach-sources</id>
181                         <goals>
182                             <goal>jar</goal>
183                         </goals>
184                     </execution>
185                 </executions>
186             </plugin>
187             <plugin>
188                 <groupId>org.apache.maven.plugins</groupId>
189                 <artifactId>maven-javadoc-plugin</artifactId>
190                 <version>2.9.1</version>
191                 <executions>
192                     <execution>
193                         <id>attach-javadocs</id>
194                         <goals>
195                             <goal>jar</goal>
196                         </goals>
197                     </execution>
198                 </executions>
199             </plugin>
200             <plugin>
201                 <groupId>org.apache.maven.plugins</groupId>
202                 <artifactId>maven-surefire-plugin</artifactId>
203                 <version>2.12.2</version>
204                 <configuration>
205                     <systemPropertyVariables>
206                         <jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
207                     </systemPropertyVariables>
208                 </configuration>
209             </plugin>
210             <plugin>
211                 <groupId>org.apache.maven.plugins</groupId>
212                 <artifactId>maven-deploy-plugin</artifactId>
213                 <configuration>
214                     <skip>true</skip>
215                 </configuration>
216             </plugin>
217             <plugin>
218                 <groupId>com.mycila</groupId>
219                 <artifactId>license-maven-plugin</artifactId>
220                 <version>3.0</version>
221                 <configuration>
222                     <header>License.txt</header>
223                     <includes>
224                         <include>**/*.java</include>
225                         <include>**/*.ksh</include>
226                         <include>**/*.sh</include>
227                         <include>**/*.ftl</include>
228                         <include>**/*.xsd</include>
229                         <include>**/*.xjb</include>
230                         <include>**/*.yml</include>
231                         <include>**/*.yaml</include>
232                         <include>**/aai*.xml</include>
233                         <include>**/*logback*.xml</include>
234                         <include>**/*aaiconfig*.properties</include>
235                         <include>**/*titan*.properties</include>
236                     </includes>
237                     <skipExistingHeaders>true</skipExistingHeaders>
238                 </configuration>
239                 <executions>
240                     <execution>
241                         <goals>
242                             <!-- Set goal to "format" to auto update license headers -->
243                             <goal>check</goal>
244                         </goals>
245                         <phase>process-sources</phase>
246                     </execution>
247                 </executions>
248             </plugin>
249         </plugins>
250     </build>
251 </project>