68843adefef7815ec5d605dcee19b91c24c0fab3
[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>5.0.3-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>5.0.3-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.2</version>
100         </dependency>
101         <dependency>
102             <groupId>junit</groupId>
103             <artifactId>junit</artifactId>
104             <version>4.11</version>
105             <scope>test</scope>
106         </dependency>
107         <dependency>
108             <groupId>org.jmockit</groupId>
109             <artifactId>jmockit</artifactId>
110             <version>${jmockit.version}</version>
111             <scope>test</scope>
112         </dependency>
113         <dependency>
114             <groupId>org.jmockit</groupId>
115             <artifactId>jmockit-coverage</artifactId>
116             <version>1.19</version>
117             <scope>test</scope>
118         </dependency>
119         <dependency>
120             <groupId>javax.xml.bind</groupId>
121             <artifactId>jaxb-api</artifactId>
122             <version>2.3.0</version>
123         </dependency>
124     </dependencies>
125     <build>
126         <plugins>
127             <!--Step-2:-SonarCloud migration from SonarQube -->
128             <plugin>
129                 <groupId>org.jacoco</groupId>
130                 <artifactId>jacoco-maven-plugin</artifactId>
131                 <executions>
132                     <execution>
133                         <id>prepare-agent</id>
134                         <goals>
135                             <goal>prepare-agent</goal>
136                         </goals>
137                     </execution>
138                     <execution>
139                         <id>report</id>
140                         <goals>
141                             <goal>report</goal>
142                         </goals>
143                         <configuration>
144                             <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
145                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
146                         </configuration>
147                     </execution>
148                 </executions>
149             </plugin>
150             <plugin>
151                 <groupId>org.apache.maven.plugins</groupId>
152                 <artifactId>maven-surefire-plugin</artifactId>
153                 <version>2.22.0</version>
154                 <configuration>
155                     <argLine>
156                         -javaagent:${settings.localRepository}/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar
157                     </argLine>
158                 </configuration>
159             </plugin>
160         </plugins>
161     </build>
162 </project>