blob: bb719fb50eb464842f1a9c50fb6ea4abbc71c04e [file] [log] [blame]
Lusheng Ji2e00e252017-10-13 19:27:40 +00001<?xml version="1.0"?>
2<!--
3================================================================================
vagrantc1e664e2018-07-31 19:05:35 +00004Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
Lusheng Ji2e00e252017-10-13 19:27:40 +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
Lusheng Ji2e00e252017-10-13 19:27:40 +000019-->
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>
Lusheng Ji2e00e252017-10-13 19:27:40 +000026 </parent>
27 <groupId>org.onap.dcaegen2.utils</groupId>
28 <artifactId>scripts</artifactId>
29 <name>dcaegen2-utils-scripts</name>
vagrant21ec33e2017-11-25 06:17:09 +000030 <version>1.1.0-SNAPSHOT</version>
Lusheng Ji2e00e252017-10-13 19:27:40 +000031 <url>http://maven.apache.org</url>
32
33 <properties>
34 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35 <!-- Sonar -->
36 <sonar.skip>false</sonar.skip>
37 <sonar.sources>.</sonar.sources>
38 <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
39 <!--
40 <sonar.python.coverage.reportPath>coverage.xml</sonar.python.coverage.reportPath>
41 see https://docs.sonarqube.org/display/PLUG/Python+Coverage+Results+Import
42 Ant pattern describing the path to coverage reports, relative to projects root. Leave unset to use the default ("coverage-reports/coverage-*.xml").
43 -->
44 <sonar.language>py</sonar.language>
45 <sonar.pluginName>Python</sonar.pluginName>
46 <sonar.inclusions>**/*.py</sonar.inclusions>
Andrew Gauld373f0f32018-02-21 11:14:46 -050047 <sonar.exclusions>tests/*,setup.py</sonar.exclusions>
Lusheng Ji2e00e252017-10-13 19:27:40 +000048 <sonar.host.url>http://135.205.228.63:9000</sonar.host.url>
49 </properties>
50 <build>
51 <finalName>${project.artifactId}-${project.version}</finalName>
52 <pluginManagement>
53 <plugins>
54 <!-- the following plugins are invoked from oparent, we do not need them -->
55 <plugin>
56 <groupId>org.sonatype.plugins</groupId>
57 <artifactId>nexus-staging-maven-plugin</artifactId>
58 <version>1.6.7</version>
59 <configuration>
60 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
61 </configuration>
62 </plugin>
63 <plugin>
64 <groupId>org.apache.maven.plugins</groupId>
65 <artifactId>maven-deploy-plugin</artifactId>
66 <!-- This version supports the "deployAtEnd" parameter -->
67 <version>2.8</version>
68 <configuration>
69 <skip>true</skip>
70 </configuration>
71 </plugin>
72 <!-- first disable the default Java plugins at various stages -->
73 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares
74 the resources dir. we do not need it -->
75 <plugin>
76 <groupId>org.apache.maven.plugins</groupId>
77 <artifactId>maven-resources-plugin</artifactId>
78 <version>2.6</version>
79 <configuration>
80 <skip>true</skip>
81 </configuration>
82 </plugin>
83 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
84 <plugin>
85 <groupId>org.apache.maven.plugins</groupId>
86 <artifactId>maven-compiler-plugin</artifactId>
87 <version>3.1</version>
88 <configuration>
89 <skip>true</skip>
90 </configuration>
91 </plugin>
92 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
93 <plugin>
94 <groupId>org.apache.maven.plugins</groupId>
95 <artifactId>maven-jar-plugin</artifactId>
96 <version>2.4</version>
97 <executions>
98 <execution>
99 <id>default-jar</id>
100 <phase/>
101 </execution>
102 </executions>
103 </plugin>
104 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
105 target dir to ~/.m2. we do not need it -->
106 <plugin>
107 <groupId>org.apache.maven.plugins</groupId>
108 <artifactId>maven-install-plugin</artifactId>
109 <version>2.4</version>
110 <configuration>
111 <skip>true</skip>
112 </configuration>
113 </plugin>
114 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
115 we do not need it -->
116 <plugin>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-surefire-plugin</artifactId>
119 <version>2.12.4</version>
120 <configuration>
121 <skipTests>true</skipTests>
122 </configuration>
123 </plugin>
124 </plugins>
125 </pluginManagement>
126 <plugins>
127 <!-- plugin>
128 <artifactId>maven-assembly-plugin</artifactId>
129 <version>2.4.1</version>
130 <configuration>
131 <descriptors>
132 <descriptor>assembly/dep.xml</descriptor>
133 </descriptors>
134 </configuration>
135 <executions>
136 <execution>
137 <id>make-assembly</id>
138 <phase>package</phase>
139 <goals>
140 <goal>single</goal>
141 </goals>
142 </execution>
143 </executions>
144 </plugin -->
145 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
146 <plugin>
147 <groupId>org.codehaus.mojo</groupId>
148 <artifactId>exec-maven-plugin</artifactId>
149 <version>1.2.1</version>
150 <executions>
151 <execution>
152 <id>clean phase script</id>
153 <phase>clean</phase>
154 <goals>
155 <goal>exec</goal>
156 </goals>
157 <configuration>
158 <arguments>
159 <argument>${project.artifactId}</argument>
160 <argument>clean</argument>
161 </arguments>
162 </configuration>
163 </execution>
164 <execution>
165 <id>generate-sources script</id>
166 <phase>generate-sources</phase>
167 <goals>
168 <goal>exec</goal>
169 </goals>
170 <configuration>
171 <arguments>
172 <argument>${project.artifactId}</argument>
173 <argument>generate-sources</argument>
174 </arguments>
175 </configuration>
176 </execution>
177 <execution>
178 <id>compile script</id>
179 <phase>compile</phase>
180 <goals>
181 <goal>exec</goal>
182 </goals>
183 <configuration>
184 <arguments>
185 <argument>${project.artifactId}</argument>
186 <argument>compile</argument>
187 </arguments>
188 </configuration>
189 </execution>
190 <execution>
191 <id>package script</id>
192 <phase>package</phase>
193 <goals>
194 <goal>exec</goal>
195 </goals>
196 <configuration>
197 <arguments>
198 <argument>${project.artifactId}</argument>
199 <argument>package</argument>
200 </arguments>
201 </configuration>
202 </execution>
203 <execution>
204 <id>test script</id>
205 <phase>test</phase>
206 <goals>
207 <goal>exec</goal>
208 </goals>
209 <configuration>
210 <arguments>
211 <argument>${project.artifactId}</argument>
212 <argument>test</argument>
213 </arguments>
214 </configuration>
215 </execution>
216 <execution>
217 <id>install script</id>
218 <phase>install</phase>
219 <goals>
220 <goal>exec</goal>
221 </goals>
222 <configuration>
223 <arguments>
224 <argument>${project.artifactId}</argument>
225 <argument>install</argument>
226 </arguments>
227 </configuration>
228 </execution>
229 <execution>
230 <id>deploy script</id>
231 <phase>deploy</phase>
232 <goals>
233 <goal>exec</goal>
234 </goals>
235 <configuration>
236 <arguments>
237 <argument>${project.artifactId}</argument>
238 <argument>deploy</argument>
239 </arguments>
240 </configuration>
241 </execution>
242 </executions>
243 </plugin>
244 </plugins>
245 </build>
246</project>