blob: 66e73da1313f78d6ccf4568ba2ade45b9b39c087 [file] [log] [blame]
Andrew Gauld8c776e12018-02-16 12:22:23 -05001<?xml version="1.0"?>
2<!--
3================================================================================
4Copyright (c) 2018 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>
23 <parent>
24 <groupId>org.onap.dcaegen2.utils</groupId>
25 <artifactId>utils</artifactId>
26 <version>1.2.0-SNAPSHOT</version>
27 </parent>
28 <groupId>org.onap.dcaegen2.utils</groupId>
29 <artifactId>dcaeapplib</artifactId>
30 <name>dcaeapplib</name>
31 <version>0.0.3-SNAPSHOT</version>
32 <url>http://maven.apache.org</url>
33
34 <properties>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36
37 <sonar.sources>.</sonar.sources>
38 <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
39 <sonar.python.coverage.reportPath>coverage.xml</sonar.python.coverage.reportPath>
40 <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>
Andrew Gauld8c776e12018-02-16 12:22:23 -050044 </properties>
45 <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 -->
50 <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>
67 <!-- first disable the default Java plugins at various stages -->
68 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares
69 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>
99 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
100 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>
119 </plugins>
120 </pluginManagement>
121 <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 -->
140 <!-- 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>
149 <goals>
150 <goal>exec</goal>
151 </goals>
152 <configuration>
153 <arguments>
154 <argument>${project.artifactId}</argument>
155 <argument>clean</argument>
156 </arguments>
157 </configuration>
158 </execution>
159 <execution>
160 <id>generate-sources script</id>
161 <phase>generate-sources</phase>
162 <goals>
163 <goal>exec</goal>
164 </goals>
165 <configuration>
166 <arguments>
167 <argument>${project.artifactId}</argument>
168 <argument>generate-sources</argument>
169 </arguments>
170 </configuration>
171 </execution>
172 <execution>
173 <id>compile script</id>
174 <phase>compile</phase>
175 <goals>
176 <goal>exec</goal>
177 </goals>
178 <configuration>
179 <arguments>
180 <argument>${project.artifactId}</argument>
181 <argument>compile</argument>
182 </arguments>
183 </configuration>
184 </execution>
185 <execution>
186 <id>package script</id>
187 <phase>package</phase>
188 <goals>
189 <goal>exec</goal>
190 </goals>
191 <configuration>
192 <arguments>
193 <argument>${project.artifactId}</argument>
194 <argument>package</argument>
195 </arguments>
196 </configuration>
197 </execution>
198 <execution>
199 <id>test script</id>
200 <phase>test</phase>
201 <goals>
202 <goal>exec</goal>
203 </goals>
204 <configuration>
205 <arguments>
206 <argument>${project.artifactId}</argument>
207 <argument>test</argument>
208 </arguments>
209 </configuration>
210 </execution>
211 <execution>
212 <id>install script</id>
213 <phase>install</phase>
214 <goals>
215 <goal>exec</goal>
216 </goals>
217 <configuration>
218 <arguments>
219 <argument>${project.artifactId}</argument>
220 <argument>install</argument>
221 </arguments>
222 </configuration>
223 </execution>
224 <execution>
225 <id>deploy script</id>
226 <phase>deploy</phase>
227 <goals>
228 <goal>exec</goal>
229 </goals>
230 <configuration>
231 <arguments>
232 <argument>${project.artifactId}</argument>
233 <argument>deploy</argument>
234 </arguments>
235 </configuration>
236 </execution>
237 </executions>
238 </plugin>
239 </plugins>
240 </build>
241</project>