blob: b70bf489aabfeb8eb0066b4813bd324c43a836e5 [file] [log] [blame]
Lusheng Ji5bc79f42017-08-29 14:20:46 +00001<?xml version="1.0"?>
2<!--
3================================================================================
Vijay Venkatesh Kumar09f97852020-02-07 04:20:32 +00004Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.
Lusheng Ji5bc79f42017-08-29 14:20:46 +00005================================================================================
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>
23 <parent>
Lusheng Ji88648fc2017-09-20 02:18:20 +000024 <groupId>org.onap.dcaegen2.utils</groupId>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000025 <artifactId>utils</artifactId>
vagrant21ec33e2017-11-25 06:17:09 +000026 <version>1.2.0-SNAPSHOT</version>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000027 </parent>
28 <groupId>org.onap.dcaegen2.utils</groupId>
Tommy Carpenterc3a485a2017-09-20 15:11:00 -040029 <artifactId>onap-dcae-cbs-docker-client</artifactId>
Lusheng Ji88648fc2017-09-20 02:18:20 +000030 <name>dcaegen2-utils-python-cbs-docker-client</name>
Hansen, Tony (th1395)51348c02021-07-20 22:05:23 +000031 <version>2.2.1-SNAPSHOT</version>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000032 <url>http://maven.apache.org</url>
33
34 <properties>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Tommy Carpenter7b310082017-09-25 11:45:12 -040036 <!-- Sonar -->
Lusheng Ji5bc79f42017-08-29 14:20:46 +000037 <sonar.sources>.</sonar.sources>
Tommy Carpenter7b310082017-09-25 11:45:12 -040038 <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
Vijay Venkatesh Kumar09f97852020-02-07 04:20:32 +000039 <sonar.python.coverage.reportPaths>coverage.xml</sonar.python.coverage.reportPaths>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000040 <sonar.language>py</sonar.language>
41 <sonar.pluginName>Python</sonar.pluginName>
42 <sonar.inclusions>**/*.py</sonar.inclusions>
Andrew Gauld373f0f32018-02-21 11:14:46 -050043 <sonar.exclusions>tests/*,setup.py</sonar.exclusions>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000044 </properties>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000045 <build>
46 <finalName>${project.artifactId}-${project.version}</finalName>
47 <pluginManagement>
48 <plugins>
49 <!-- the following plugins are invoked from oparent, we do not need them -->
Lusheng Ji5bc79f42017-08-29 14:20:46 +000050 <plugin>
51 <groupId>org.sonatype.plugins</groupId>
52 <artifactId>nexus-staging-maven-plugin</artifactId>
53 <version>1.6.7</version>
54 <configuration>
55 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
56 </configuration>
57 </plugin>
58 <plugin>
59 <groupId>org.apache.maven.plugins</groupId>
60 <artifactId>maven-deploy-plugin</artifactId>
61 <!-- This version supports the "deployAtEnd" parameter -->
62 <version>2.8</version>
63 <configuration>
64 <skip>true</skip>
65 </configuration>
66 </plugin>
Lusheng Ji5bc79f42017-08-29 14:20:46 +000067 <!-- first disable the default Java plugins at various stages -->
Tommy Carpenterc7a05822018-10-25 13:56:41 -040068 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares
Lusheng Jidbae9d32017-09-07 12:59:00 +000069 the resources dir. we do not need it -->
70 <plugin>
71 <groupId>org.apache.maven.plugins</groupId>
72 <artifactId>maven-resources-plugin</artifactId>
73 <version>2.6</version>
74 <configuration>
75 <skip>true</skip>
76 </configuration>
77 </plugin>
78 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
79 <plugin>
80 <groupId>org.apache.maven.plugins</groupId>
81 <artifactId>maven-compiler-plugin</artifactId>
82 <version>3.1</version>
83 <configuration>
84 <skip>true</skip>
85 </configuration>
86 </plugin>
87 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
88 <plugin>
89 <groupId>org.apache.maven.plugins</groupId>
90 <artifactId>maven-jar-plugin</artifactId>
91 <version>2.4</version>
92 <executions>
93 <execution>
94 <id>default-jar</id>
95 <phase/>
96 </execution>
97 </executions>
98 </plugin>
Tommy Carpenterc7a05822018-10-25 13:56:41 -040099 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
Lusheng Jidbae9d32017-09-07 12:59:00 +0000100 target dir to ~/.m2. we do not need it -->
101 <plugin>
102 <groupId>org.apache.maven.plugins</groupId>
103 <artifactId>maven-install-plugin</artifactId>
104 <version>2.4</version>
105 <configuration>
106 <skip>true</skip>
107 </configuration>
108 </plugin>
109 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
110 we do not need it -->
111 <plugin>
112 <groupId>org.apache.maven.plugins</groupId>
113 <artifactId>maven-surefire-plugin</artifactId>
114 <version>2.12.4</version>
115 <configuration>
116 <skipTests>true</skipTests>
117 </configuration>
118 </plugin>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000119 </plugins>
120 </pluginManagement>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000121 <plugins>
122 <!-- plugin>
123 <artifactId>maven-assembly-plugin</artifactId>
124 <version>2.4.1</version>
125 <configuration>
126 <descriptors>
127 <descriptor>assembly/dep.xml</descriptor>
128 </descriptors>
129 </configuration>
130 <executions>
131 <execution>
132 <id>make-assembly</id>
133 <phase>package</phase>
134 <goals>
135 <goal>single</goal>
136 </goals>
137 </execution>
138 </executions>
139 </plugin -->
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000140 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
141 <plugin>
142 <groupId>org.codehaus.mojo</groupId>
143 <artifactId>exec-maven-plugin</artifactId>
144 <version>1.2.1</version>
145 <executions>
146 <execution>
147 <id>clean phase script</id>
148 <phase>clean</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000149 <goals>
150 <goal>exec</goal>
151 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000152 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000153 <arguments>
154 <argument>${project.artifactId}</argument>
155 <argument>clean</argument>
156 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000157 </configuration>
158 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000159 <execution>
160 <id>generate-sources script</id>
161 <phase>generate-sources</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000162 <goals>
163 <goal>exec</goal>
164 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000165 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000166 <arguments>
167 <argument>${project.artifactId}</argument>
168 <argument>generate-sources</argument>
169 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000170 </configuration>
171 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000172 <execution>
173 <id>compile script</id>
174 <phase>compile</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000175 <goals>
176 <goal>exec</goal>
177 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000178 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000179 <arguments>
180 <argument>${project.artifactId}</argument>
181 <argument>compile</argument>
182 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000183 </configuration>
184 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000185 <execution>
186 <id>package script</id>
187 <phase>package</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000188 <goals>
189 <goal>exec</goal>
190 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000191 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000192 <arguments>
193 <argument>${project.artifactId}</argument>
194 <argument>package</argument>
195 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000196 </configuration>
197 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000198 <execution>
199 <id>test script</id>
200 <phase>test</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000201 <goals>
202 <goal>exec</goal>
203 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000204 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000205 <arguments>
206 <argument>${project.artifactId}</argument>
207 <argument>test</argument>
208 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000209 </configuration>
210 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000211 <execution>
212 <id>install script</id>
213 <phase>install</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000214 <goals>
215 <goal>exec</goal>
216 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000217 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000218 <arguments>
219 <argument>${project.artifactId}</argument>
220 <argument>install</argument>
221 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000222 </configuration>
223 </execution>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000224 <execution>
225 <id>deploy script</id>
226 <phase>deploy</phase>
Lusheng Jidbae9d32017-09-07 12:59:00 +0000227 <goals>
228 <goal>exec</goal>
229 </goals>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000230 <configuration>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000231 <arguments>
232 <argument>${project.artifactId}</argument>
233 <argument>deploy</argument>
234 </arguments>
Lusheng Ji5bc79f42017-08-29 14:20:46 +0000235 </configuration>
236 </execution>
237 </executions>
238 </plugin>
239 </plugins>
240 </build>
241</project>