blob: 8e9fad082c9a0f34cf5ced830b560ee56bb94362 [file] [log] [blame]
Andrew Gauld8c776e12018-02-16 12:22:23 -05001<?xml version="1.0"?>
2<!--
3================================================================================
Vijay Venkatesh Kumar09f97852020-02-07 04:20:32 +00004Copyright (c) 2018-2020 AT&T Intellectual Property. All rights reserved.
Andrew Gauld8c776e12018-02-16 12:22:23 -05005================================================================================
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
Andrew Gauld8c776e12018-02-16 12:22:23 -050019-->
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>
22 <parent>
23 <groupId>org.onap.dcaegen2.utils</groupId>
24 <artifactId>utils</artifactId>
vagrantc1e664e2018-07-31 19:05:35 +000025 <version>1.2.1-SNAPSHOT</version>
Andrew Gauld8c776e12018-02-16 12:22:23 -050026 </parent>
27 <groupId>org.onap.dcaegen2.utils</groupId>
28 <artifactId>dcaeapplib</artifactId>
29 <name>dcaeapplib</name>
30 <version>0.0.3-SNAPSHOT</version>
31 <url>http://maven.apache.org</url>
32
33 <properties>
34 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Andrew Gauld8c776e12018-02-16 12:22:23 -050035 <sonar.sources>.</sonar.sources>
36 <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
Vijay Venkatesh Kumar09f97852020-02-07 04:20:32 +000037 <sonar.python.coverage.reportPaths>coverage.xml</sonar.python.coverage.reportPaths>
Andrew Gauld8c776e12018-02-16 12:22:23 -050038 <sonar.language>py</sonar.language>
39 <sonar.pluginName>Python</sonar.pluginName>
40 <sonar.inclusions>**/*.py</sonar.inclusions>
Andrew Gauld373f0f32018-02-21 11:14:46 -050041 <sonar.exclusions>tests/*,setup.py</sonar.exclusions>
Andrew Gauld8c776e12018-02-16 12:22:23 -050042 </properties>
43 <build>
44 <finalName>${project.artifactId}-${project.version}</finalName>
45 <pluginManagement>
46 <plugins>
47 <!-- the following plugins are invoked from oparent, we do not need them -->
48 <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>
56 <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>
117 </plugins>
118 </pluginManagement>
119 <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 -->
138 <!-- 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>
147 <goals>
148 <goal>exec</goal>
149 </goals>
150 <configuration>
151 <arguments>
152 <argument>${project.artifactId}</argument>
153 <argument>clean</argument>
154 </arguments>
155 </configuration>
156 </execution>
157 <execution>
158 <id>generate-sources script</id>
159 <phase>generate-sources</phase>
160 <goals>
161 <goal>exec</goal>
162 </goals>
163 <configuration>
164 <arguments>
165 <argument>${project.artifactId}</argument>
166 <argument>generate-sources</argument>
167 </arguments>
168 </configuration>
169 </execution>
170 <execution>
171 <id>compile script</id>
172 <phase>compile</phase>
173 <goals>
174 <goal>exec</goal>
175 </goals>
176 <configuration>
177 <arguments>
178 <argument>${project.artifactId}</argument>
179 <argument>compile</argument>
180 </arguments>
181 </configuration>
182 </execution>
183 <execution>
184 <id>package script</id>
185 <phase>package</phase>
186 <goals>
187 <goal>exec</goal>
188 </goals>
189 <configuration>
190 <arguments>
191 <argument>${project.artifactId}</argument>
192 <argument>package</argument>
193 </arguments>
194 </configuration>
195 </execution>
196 <execution>
197 <id>test script</id>
198 <phase>test</phase>
199 <goals>
200 <goal>exec</goal>
201 </goals>
202 <configuration>
203 <arguments>
204 <argument>${project.artifactId}</argument>
205 <argument>test</argument>
206 </arguments>
207 </configuration>
208 </execution>
209 <execution>
210 <id>install script</id>
211 <phase>install</phase>
212 <goals>
213 <goal>exec</goal>
214 </goals>
215 <configuration>
216 <arguments>
217 <argument>${project.artifactId}</argument>
218 <argument>install</argument>
219 </arguments>
220 </configuration>
221 </execution>
222 <execution>
223 <id>deploy script</id>
224 <phase>deploy</phase>
225 <goals>
226 <goal>exec</goal>
227 </goals>
228 <configuration>
229 <arguments>
230 <argument>${project.artifactId}</argument>
231 <argument>deploy</argument>
232 </arguments>
233 </configuration>
234 </execution>
235 </executions>
236 </plugin>
237 </plugins>
238 </build>
239</project>