blob: 17b54e7bf4a9867f75bb59bcb9e4fe1d9e06ec74 [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 VK7005c352018-03-18 14:16:46 +010037 <sonar.skip>true</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 VK7005c352018-03-18 14:16:46 +010046 <!-- for JavaScaript -->
47 <!--
48 <sonar.language>js</sonar.language>
49 <sonar.pluginName>JS</sonar.pluginName>
50 <sonar.inclusions>**/*.js</sonar.inclusions>
51 -->
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040052 </properties>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040053 <build>
54 <finalName>${project.artifactId}-${project.version}</finalName>
55 <pluginManagement>
56 <plugins>
Vijay VK7005c352018-03-18 14:16:46 +010057 <!-- the following plugins are invoked from oparent, we do not need them -->
58 <plugin>
59 <groupId>org.sonatype.plugins</groupId>
60 <artifactId>nexus-staging-maven-plugin</artifactId>
61 <version>1.6.7</version>
62 <configuration>
63 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
64 </configuration>
65 </plugin>
66 <plugin>
67 <groupId>org.apache.maven.plugins</groupId>
68 <artifactId>maven-deploy-plugin</artifactId>
69 <!-- This version supports the "deployAtEnd" parameter -->
70 <version>2.8</version>
71 <configuration>
72 <skip>true</skip>
73 </configuration>
74 </plugin>
75 <plugin>
76 <groupId>org.apache.maven.plugins</groupId>
77 <artifactId>maven-enforcer-plugin</artifactId>
78 <version>3.0.0-M1</version>
79 <configuration>
80 <skip>true</skip>
81 </configuration>
82 </plugin>
83 <!-- first disable the default Java plugins at various stages -->
84 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares the resources
85 dir. we do not need it -->
86 <plugin>
87 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-resources-plugin</artifactId>
89 <version>2.6</version>
90 <configuration>
91 <skip>true</skip>
92 </configuration>
93 </plugin>
94 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
95 <plugin>
96 <groupId>org.apache.maven.plugins</groupId>
97 <artifactId>maven-compiler-plugin</artifactId>
98 <version>3.1</version>
99 <configuration>
100 <skip>true</skip>
101 </configuration>
102 </plugin>
103 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
104 <plugin>
105 <groupId>org.apache.maven.plugins</groupId>
106 <artifactId>maven-jar-plugin</artifactId>
107 <version>2.4</version>
108 <executions>
109 <execution>
110 <id>default-jar</id>
111 <phase/>
112 </execution>
113 </executions>
114 </plugin>
115 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
116 target dir to ~/.m2. we do not need it -->
117 <plugin>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-install-plugin</artifactId>
120 <version>2.4</version>
121 <configuration>
122 <skip>true</skip>
123 </configuration>
124 </plugin>
125 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
126 we do not need it -->
127 <plugin>
128 <groupId>org.apache.maven.plugins</groupId>
129 <artifactId>maven-surefire-plugin</artifactId>
130 <version>2.12.4</version>
131 <configuration>
132 <skipTests>true</skipTests>
133 </configuration>
134 </plugin>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000135 <plugin>
136 <groupId>org.codehaus.mojo</groupId>
Vijay VK7005c352018-03-18 14:16:46 +0100137 <artifactId>exec-maven-plugin</artifactId>
138 <version>1.2.1</version>
139 <configuration>
140 <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
141 <environmentVariables>
142 <!-- make mvn properties as env for our script -->
143 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
144 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
145 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
146 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
147 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
148 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
149 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
150 <MVN_DOCKERREGISTRY_DAILY>${onap.nexus.dockerregistry.daily}</MVN_DOCKERREGISTRY_DAILY>
151 <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
152 </environmentVariables>
153 </configuration>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000154 </plugin>
Lusheng Ji1a86d532017-08-29 14:19:57 +0000155 </plugins>
156 </pluginManagement>
Lusheng Ji1a86d532017-08-29 14:19:57 +0000157 <plugins>
158 <!-- plugin>
Vijay VK7005c352018-03-18 14:16:46 +0100159 <artifactId>maven-assembly-plugin</artifactId>
Lusheng Ji1a86d532017-08-29 14:19:57 +0000160 <version>2.4.1</version>
161 <configuration>
162 <descriptors>
163 <descriptor>assembly/dep.xml</descriptor>
164 </descriptors>
165 </configuration>
166 <executions>
167 <execution>
168 <id>make-assembly</id>
169 <phase>package</phase>
170 <goals>
171 <goal>single</goal>
172 </goals>
173 </execution>
174 </executions>
175 </plugin -->
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400176 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
177 <plugin>
178 <groupId>org.codehaus.mojo</groupId>
179 <artifactId>exec-maven-plugin</artifactId>
180 <version>1.2.1</version>
181 <executions>
182 <execution>
183 <id>clean phase script</id>
184 <phase>clean</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100185 <goals>
186 <goal>exec</goal>
187 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400188 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400189 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100190 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400191 <argument>clean</argument>
192 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400193 </configuration>
194 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400195 <execution>
196 <id>generate-sources script</id>
197 <phase>generate-sources</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100198 <goals>
199 <goal>exec</goal>
200 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400201 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400202 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100203 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400204 <argument>generate-sources</argument>
205 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400206 </configuration>
207 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400208 <execution>
209 <id>compile script</id>
210 <phase>compile</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100211 <goals>
212 <goal>exec</goal>
213 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400214 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400215 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100216 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400217 <argument>compile</argument>
218 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400219 </configuration>
220 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400221 <execution>
222 <id>package script</id>
223 <phase>package</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100224 <goals>
225 <goal>exec</goal>
226 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400227 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400228 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100229 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400230 <argument>package</argument>
231 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400232 </configuration>
233 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400234 <execution>
235 <id>test script</id>
236 <phase>test</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100237 <goals>
238 <goal>exec</goal>
239 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400240 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400241 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100242 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400243 <argument>test</argument>
244 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400245 </configuration>
246 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400247 <execution>
248 <id>install script</id>
249 <phase>install</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100250 <goals>
251 <goal>exec</goal>
252 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400253 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400254 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100255 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400256 <argument>install</argument>
257 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400258 </configuration>
259 </execution>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400260 <execution>
261 <id>deploy script</id>
262 <phase>deploy</phase>
Vijay VK7005c352018-03-18 14:16:46 +0100263 <goals>
264 <goal>exec</goal>
265 </goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400266 <configuration>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400267 <arguments>
Vijay VK7005c352018-03-18 14:16:46 +0100268 <argument>__</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400269 <argument>deploy</argument>
270 </arguments>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400271 </configuration>
272 </execution>
273 </executions>
274 </plugin>
275 </plugins>
276 </build>
277</project>
Vijay VK7005c352018-03-18 14:16:46 +0100278
279