c514265b76572f5051dcf50452111e8fc4a31a77
[cli.git] / framework / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3    Copyright 2017 Huawei Technologies Co., Ltd.
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16  -->
17
18 <project xmlns="http://maven.apache.org/POM/4.0.0"
19          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
21          http://maven.apache.org/xsd/maven-4.0.0.xsd">
22     <modelVersion>4.0.0</modelVersion>
23
24     <parent>
25         <groupId>org.onap.cli</groupId>
26         <artifactId>cli</artifactId>
27         <version>6.0.1-SNAPSHOT</version>
28     </parent>
29
30     <artifactId>cli-framework</artifactId>
31
32     <name>cli/framework</name>
33
34     <packaging>jar</packaging>
35     <!--Step-1:- SonarCloud migration from SonarQube -->
36     <properties>
37         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
38         <sonar.language>java</sonar.language>
39         <sonar.surefire.reportsPath>${project.build.directory}/surefire123-reports</sonar.surefire.reportsPath>
40         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
41         <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
42         <sonar.projectVersion>${project.version}</sonar.projectVersion>
43         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
44     </properties>
45     <dependencies>
46         <dependency>
47             <groupId>org.onap.cli</groupId>
48             <artifactId>oclip-grpc-client</artifactId>
49             <version>6.0.1-SNAPSHOT</version>
50         </dependency>
51         <dependency>
52             <groupId>com.esotericsoftware.yamlbeans</groupId>
53             <artifactId>yamlbeans</artifactId>
54             <version>1.13</version>
55         </dependency>
56         <dependency>
57             <groupId>org.apache.logging.log4j</groupId>
58             <artifactId>log4j-slf4j-impl</artifactId>
59             <version>2.13.0</version>
60             <exclusions>
61                 <exclusion>
62                     <groupId>org.slf4j</groupId>
63                     <artifactId>slf4j-ext</artifactId>
64                 </exclusion>
65             </exclusions>
66         </dependency>
67         <dependency>
68             <groupId>org.apache.commons</groupId>
69             <artifactId>commons-csv</artifactId>
70             <version>1.3</version>
71         </dependency>
72 <!-- Change version from 1.9 to 1.13 due to "sonatype-2012-
73     0050" for commons-codec -->
74         <dependency>
75             <groupId>commons-codec</groupId>
76             <artifactId>commons-codec</artifactId>
77             <version>1.14</version>
78         </dependency>
79         <dependency>
80             <groupId>commons-io</groupId>
81             <artifactId>commons-io</artifactId>
82             <version>2.7</version>
83         </dependency>
84 <!-- Change version from 3.2.9 to 5.1.2 due to "sonatype-2015-
85     0327" for spring-core -->
86         <dependency>
87             <groupId>org.springframework</groupId>
88             <artifactId>spring-core</artifactId>
89             <version>5.1.2.RELEASE</version>
90         </dependency>
91         <dependency>
92             <groupId>com.jayway.jsonpath</groupId>
93             <artifactId>json-path</artifactId>
94             <version>2.2.0</version>
95         </dependency>
96         <dependency>
97             <groupId>com.google.code.gson</groupId>
98             <artifactId>gson</artifactId>
99             <version>2.8.9</version>
100         </dependency>
101         <dependency>
102             <groupId>com.fasterxml.jackson.core</groupId>
103             <artifactId>jackson-databind</artifactId>
104             <version>2.12.1</version>
105             <exclusions>
106                 <exclusion>
107                     <groupId>com.fasterxml.jackson.core</groupId>
108                     <artifactId>jackson-core</artifactId>
109                 </exclusion>
110             </exclusions>
111         </dependency>
112         <dependency>
113             <groupId>com.fasterxml.jackson.core</groupId>
114             <artifactId>jackson-core</artifactId>
115             <version>2.12.1</version>
116         </dependency>
117         <dependency>
118             <groupId>com.fasterxml.jackson.dataformat</groupId>
119             <artifactId>jackson-dataformat-yaml</artifactId>
120             <version>2.11.0</version>
121         </dependency>
122         <dependency>
123             <groupId>junit</groupId>
124             <artifactId>junit</artifactId>
125             <version>4.11</version>
126             <scope>test</scope>
127         </dependency>
128         <dependency>
129             <groupId>org.jmockit</groupId>
130             <artifactId>jmockit</artifactId>
131             <version>${jmockit.version}</version>
132             <scope>test</scope>
133         </dependency>
134         <dependency>
135             <groupId>org.jmockit</groupId>
136             <artifactId>jmockit-coverage</artifactId>
137             <version>1.19</version>
138             <scope>test</scope>
139         </dependency>
140         <dependency>
141             <groupId>javax.xml.bind</groupId>
142             <artifactId>jaxb-api</artifactId>
143             <version>2.3.0</version>
144         </dependency>
145     </dependencies>
146     <build>
147         <plugins>
148             <!--Step-2:-SonarCloud migration from SonarQube -->
149             <plugin>
150                 <groupId>org.jacoco</groupId>
151                 <artifactId>jacoco-maven-plugin</artifactId>
152                 <executions>
153                     <execution>
154                         <id>prepare-agent</id>
155                         <goals>
156                             <goal>prepare-agent</goal>
157                         </goals>
158                     </execution>
159                     <execution>
160                         <id>report</id>
161                         <goals>
162                             <goal>report</goal>
163                         </goals>
164                         <configuration>
165                             <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
166                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
167                         </configuration>
168                     </execution>
169                 </executions>
170             </plugin>
171             <plugin>
172                 <groupId>org.apache.maven.plugins</groupId>
173                 <artifactId>maven-surefire-plugin</artifactId>
174                 <version>2.22.0</version>
175                 <configuration>
176                     <argLine>
177                         -javaagent:${settings.localRepository}/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar
178                         ${surefireArgLine}
179                     </argLine>
180                 </configuration>
181             </plugin>
182         </plugins>
183     </build>
184 </project>