blob: dbf5cef5bfd8e71cbc2ea744dcb38a9c10f2a28d [file] [log] [blame]
Lusheng Ji3edab162017-08-28 16:22:14 -04001<?xml version="1.0"?>
2<!--
3================================================================================
4Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
5================================================================================
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
19ECOMP is a trademark and service mark of AT&T Intellectual Property.
20-->
21<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">
22 <modelVersion>4.0.0</modelVersion>
Lusheng Ji3edab162017-08-28 16:22:14 -040023 <parent>
Lusheng Ji0e903b92017-09-21 04:19:47 +000024 <groupId>org.onap.dcaegen2.platform.cli</groupId>
Lusheng Ji3edab162017-08-28 16:22:14 -040025 <artifactId>cli</artifactId>
vagrant533e7d72017-11-25 06:50:06 +000026 <version>1.1.0-SNAPSHOT</version>
Lusheng Ji3edab162017-08-28 16:22:14 -040027 </parent>
28 <groupId>org.onap.dcaegen2.platform.cli</groupId>
29 <artifactId>dcae-cli</artifactId>
Lusheng Ji0e903b92017-09-21 04:19:47 +000030 <name>dcaegen2-platform-cli-dcae-cli</name>
Michael Hwangb11dae52018-03-02 20:46:21 -050031 <version>2.10.0</version>
Lusheng Ji3edab162017-08-28 16:22:14 -040032 <url>http://maven.apache.org</url>
33 <properties>
34 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35 <sonar.sources>.</sonar.sources>
Lusheng Jifbd0d3f2018-03-13 12:56:21 -040036 <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
37 <sonar.python.coverage.reportPath>coverage.xml</sonar.python.coverage.reportPath>
Lusheng Ji3edab162017-08-28 16:22:14 -040038 <sonar.language>py</sonar.language>
39 <sonar.pluginName>Python</sonar.pluginName>
40 <sonar.inclusions>**/*.py</sonar.inclusions>
Lusheng Jifbd0d3f2018-03-13 12:56:21 -040041 <sonar.exclusions>tests/*,setup.py</sonar.exclusions>
Lusheng Ji3edab162017-08-28 16:22:14 -040042 </properties>
Lusheng Ji3edab162017-08-28 16:22:14 -040043 <build>
44 <finalName>${project.artifactId}-${project.version}</finalName>
45 <pluginManagement>
46 <plugins>
Lusheng Ji3d473c42017-08-30 02:43:04 +000047 <!-- the following plugins are invoked from oparent, we do not need them -->
Lusheng Ji3edab162017-08-28 16:22:14 -040048 <plugin>
49 <groupId>org.sonatype.plugins</groupId>
50 <artifactId>nexus-staging-maven-plugin</artifactId>
51 <version>1.6.7</version>
52 <configuration>
53 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
54 </configuration>
55 </plugin>
Lusheng Ji3d473c42017-08-30 02:43:04 +000056 <plugin>
57 <groupId>org.apache.maven.plugins</groupId>
58 <artifactId>maven-deploy-plugin</artifactId>
59 <!-- This version supports the "deployAtEnd" parameter -->
60 <version>2.8</version>
61 <configuration>
62 <skip>true</skip>
63 </configuration>
64 </plugin>
65 <!-- first disable the default Java plugins at various stages -->
66 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares
67 the resources dir. we do not need it -->
68 <plugin>
69 <groupId>org.apache.maven.plugins</groupId>
70 <artifactId>maven-resources-plugin</artifactId>
71 <version>2.6</version>
72 <configuration>
73 <skip>true</skip>
74 </configuration>
75 </plugin>
76 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
77 <plugin>
78 <groupId>org.apache.maven.plugins</groupId>
79 <artifactId>maven-compiler-plugin</artifactId>
80 <version>3.1</version>
81 <configuration>
82 <skip>true</skip>
83 </configuration>
84 </plugin>
85 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
86 <plugin>
87 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-jar-plugin</artifactId>
89 <version>2.4</version>
90 <executions>
91 <execution>
92 <id>default-jar</id>
93 <phase/>
94 </execution>
95 </executions>
96 </plugin>
97 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
98 target dir to ~/.m2. we do not need it -->
99 <plugin>
100 <groupId>org.apache.maven.plugins</groupId>
101 <artifactId>maven-install-plugin</artifactId>
102 <version>2.4</version>
103 <configuration>
104 <skip>true</skip>
105 </configuration>
106 </plugin>
107 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
108 we do not need it -->
109 <plugin>
110 <groupId>org.apache.maven.plugins</groupId>
111 <artifactId>maven-surefire-plugin</artifactId>
112 <version>2.12.4</version>
113 <configuration>
114 <skipTests>true</skipTests>
115 </configuration>
116 </plugin>
Lusheng Ji3edab162017-08-28 16:22:14 -0400117 </plugins>
118 </pluginManagement>
Lusheng Ji3edab162017-08-28 16:22:14 -0400119 <plugins>
120 <!-- plugin>
121 <artifactId>maven-assembly-plugin</artifactId>
122 <version>2.4.1</version>
123 <configuration>
124 <descriptors>
125 <descriptor>assembly/dep.xml</descriptor>
126 </descriptors>
127 </configuration>
128 <executions>
129 <execution>
130 <id>make-assembly</id>
131 <phase>package</phase>
132 <goals>
133 <goal>single</goal>
134 </goals>
135 </execution>
136 </executions>
137 </plugin -->
Lusheng Ji3edab162017-08-28 16:22:14 -0400138 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
139 <plugin>
140 <groupId>org.codehaus.mojo</groupId>
141 <artifactId>exec-maven-plugin</artifactId>
142 <version>1.2.1</version>
143 <executions>
144 <execution>
145 <id>clean phase script</id>
146 <phase>clean</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000147 <goals>
148 <goal>exec</goal>
149 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400150 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400151 <arguments>
152 <argument>${project.artifactId}</argument>
153 <argument>clean</argument>
154 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400155 </configuration>
156 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400157 <execution>
158 <id>generate-sources script</id>
159 <phase>generate-sources</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000160 <goals>
161 <goal>exec</goal>
162 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400163 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400164 <arguments>
165 <argument>${project.artifactId}</argument>
166 <argument>generate-sources</argument>
167 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400168 </configuration>
169 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400170 <execution>
171 <id>compile script</id>
172 <phase>compile</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000173 <goals>
174 <goal>exec</goal>
175 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400176 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400177 <arguments>
178 <argument>${project.artifactId}</argument>
179 <argument>compile</argument>
180 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400181 </configuration>
182 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400183 <execution>
184 <id>package script</id>
185 <phase>package</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000186 <goals>
187 <goal>exec</goal>
188 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400189 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400190 <arguments>
191 <argument>${project.artifactId}</argument>
192 <argument>package</argument>
193 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400194 </configuration>
195 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400196 <execution>
197 <id>test script</id>
198 <phase>test</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000199 <goals>
200 <goal>exec</goal>
201 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400202 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400203 <arguments>
204 <argument>${project.artifactId}</argument>
205 <argument>test</argument>
206 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400207 </configuration>
208 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400209 <execution>
210 <id>install script</id>
211 <phase>install</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000212 <goals>
213 <goal>exec</goal>
214 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400215 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400216 <arguments>
217 <argument>${project.artifactId}</argument>
218 <argument>install</argument>
219 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400220 </configuration>
221 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400222 <execution>
223 <id>deploy script</id>
224 <phase>deploy</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000225 <goals>
226 <goal>exec</goal>
227 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400228 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400229 <arguments>
230 <argument>${project.artifactId}</argument>
231 <argument>deploy</argument>
232 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400233 </configuration>
234 </execution>
235 </executions>
236 </plugin>
237 </plugins>
238 </build>
239</project>