blob: 5ce191a2abd8f9cd06e6c15d13254554694dfcde [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>
39 <!-- customize the SONARQUBE URL -->
Vijay VK7005c352018-03-18 14:16:46 +010040 <!-- sonar.host.url>http://localhost:9000</sonar.host.url -->
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040041 <!-- below are language dependent -->
42 <!-- for Python -->
43 <sonar.language>py</sonar.language>
44 <sonar.pluginName>Python</sonar.pluginName>
45 <sonar.inclusions>**/*.py</sonar.inclusions>
Vijay VK339ca1c2018-03-27 02:05:36 +010046 <sonar.exclusions>target/**,tests/**,setup.py,**/__init__.py</sonar.exclusions>
Vijay VK7005c352018-03-18 14:16:46 +010047 <!-- for JavaScaript -->
48 <!--
49 <sonar.language>js</sonar.language>
50 <sonar.pluginName>JS</sonar.pluginName>
51 <sonar.inclusions>**/*.js</sonar.inclusions>
52 -->
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040053 </properties>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040054 <build>
55 <finalName>${project.artifactId}-${project.version}</finalName>
56 <pluginManagement>
57 <plugins>
Vijay VK7005c352018-03-18 14:16:46 +010058 <!-- the following plugins are invoked from oparent, we do not need them -->
59 <plugin>
60 <groupId>org.sonatype.plugins</groupId>
61 <artifactId>nexus-staging-maven-plugin</artifactId>
62 <version>1.6.7</version>
63 <configuration>
64 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
65 </configuration>
66 </plugin>
67 <plugin>
68 <groupId>org.apache.maven.plugins</groupId>
69 <artifactId>maven-deploy-plugin</artifactId>
70 <!-- This version supports the "deployAtEnd" parameter -->
71 <version>2.8</version>
72 <configuration>
73 <skip>true</skip>
74 </configuration>
75 </plugin>
76 <plugin>
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-enforcer-plugin</artifactId>
79 <version>3.0.0-M1</version>
80 <configuration>
81 <skip>true</skip>
82 </configuration>
83 </plugin>
84 <!-- first disable the default Java plugins at various stages -->
85 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares the resources
86 dir. we do not need it -->
87 <plugin>
88 <groupId>org.apache.maven.plugins</groupId>
89 <artifactId>maven-resources-plugin</artifactId>
90 <version>2.6</version>
91 <configuration>
92 <skip>true</skip>
93 </configuration>
94 </plugin>
95 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
96 <plugin>
97 <groupId>org.apache.maven.plugins</groupId>
98 <artifactId>maven-compiler-plugin</artifactId>
99 <version>3.1</version>
100 <configuration>
101 <skip>true</skip>
102 </configuration>
103 </plugin>
104 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
105 <plugin>
106 <groupId>org.apache.maven.plugins</groupId>
107 <artifactId>maven-jar-plugin</artifactId>
108 <version>2.4</version>
109 <executions>
110 <execution>
111 <id>default-jar</id>
112 <phase/>
113 </execution>
114 </executions>
115 </plugin>
116 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
117 target dir to ~/.m2. we do not need it -->
118 <plugin>
119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-install-plugin</artifactId>
121 <version>2.4</version>
122 <configuration>
123 <skip>true</skip>
124 </configuration>
125 </plugin>
126 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
127 we do not need it -->
128 <plugin>
129 <groupId>org.apache.maven.plugins</groupId>
130 <artifactId>maven-surefire-plugin</artifactId>
131 <version>2.12.4</version>
132 <configuration>
133 <skipTests>true</skipTests>
134 </configuration>
135 </plugin>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000136 <plugin>
137 <groupId>org.codehaus.mojo</groupId>
Vijay VK7005c352018-03-18 14:16:46 +0100138 <artifactId>exec-maven-plugin</artifactId>
139 <version>1.2.1</version>
140 <configuration>
141 <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
142 <environmentVariables>
143 <!-- make mvn properties as env for our script -->
144 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
145 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
146 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
147 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
148 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
149 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
150 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
151 <MVN_DOCKERREGISTRY_DAILY>${onap.nexus.dockerregistry.daily}</MVN_DOCKERREGISTRY_DAILY>
152 <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
153 </environmentVariables>
154 </configuration>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000155 </plugin>
Lusheng Ji1a86d532017-08-29 14:19:57 +0000156 </plugins>
157 </pluginManagement>
Lusheng Ji1a86d532017-08-29 14:19:57 +0000158 <plugins>
159 <!-- plugin>
Vijay VK7005c352018-03-18 14:16:46 +0100160 <artifactId>maven-assembly-plugin</artifactId>
Lusheng Ji1a86d532017-08-29 14:19:57 +0000161 <version>2.4.1</version>
162 <configuration>
163 <descriptors>
164 <descriptor>assembly/dep.xml</descriptor>
165 </descriptors>
166 </configuration>
167 <executions>
168 <execution>
169 <id>make-assembly</id>
170 <phase>package</phase>
171 <goals>
172 <goal>single</goal>
173 </goals>
174 </execution>
175 </executions>
176 </plugin -->
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400177 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
178 <plugin>
179 <groupId>org.codehaus.mojo</groupId>
180 <artifactId>exec-maven-plugin</artifactId>
181 <version>1.2.1</version>
182 <executions>
183 <execution>
184 <id>clean phase script</id>
185 <phase>clean</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100186 <goals>
187 <goal>exec</goal>
188 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400189 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400190 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100191 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400192 <argument>clean</argument>
193 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400194 </configuration>
195 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400196 <execution>
197 <id>generate-sources script</id>
198 <phase>generate-sources</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100199 <goals>
200 <goal>exec</goal>
201 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400202 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400203 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100204 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400205 <argument>generate-sources</argument>
206 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400207 </configuration>
208 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400209 <execution>
210 <id>compile script</id>
211 <phase>compile</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100212 <goals>
213 <goal>exec</goal>
214 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400215 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400216 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100217 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400218 <argument>compile</argument>
219 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400220 </configuration>
221 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400222 <execution>
223 <id>package script</id>
224 <phase>package</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100225 <goals>
226 <goal>exec</goal>
227 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400228 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400229 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100230 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400231 <argument>package</argument>
232 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400233 </configuration>
234 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400235 <execution>
236 <id>test script</id>
237 <phase>test</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100238 <goals>
239 <goal>exec</goal>
240 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400241 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400242 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100243 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400244 <argument>test</argument>
245 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400246 </configuration>
247 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400248 <execution>
249 <id>install script</id>
250 <phase>install</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100251 <goals>
252 <goal>exec</goal>
253 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400254 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400255 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100256 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400257 <argument>install</argument>
258 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400259 </configuration>
260 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400261 <execution>
262 <id>deploy script</id>
263 <phase>deploy</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100264 <goals>
265 <goal>exec</goal>
266 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400267 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400268 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100269 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400270 <argument>deploy</argument>
271 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400272 </configuration>
273 </execution>
274 </executions>
275 </plugin>
276 </plugins>
277 </build>
278</project>
Vijay VK7005c352018-03-18 14:16:46 +0100279
280