Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 1 | <?xml version="1.0"?> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 2 | <!-- |
| 3 | ================================================================================ |
Vijay Venkatesh Kumar | 1578ce3 | 2020-02-07 03:49:12 +0000 | [diff] [blame] | 4 | Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved. |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 5 | ================================================================================ |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License at |
| 9 | |
| 10 | http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | |
| 12 | Unless required by applicable law or agreed to in writing, software |
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | See the License for the specific language governing permissions and |
| 16 | limitations under the License. |
| 17 | ============LICENSE_END========================================================= |
| 18 | |
| 19 | ECOMP 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) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | <parent> |
| 24 | <groupId>org.onap.oparent</groupId> |
| 25 | <artifactId>oparent</artifactId> |
Gary Wu | 226b5fd | 2018-08-24 15:20:45 -0700 | [diff] [blame] | 26 | <version>1.2.0</version> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 27 | </parent> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 28 | |
| 29 | <!--- CHANGE THE FOLLOWING 3 OBJECTS for your own repo --> |
| 30 | <groupId>org.onap.dcaegen2.collectors</groupId> |
| 31 | <artifactId>snmptrap</artifactId> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 32 | <name>dcaegen2-collectors-snmptrap</name> |
Ladue, David (dl3158) | 9c9a86f | 2020-02-14 12:02:30 -0500 | [diff] [blame] | 33 | <version>2.0.3-SNAPSHOT</version> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 34 | <url>http://maven.apache.org</url> |
| 35 | <properties> |
| 36 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
Vijay VK | 339ca1c | 2018-03-27 02:05:36 +0100 | [diff] [blame] | 37 | <sonar.skip>false</sonar.skip> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 38 | <sonar.sources>.</sonar.sources> |
Lusheng Ji | 1ee2859 | 2018-03-28 02:39:54 -0400 | [diff] [blame] | 39 | <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath> |
Vijay Venkatesh Kumar | 1578ce3 | 2020-02-07 03:49:12 +0000 | [diff] [blame] | 40 | <sonar.python.coverage.reportPaths>coverage.xml</sonar.python.coverage.reportPaths> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 41 | <sonar.language>py</sonar.language> |
| 42 | <sonar.pluginName>Python</sonar.pluginName> |
| 43 | <sonar.inclusions>**/*.py</sonar.inclusions> |
Vijay VK | 339ca1c | 2018-03-27 02:05:36 +0100 | [diff] [blame] | 44 | <sonar.exclusions>target/**,tests/**,setup.py,**/__init__.py</sonar.exclusions> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 45 | </properties> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 46 | <build> |
| 47 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 48 | <pluginManagement> |
| 49 | <plugins> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 50 | <!-- 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 Ji | 7bb2260 | 2017-09-11 22:52:13 +0000 | [diff] [blame] | 128 | <plugin> |
| 129 | <groupId>org.codehaus.mojo</groupId> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 130 | <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> |
Lusheng Ji | fb89c44 | 2018-04-02 22:23:54 -0400 | [diff] [blame] | 144 | <MVN_DOCKERREGISTRY_SNAPSHOT>${onap.nexus.dockerregistry.daily}</MVN_DOCKERREGISTRY_SNAPSHOT> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 145 | <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE> |
| 146 | </environmentVariables> |
| 147 | </configuration> |
Lusheng Ji | 7bb2260 | 2017-09-11 22:52:13 +0000 | [diff] [blame] | 148 | </plugin> |
Lusheng Ji | 1a86d53 | 2017-08-29 14:19:57 +0000 | [diff] [blame] | 149 | </plugins> |
| 150 | </pluginManagement> |
Lusheng Ji | 1a86d53 | 2017-08-29 14:19:57 +0000 | [diff] [blame] | 151 | <plugins> |
| 152 | <!-- plugin> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 153 | <artifactId>maven-assembly-plugin</artifactId> |
Lusheng Ji | 1a86d53 | 2017-08-29 14:19:57 +0000 | [diff] [blame] | 154 | <version>2.4.1</version> |
| 155 | <configuration> |
| 156 | <descriptors> |
| 157 | <descriptor>assembly/dep.xml</descriptor> |
| 158 | </descriptors> |
| 159 | </configuration> |
| 160 | <executions> |
| 161 | <execution> |
| 162 | <id>make-assembly</id> |
| 163 | <phase>package</phase> |
| 164 | <goals> |
| 165 | <goal>single</goal> |
| 166 | </goals> |
| 167 | </execution> |
| 168 | </executions> |
| 169 | </plugin --> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 170 | <!-- now we configure custom action (calling a script) at various lifecycle phases --> |
| 171 | <plugin> |
| 172 | <groupId>org.codehaus.mojo</groupId> |
| 173 | <artifactId>exec-maven-plugin</artifactId> |
| 174 | <version>1.2.1</version> |
| 175 | <executions> |
| 176 | <execution> |
| 177 | <id>clean phase script</id> |
| 178 | <phase>clean</phase> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 179 | <goals> |
| 180 | <goal>exec</goal> |
| 181 | </goals> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 182 | <configuration> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 183 | <arguments> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 184 | <argument>__</argument> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 185 | <argument>clean</argument> |
| 186 | </arguments> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 187 | </configuration> |
| 188 | </execution> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 189 | <execution> |
| 190 | <id>generate-sources script</id> |
| 191 | <phase>generate-sources</phase> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 192 | <goals> |
| 193 | <goal>exec</goal> |
| 194 | </goals> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 195 | <configuration> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 196 | <arguments> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 197 | <argument>__</argument> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 198 | <argument>generate-sources</argument> |
| 199 | </arguments> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 200 | </configuration> |
| 201 | </execution> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 202 | <execution> |
| 203 | <id>compile script</id> |
| 204 | <phase>compile</phase> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 205 | <goals> |
| 206 | <goal>exec</goal> |
| 207 | </goals> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 208 | <configuration> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 209 | <arguments> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 210 | <argument>__</argument> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 211 | <argument>compile</argument> |
| 212 | </arguments> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 213 | </configuration> |
| 214 | </execution> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 215 | <execution> |
| 216 | <id>package script</id> |
| 217 | <phase>package</phase> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 218 | <goals> |
| 219 | <goal>exec</goal> |
| 220 | </goals> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 221 | <configuration> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 222 | <arguments> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 223 | <argument>__</argument> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 224 | <argument>package</argument> |
| 225 | </arguments> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 226 | </configuration> |
| 227 | </execution> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 228 | <execution> |
| 229 | <id>test script</id> |
| 230 | <phase>test</phase> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 231 | <goals> |
| 232 | <goal>exec</goal> |
| 233 | </goals> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 234 | <configuration> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 235 | <arguments> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 236 | <argument>__</argument> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 237 | <argument>test</argument> |
| 238 | </arguments> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 239 | </configuration> |
| 240 | </execution> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 241 | <execution> |
| 242 | <id>install script</id> |
| 243 | <phase>install</phase> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 244 | <goals> |
| 245 | <goal>exec</goal> |
| 246 | </goals> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 247 | <configuration> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 248 | <arguments> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 249 | <argument>__</argument> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 250 | <argument>install</argument> |
| 251 | </arguments> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 252 | </configuration> |
| 253 | </execution> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 254 | <execution> |
| 255 | <id>deploy script</id> |
| 256 | <phase>deploy</phase> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 257 | <goals> |
| 258 | <goal>exec</goal> |
| 259 | </goals> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 260 | <configuration> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 261 | <arguments> |
Vijay VK | 7005c35 | 2018-03-18 14:16:46 +0100 | [diff] [blame] | 262 | <argument>__</argument> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 263 | <argument>deploy</argument> |
| 264 | </arguments> |
Ladue, David (dl3158) | 6429231 | 2017-08-23 11:27:58 -0400 | [diff] [blame] | 265 | </configuration> |
| 266 | </execution> |
| 267 | </executions> |
| 268 | </plugin> |
| 269 | </plugins> |
| 270 | </build> |
| 271 | </project> |