Set version to 6.0.0
[cli.git] / main / 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.0-SNAPSHOT</version>
28     </parent>
29
30     <artifactId>cli-main</artifactId>
31     <name>cli/main</name>
32     <packaging>jar</packaging>
33     <!--Step-1:- SonarCloud migration from SonarQube -->
34     <properties>
35         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36         <sonar.language>java</sonar.language>
37         <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
38         <sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
39         <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
40         <sonar.projectVersion>${project.version}</sonar.projectVersion>
41         <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
42     </properties>
43     <dependencies>
44         <dependency>
45             <groupId>org.onap.cli</groupId>
46             <artifactId>cli-sample-yaml-generator</artifactId>
47             <version>${project.version}</version>
48         </dependency>
49         <dependency>
50             <groupId>org.onap.cli</groupId>
51             <artifactId>cli-framework</artifactId>
52             <version>${project.parent.version}</version>
53         </dependency>
54         <dependency>
55             <groupId>jline</groupId>
56             <artifactId>jline</artifactId>
57             <version>2.14.3</version>
58         </dependency>
59             <dependency>
60             <groupId>junit</groupId>
61             <artifactId>junit</artifactId>
62             <version>4.11</version>
63             <scope>test</scope>
64         </dependency>
65         <dependency>
66             <groupId>org.jmockit</groupId>
67             <artifactId>jmockit</artifactId>
68             <version>${jmockit.version}</version>
69             <scope>test</scope>
70         </dependency>
71         <dependency>
72             <groupId>org.jmockit</groupId>
73             <artifactId>jmockit-coverage</artifactId>
74             <version>1.19</version>
75             <scope>test</scope>
76         </dependency>
77     </dependencies>
78     <build>
79         <plugins>
80             <!--Step-2:- SonarCloud migration from SonarQube -->
81             <plugin>
82                 <groupId>org.jacoco</groupId>
83                 <artifactId>jacoco-maven-plugin</artifactId>
84                 <executions>
85                     <execution>
86                         <id>prepare-agent</id>
87                         <goals>
88                             <goal>prepare-agent</goal>
89                         </goals>
90                     </execution>
91                     <execution>
92                         <id>report</id>
93                         <goals>
94                             <goal>report</goal>
95                         </goals>
96                         <configuration>
97                             <dataFile>${project.build.directory}/code-coverage/jacoco.exec</dataFile>
98                             <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
99                         </configuration>
100                     </execution>
101                 </executions>
102             </plugin>
103           <plugin>
104                 <groupId>org.apache.maven.plugins</groupId>
105                 <artifactId>maven-jar-plugin</artifactId>
106                 <configuration>
107                     <archive>
108                         <manifest>
109                             <addClasspath>true</addClasspath>
110                             <mainClass>org.onap.cli.main.OnapCli</mainClass>
111                         </manifest>
112                     </archive>
113                 </configuration>
114             </plugin>
115
116           <plugin>
117             <groupId>org.apache.maven.plugins</groupId>
118             <artifactId>maven-dependency-plugin</artifactId>
119             <version>3.0.0</version>
120             <executions>
121               <execution>
122                 <id>copy-dependencies</id>
123                 <phase>package</phase>
124                 <goals>
125                   <goal>copy-dependencies</goal>
126                 </goals>
127                 <configuration>
128                   <outputDirectory>${project.build.directory}/lib</outputDirectory>
129                   <overWriteReleases>false</overWriteReleases>
130                   <overWriteSnapshots>false</overWriteSnapshots>
131                   <overWriteIfNewer>true</overWriteIfNewer>
132                   <excludeArtifactIds>junit,jmockit</excludeArtifactIds>
133                 </configuration>
134               </execution>
135             </executions>
136           </plugin>
137             <plugin>
138                 <groupId>org.apache.maven.plugins</groupId>
139                 <artifactId>maven-surefire-plugin</artifactId>
140                 <version>2.22.0</version>
141                 <configuration>
142                     <argLine>
143                         -javaagent:${settings.localRepository}/org/jmockit/jmockit/${jmockit.version}/jmockit-${jmockit.version}.jar
144                     </argLine>
145                 </configuration>
146             </plugin>
147         </plugins>
148   </build>
149
150 </project>