blob: 03bb77238476976b8e1147be393ede4a0adee9dd [file] [log] [blame]
Ladue, David (dl3158)64292312017-08-23 11:27:58 -04001<?xml version="1.0"?>
Vijay VK7005c352018-03-18 14:16:46 +01002<!--
3================================================================================
4Copyright (c) 2017-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">
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040022 <modelVersion>4.0.0</modelVersion>
23 <parent>
24 <groupId>org.onap.oparent</groupId>
25 <artifactId>oparent</artifactId>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -040026 <version>1.1.0</version>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040027 </parent>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040028
29 <!--- CHANGE THE FOLLOWING 3 OBJECTS for your own repo -->
30 <groupId>org.onap.dcaegen2.collectors</groupId>
31 <artifactId>snmptrap</artifactId>
Vijay VK7005c352018-03-18 14:16:46 +010032 <name>dcaegen2-collectors-snmptrap</name>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -040033 <version>1.3.0-SNAPSHOT</version>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040034 <url>http://maven.apache.org</url>
35 <properties>
36 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Vijay VK339ca1c2018-03-27 02:05:36 +010037 <sonar.skip>false</sonar.skip>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040038 <sonar.sources>.</sonar.sources>
Lusheng Ji1ee28592018-03-28 02:39:54 -040039 <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
40 <sonar.python.coverage.reportPath>coverage.xml</sonar.python.coverage.reportPath>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040041 <sonar.language>py</sonar.language>
42 <sonar.pluginName>Python</sonar.pluginName>
43 <sonar.inclusions>**/*.py</sonar.inclusions>
Vijay VK339ca1c2018-03-27 02:05:36 +010044 <sonar.exclusions>target/**,tests/**,setup.py,**/__init__.py</sonar.exclusions>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040045 </properties>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040046 <build>
47 <finalName>${project.artifactId}-${project.version}</finalName>
48 <pluginManagement>
49 <plugins>
Vijay VK7005c352018-03-18 14:16:46 +010050 <!-- the following plugins are invoked from oparent, we do not need them -->
51 <plugin>
52 <groupId>org.sonatype.plugins</groupId>
53 <artifactId>nexus-staging-maven-plugin</artifactId>
54 <version>1.6.7</version>
55 <configuration>
56 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
57 </configuration>
58 </plugin>
59 <plugin>
60 <groupId>org.apache.maven.plugins</groupId>
61 <artifactId>maven-deploy-plugin</artifactId>
62 <!-- This version supports the "deployAtEnd" parameter -->
63 <version>2.8</version>
64 <configuration>
65 <skip>true</skip>
66 </configuration>
67 </plugin>
68 <plugin>
69 <groupId>org.apache.maven.plugins</groupId>
70 <artifactId>maven-enforcer-plugin</artifactId>
71 <version>3.0.0-M1</version>
72 <configuration>
73 <skip>true</skip>
74 </configuration>
75 </plugin>
76 <!-- first disable the default Java plugins at various stages -->
77 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares the resources
78 dir. we do not need it -->
79 <plugin>
80 <groupId>org.apache.maven.plugins</groupId>
81 <artifactId>maven-resources-plugin</artifactId>
82 <version>2.6</version>
83 <configuration>
84 <skip>true</skip>
85 </configuration>
86 </plugin>
87 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
88 <plugin>
89 <groupId>org.apache.maven.plugins</groupId>
90 <artifactId>maven-compiler-plugin</artifactId>
91 <version>3.1</version>
92 <configuration>
93 <skip>true</skip>
94 </configuration>
95 </plugin>
96 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
97 <plugin>
98 <groupId>org.apache.maven.plugins</groupId>
99 <artifactId>maven-jar-plugin</artifactId>
100 <version>2.4</version>
101 <executions>
102 <execution>
103 <id>default-jar</id>
104 <phase/>
105 </execution>
106 </executions>
107 </plugin>
108 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
109 target dir to ~/.m2. we do not need it -->
110 <plugin>
111 <groupId>org.apache.maven.plugins</groupId>
112 <artifactId>maven-install-plugin</artifactId>
113 <version>2.4</version>
114 <configuration>
115 <skip>true</skip>
116 </configuration>
117 </plugin>
118 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
119 we do not need it -->
120 <plugin>
121 <groupId>org.apache.maven.plugins</groupId>
122 <artifactId>maven-surefire-plugin</artifactId>
123 <version>2.12.4</version>
124 <configuration>
125 <skipTests>true</skipTests>
126 </configuration>
127 </plugin>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000128 <plugin>
129 <groupId>org.codehaus.mojo</groupId>
Vijay VK7005c352018-03-18 14:16:46 +0100130 <artifactId>exec-maven-plugin</artifactId>
131 <version>1.2.1</version>
132 <configuration>
133 <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
134 <environmentVariables>
135 <!-- make mvn properties as env for our script -->
136 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
137 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
138 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
139 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
140 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
141 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
142 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
143 <MVN_DOCKERREGISTRY_DAILY>${onap.nexus.dockerregistry.daily}</MVN_DOCKERREGISTRY_DAILY>
144 <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
145 </environmentVariables>
146 </configuration>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000147 </plugin>
Lusheng Ji1a86d532017-08-29 14:19:57 +0000148 </plugins>
149 </pluginManagement>
Lusheng Ji1a86d532017-08-29 14:19:57 +0000150 <plugins>
151 <!-- plugin>
Vijay VK7005c352018-03-18 14:16:46 +0100152 <artifactId>maven-assembly-plugin</artifactId>
Lusheng Ji1a86d532017-08-29 14:19:57 +0000153 <version>2.4.1</version>
154 <configuration>
155 <descriptors>
156 <descriptor>assembly/dep.xml</descriptor>
157 </descriptors>
158 </configuration>
159 <executions>
160 <execution>
161 <id>make-assembly</id>
162 <phase>package</phase>
163 <goals>
164 <goal>single</goal>
165 </goals>
166 </execution>
167 </executions>
168 </plugin -->
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400169 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
170 <plugin>
171 <groupId>org.codehaus.mojo</groupId>
172 <artifactId>exec-maven-plugin</artifactId>
173 <version>1.2.1</version>
174 <executions>
175 <execution>
176 <id>clean phase script</id>
177 <phase>clean</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100178 <goals>
179 <goal>exec</goal>
180 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400181 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400182 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100183 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400184 <argument>clean</argument>
185 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400186 </configuration>
187 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400188 <execution>
189 <id>generate-sources script</id>
190 <phase>generate-sources</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100191 <goals>
192 <goal>exec</goal>
193 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400194 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400195 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100196 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400197 <argument>generate-sources</argument>
198 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400199 </configuration>
200 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400201 <execution>
202 <id>compile script</id>
203 <phase>compile</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100204 <goals>
205 <goal>exec</goal>
206 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400207 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400208 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100209 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400210 <argument>compile</argument>
211 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400212 </configuration>
213 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400214 <execution>
215 <id>package script</id>
216 <phase>package</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100217 <goals>
218 <goal>exec</goal>
219 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400220 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400221 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100222 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400223 <argument>package</argument>
224 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400225 </configuration>
226 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400227 <execution>
228 <id>test script</id>
229 <phase>test</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100230 <goals>
231 <goal>exec</goal>
232 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400233 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400234 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100235 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400236 <argument>test</argument>
237 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400238 </configuration>
239 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400240 <execution>
241 <id>install script</id>
242 <phase>install</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100243 <goals>
244 <goal>exec</goal>
245 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400246 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400247 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100248 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400249 <argument>install</argument>
250 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400251 </configuration>
252 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400253 <execution>
254 <id>deploy script</id>
255 <phase>deploy</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100256 <goals>
257 <goal>exec</goal>
258 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400259 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400260 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100261 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400262 <argument>deploy</argument>
263 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400264 </configuration>
265 </execution>
266 </executions>
267 </plugin>
268 </plugins>
269 </build>
270</project>
Vijay VK7005c352018-03-18 14:16:46 +0100271
272