blob: e9a5a91cdc8da1686eb6cbd0e248de0820abc11d [file] [log] [blame]
Lusheng Ji3edab162017-08-28 16:22:14 -04001<?xml version="1.0"?>
2<!--
3================================================================================
Vijay Venkatesh Kumarc5bfc892019-07-20 03:24:28 +00004Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved.
Lusheng Ji3edab162017-08-28 16:22:14 -04005================================================================================
6Licensed under the Apache License, Version 2.0 (the "License");
7you may not use this file except in compliance with the License.
8You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing, software
13distributed under the License is distributed on an "AS IS" BASIS,
14WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15See the License for the specific language governing permissions and
16limitations under the License.
17============LICENSE_END=========================================================
18
Lusheng Ji3edab162017-08-28 16:22:14 -040019-->
20<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/xsd/maven-4.0.0.xsd">
21 <modelVersion>4.0.0</modelVersion>
Lusheng Ji3edab162017-08-28 16:22:14 -040022 <parent>
Lusheng Ji0e903b92017-09-21 04:19:47 +000023 <groupId>org.onap.dcaegen2.platform.cli</groupId>
Lusheng Ji3edab162017-08-28 16:22:14 -040024 <artifactId>cli</artifactId>
rajendrajaiswal686dc4e2019-06-14 14:35:34 +010025 <version>1.2.0-SNAPSHOT</version>
Lusheng Ji3edab162017-08-28 16:22:14 -040026 </parent>
27 <groupId>org.onap.dcaegen2.platform.cli</groupId>
28 <artifactId>dcae-cli</artifactId>
Lusheng Ji0e903b92017-09-21 04:19:47 +000029 <name>dcaegen2-platform-cli-dcae-cli</name>
tb2541onapc306f892018-10-15 13:26:39 -040030 <version>2.11.1</version>
Lusheng Ji3edab162017-08-28 16:22:14 -040031 <url>http://maven.apache.org</url>
32 <properties>
33 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34 <sonar.sources>.</sonar.sources>
Lusheng Jifbd0d3f2018-03-13 12:56:21 -040035 <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
36 <sonar.python.coverage.reportPath>coverage.xml</sonar.python.coverage.reportPath>
Lusheng Ji3edab162017-08-28 16:22:14 -040037 <sonar.language>py</sonar.language>
38 <sonar.pluginName>Python</sonar.pluginName>
39 <sonar.inclusions>**/*.py</sonar.inclusions>
Lusheng Jifbd0d3f2018-03-13 12:56:21 -040040 <sonar.exclusions>tests/*,setup.py</sonar.exclusions>
Lusheng Ji3edab162017-08-28 16:22:14 -040041 </properties>
Lusheng Ji3edab162017-08-28 16:22:14 -040042 <build>
43 <finalName>${project.artifactId}-${project.version}</finalName>
44 <pluginManagement>
45 <plugins>
Lusheng Ji3d473c42017-08-30 02:43:04 +000046 <plugin>
Vijay Venkatesh Kumarc5bfc892019-07-20 03:24:28 +000047 <groupId>org.sonatype.plugins</groupId>
48 <artifactId>nexus-staging-maven-plugin</artifactId>
49 <version>1.6.7</version>
50 <configuration>
51 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
52 </configuration>
53 </plugin>
54 <plugin>
Lusheng Ji3d473c42017-08-30 02:43:04 +000055 <groupId>org.apache.maven.plugins</groupId>
56 <artifactId>maven-deploy-plugin</artifactId>
57 <!-- This version supports the "deployAtEnd" parameter -->
58 <version>2.8</version>
59 <configuration>
60 <skip>true</skip>
61 </configuration>
62 </plugin>
63 <!-- first disable the default Java plugins at various stages -->
rajendrajaiswal686dc4e2019-06-14 14:35:34 +010064 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares
Lusheng Ji3d473c42017-08-30 02:43:04 +000065 the resources dir. we do not need it -->
66 <plugin>
67 <groupId>org.apache.maven.plugins</groupId>
68 <artifactId>maven-resources-plugin</artifactId>
69 <version>2.6</version>
70 <configuration>
71 <skip>true</skip>
72 </configuration>
73 </plugin>
74 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
75 <plugin>
76 <groupId>org.apache.maven.plugins</groupId>
77 <artifactId>maven-compiler-plugin</artifactId>
78 <version>3.1</version>
79 <configuration>
80 <skip>true</skip>
81 </configuration>
82 </plugin>
83 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
84 <plugin>
85 <groupId>org.apache.maven.plugins</groupId>
86 <artifactId>maven-jar-plugin</artifactId>
87 <version>2.4</version>
88 <executions>
89 <execution>
90 <id>default-jar</id>
91 <phase/>
92 </execution>
93 </executions>
94 </plugin>
rajendrajaiswal686dc4e2019-06-14 14:35:34 +010095 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
Lusheng Ji3d473c42017-08-30 02:43:04 +000096 target dir to ~/.m2. we do not need it -->
97 <plugin>
98 <groupId>org.apache.maven.plugins</groupId>
99 <artifactId>maven-install-plugin</artifactId>
100 <version>2.4</version>
101 <configuration>
102 <skip>true</skip>
103 </configuration>
104 </plugin>
105 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
106 we do not need it -->
107 <plugin>
108 <groupId>org.apache.maven.plugins</groupId>
109 <artifactId>maven-surefire-plugin</artifactId>
110 <version>2.12.4</version>
111 <configuration>
112 <skipTests>true</skipTests>
113 </configuration>
114 </plugin>
Lusheng Ji3edab162017-08-28 16:22:14 -0400115 </plugins>
116 </pluginManagement>
Lusheng Ji3edab162017-08-28 16:22:14 -0400117 <plugins>
118 <!-- plugin>
119 <artifactId>maven-assembly-plugin</artifactId>
120 <version>2.4.1</version>
121 <configuration>
122 <descriptors>
123 <descriptor>assembly/dep.xml</descriptor>
124 </descriptors>
125 </configuration>
126 <executions>
127 <execution>
128 <id>make-assembly</id>
129 <phase>package</phase>
130 <goals>
131 <goal>single</goal>
132 </goals>
133 </execution>
134 </executions>
135 </plugin -->
Lusheng Ji3edab162017-08-28 16:22:14 -0400136 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
137 <plugin>
138 <groupId>org.codehaus.mojo</groupId>
139 <artifactId>exec-maven-plugin</artifactId>
140 <version>1.2.1</version>
141 <executions>
142 <execution>
143 <id>clean phase script</id>
144 <phase>clean</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000145 <goals>
146 <goal>exec</goal>
147 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400148 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400149 <arguments>
150 <argument>${project.artifactId}</argument>
151 <argument>clean</argument>
152 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400153 </configuration>
154 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400155 <execution>
156 <id>generate-sources script</id>
157 <phase>generate-sources</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000158 <goals>
159 <goal>exec</goal>
160 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400161 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400162 <arguments>
163 <argument>${project.artifactId}</argument>
164 <argument>generate-sources</argument>
165 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400166 </configuration>
167 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400168 <execution>
169 <id>compile script</id>
170 <phase>compile</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000171 <goals>
172 <goal>exec</goal>
173 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400174 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400175 <arguments>
176 <argument>${project.artifactId}</argument>
177 <argument>compile</argument>
178 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400179 </configuration>
180 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400181 <execution>
182 <id>package script</id>
183 <phase>package</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000184 <goals>
185 <goal>exec</goal>
186 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400187 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400188 <arguments>
189 <argument>${project.artifactId}</argument>
190 <argument>package</argument>
191 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400192 </configuration>
193 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400194 <execution>
195 <id>test script</id>
196 <phase>test</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000197 <goals>
198 <goal>exec</goal>
199 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400200 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400201 <arguments>
202 <argument>${project.artifactId}</argument>
203 <argument>test</argument>
204 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400205 </configuration>
206 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400207 <execution>
208 <id>install script</id>
209 <phase>install</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000210 <goals>
211 <goal>exec</goal>
212 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400213 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400214 <arguments>
215 <argument>${project.artifactId}</argument>
216 <argument>install</argument>
217 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400218 </configuration>
219 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400220 <execution>
221 <id>deploy script</id>
222 <phase>deploy</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000223 <goals>
224 <goal>exec</goal>
225 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400226 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400227 <arguments>
228 <argument>${project.artifactId}</argument>
229 <argument>deploy</argument>
230 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400231 </configuration>
232 </execution>
233 </executions>
234 </plugin>
235 </plugins>
236 </build>
237</project>