blob: 1d83c9132482ec9842d03d7d6c8678576ea7ed7b [file] [log] [blame]
Ladue, David (dl3158)64292312017-08-23 11:27:58 -04001<?xml version="1.0"?>
Lusheng Ji1a86d532017-08-29 14:19:57 +00002<!--
3================================================================================
4Copyright (c) 2017 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>
26 <version>1.0.0-SNAPSHOT</version>
27 </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>
Jessica Wagantall62eacee2017-09-08 12:45:07 -070032 <name>dcaegen2-collectors-snmptrap</name>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040033
34 <version>1.0.0-SNAPSHOT</version>
35 <url>http://maven.apache.org</url>
36 <properties>
37 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Lusheng Ji7bb22602017-09-11 22:52:13 +000038 <sonar.skip>true</sonar.skip>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040039 <sonar.sources>.</sonar.sources>
40 <!-- customize the SONARQUBE URL -->
Lusheng Ji1a86d532017-08-29 14:19:57 +000041 <!-- sonar.host.url>http://localhost:9000</sonar.host.url -->
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040042 <!-- below are language dependent -->
43 <!-- for Python -->
44 <sonar.language>py</sonar.language>
45 <sonar.pluginName>Python</sonar.pluginName>
46 <sonar.inclusions>**/*.py</sonar.inclusions>
47 <!-- for JavaScaript -->
48 <!--
Lusheng Ji1a86d532017-08-29 14:19:57 +000049 <sonar.language>js</sonar.language>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040050 <sonar.pluginName>JS</sonar.pluginName>
51 <sonar.inclusions>**/*.js</sonar.inclusions>
52 -->
53 </properties>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040054 <build>
55 <finalName>${project.artifactId}-${project.version}</finalName>
56 <pluginManagement>
57 <plugins>
Lusheng Ji1a86d532017-08-29 14:19:57 +000058 <!-- the following plugins are invoked from oparent, we do not need them -->
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040059 <plugin>
Lusheng Ji1a86d532017-08-29 14:19:57 +000060 <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>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040066 </plugin>
Lusheng Ji1a86d532017-08-29 14:19:57 +000067 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +000076 <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>
Lusheng Ji1a86d532017-08-29 14:19:57 +000084 <!-- first disable the default Java plugins at various stages -->
Lusheng Ji7bb22602017-09-11 22:52:13 +000085 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares the resources
Lusheng Ji1a86d532017-08-29 14:19:57 +000086 dir. we do not need it -->
Lusheng Ji7bb22602017-09-11 22:52:13 +000087 <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
Lusheng Ji1a86d532017-08-29 14:19:57 +0000117 target dir to ~/.m2. we do not need it -->
Lusheng Ji7bb22602017-09-11 22:52:13 +0000118 <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.
Lusheng Ji1a86d532017-08-29 14:19:57 +0000127 we do not need it -->
Lusheng Ji7bb22602017-09-11 22:52:13 +0000128 <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>
136 <plugin>
137 <groupId>org.codehaus.mojo</groupId>
138 <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>
155 </plugin>
Lusheng Ji1a86d532017-08-29 14:19:57 +0000156 </plugins>
157 </pluginManagement>
Lusheng Ji1a86d532017-08-29 14:19:57 +0000158 <plugins>
159 <!-- plugin>
160 <artifactId>maven-assembly-plugin</artifactId>
161 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000186 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000191 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000199 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000204 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000212 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000217 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000225 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000230 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000238 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000243 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000251 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000256 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000264 <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>
Lusheng Ji7bb22602017-09-11 22:52:13 +0000269 <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>