Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <!-- |
| 3 | ================================================================================ |
| 4 | Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. |
| 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"> |
| 22 | <modelVersion>4.0.0</modelVersion> |
| 23 | <parent> |
| 24 | <groupId>org.onap.dcaegen2</groupId> |
| 25 | <artifactId>utils</artifactId> |
| 26 | <version>1.0.0-SNAPSHOT</version> |
| 27 | </parent> |
| 28 | <groupId>org.onap.dcaegen2.utils</groupId> |
| 29 | <artifactId>python-dockering</artifactId> |
| 30 | <name>python-dockering</name> |
| 31 | <version>1.0.0-SNAPSHOT</version> |
| 32 | <url>http://maven.apache.org</url> |
| 33 | |
| 34 | <properties> |
| 35 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 36 | <sonar.skip>true</sonar.skip> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 37 | <sonar.sources>.</sonar.sources> |
| 38 | <!-- customize the SONARQUBE URL --> |
| 39 | <!-- sonar.host.url>http://localhost:9000</sonar.host.url --> |
| 40 | <!-- below are language dependent --> |
| 41 | <!-- for Python --> |
| 42 | <sonar.language>py</sonar.language> |
| 43 | <sonar.pluginName>Python</sonar.pluginName> |
| 44 | <sonar.inclusions>**/*.py</sonar.inclusions> |
| 45 | <!-- for JavaScaript --> |
| 46 | <!-- |
| 47 | <sonar.language>js</sonar.language> |
| 48 | <sonar.pluginName>JS</sonar.pluginName> |
| 49 | <sonar.inclusions>**/*.js</sonar.inclusions> |
| 50 | --> |
| 51 | </properties> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 52 | <build> |
| 53 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 54 | <pluginManagement> |
| 55 | <plugins> |
| 56 | <!-- the following plugins are invoked from oparent, we do not need them --> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 57 | <plugin> |
| 58 | <groupId>org.sonatype.plugins</groupId> |
| 59 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 60 | <version>1.6.7</version> |
| 61 | <configuration> |
| 62 | <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo> |
| 63 | </configuration> |
| 64 | </plugin> |
| 65 | <plugin> |
| 66 | <groupId>org.apache.maven.plugins</groupId> |
| 67 | <artifactId>maven-deploy-plugin</artifactId> |
| 68 | <!-- This version supports the "deployAtEnd" parameter --> |
| 69 | <version>2.8</version> |
| 70 | <configuration> |
| 71 | <skip>true</skip> |
| 72 | </configuration> |
| 73 | </plugin> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 74 | <!-- first disable the default Java plugins at various stages --> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 75 | <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares |
| 76 | the resources dir. we do not need it --> |
| 77 | <plugin> |
| 78 | <groupId>org.apache.maven.plugins</groupId> |
| 79 | <artifactId>maven-resources-plugin</artifactId> |
| 80 | <version>2.6</version> |
| 81 | <configuration> |
| 82 | <skip>true</skip> |
| 83 | </configuration> |
| 84 | </plugin> |
| 85 | <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it --> |
| 86 | <plugin> |
| 87 | <groupId>org.apache.maven.plugins</groupId> |
| 88 | <artifactId>maven-compiler-plugin</artifactId> |
| 89 | <version>3.1</version> |
| 90 | <configuration> |
| 91 | <skip>true</skip> |
| 92 | </configuration> |
| 93 | </plugin> |
| 94 | <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it --> |
| 95 | <plugin> |
| 96 | <groupId>org.apache.maven.plugins</groupId> |
| 97 | <artifactId>maven-jar-plugin</artifactId> |
| 98 | <version>2.4</version> |
| 99 | <executions> |
| 100 | <execution> |
| 101 | <id>default-jar</id> |
| 102 | <phase/> |
| 103 | </execution> |
| 104 | </executions> |
| 105 | </plugin> |
| 106 | <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under |
| 107 | target dir to ~/.m2. we do not need it --> |
| 108 | <plugin> |
| 109 | <groupId>org.apache.maven.plugins</groupId> |
| 110 | <artifactId>maven-install-plugin</artifactId> |
| 111 | <version>2.4</version> |
| 112 | <configuration> |
| 113 | <skip>true</skip> |
| 114 | </configuration> |
| 115 | </plugin> |
| 116 | <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test. |
| 117 | we do not need it --> |
| 118 | <plugin> |
| 119 | <groupId>org.apache.maven.plugins</groupId> |
| 120 | <artifactId>maven-surefire-plugin</artifactId> |
| 121 | <version>2.12.4</version> |
| 122 | <configuration> |
| 123 | <skipTests>true</skipTests> |
| 124 | </configuration> |
| 125 | </plugin> |
| 126 | <plugin> |
| 127 | <groupId>org.codehaus.mojo</groupId> |
| 128 | <artifactId>exec-maven-plugin</artifactId> |
| 129 | <version>1.2.1</version> |
| 130 | <configuration> |
| 131 | <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable> |
| 132 | <environmentVariables> |
| 133 | <!-- make mvn properties as env for our script --> |
Tony Hansen | 4b74774 | 2017-09-19 05:04:05 +0000 | [diff] [blame^] | 134 | <MVN_PROJECT_GROUPID>${project.parent.groupId}</MVN_PROJECT_GROUPID> |
| 135 | <MVN_PROJECT_ARTIFACTID>${project.parent.artifactId}</MVN_PROJECT_ARTIFACTID> |
| 136 | <MVN_PROJECT_VERSION>${project.parent.version}</MVN_PROJECT_VERSION> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 137 | <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY> |
| 138 | <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD> |
| 139 | <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD> |
| 140 | <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID> |
| 141 | <MVN_DOCKERREGISTRY_DAILY>${onap.nexus.dockerregistry.daily}</MVN_DOCKERREGISTRY_DAILY> |
| 142 | <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE> |
| 143 | </environmentVariables> |
| 144 | </configuration> |
| 145 | </plugin> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 146 | </plugins> |
| 147 | </pluginManagement> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 148 | <plugins> |
| 149 | <!-- plugin> |
| 150 | <artifactId>maven-assembly-plugin</artifactId> |
| 151 | <version>2.4.1</version> |
| 152 | <configuration> |
| 153 | <descriptors> |
| 154 | <descriptor>assembly/dep.xml</descriptor> |
| 155 | </descriptors> |
| 156 | </configuration> |
| 157 | <executions> |
| 158 | <execution> |
| 159 | <id>make-assembly</id> |
| 160 | <phase>package</phase> |
| 161 | <goals> |
| 162 | <goal>single</goal> |
| 163 | </goals> |
| 164 | </execution> |
| 165 | </executions> |
| 166 | </plugin --> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 167 | <!-- now we configure custom action (calling a script) at various lifecycle phases --> |
| 168 | <plugin> |
| 169 | <groupId>org.codehaus.mojo</groupId> |
| 170 | <artifactId>exec-maven-plugin</artifactId> |
| 171 | <version>1.2.1</version> |
| 172 | <executions> |
| 173 | <execution> |
| 174 | <id>clean phase script</id> |
| 175 | <phase>clean</phase> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 176 | <goals> |
| 177 | <goal>exec</goal> |
| 178 | </goals> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 179 | <configuration> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 180 | <arguments> |
| 181 | <argument>${project.artifactId}</argument> |
| 182 | <argument>clean</argument> |
| 183 | </arguments> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 184 | </configuration> |
| 185 | </execution> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 186 | <execution> |
| 187 | <id>generate-sources script</id> |
| 188 | <phase>generate-sources</phase> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 189 | <goals> |
| 190 | <goal>exec</goal> |
| 191 | </goals> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 192 | <configuration> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 193 | <arguments> |
| 194 | <argument>${project.artifactId}</argument> |
| 195 | <argument>generate-sources</argument> |
| 196 | </arguments> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 197 | </configuration> |
| 198 | </execution> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 199 | <execution> |
| 200 | <id>compile script</id> |
| 201 | <phase>compile</phase> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 202 | <goals> |
| 203 | <goal>exec</goal> |
| 204 | </goals> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 205 | <configuration> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 206 | <arguments> |
| 207 | <argument>${project.artifactId}</argument> |
| 208 | <argument>compile</argument> |
| 209 | </arguments> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 210 | </configuration> |
| 211 | </execution> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 212 | <execution> |
| 213 | <id>package script</id> |
| 214 | <phase>package</phase> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 215 | <goals> |
| 216 | <goal>exec</goal> |
| 217 | </goals> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 218 | <configuration> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 219 | <arguments> |
| 220 | <argument>${project.artifactId}</argument> |
| 221 | <argument>package</argument> |
| 222 | </arguments> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 223 | </configuration> |
| 224 | </execution> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 225 | <execution> |
| 226 | <id>test script</id> |
| 227 | <phase>test</phase> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 228 | <goals> |
| 229 | <goal>exec</goal> |
| 230 | </goals> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 231 | <configuration> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 232 | <arguments> |
| 233 | <argument>${project.artifactId}</argument> |
| 234 | <argument>test</argument> |
| 235 | </arguments> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 236 | </configuration> |
| 237 | </execution> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 238 | <execution> |
| 239 | <id>install script</id> |
| 240 | <phase>install</phase> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 241 | <goals> |
| 242 | <goal>exec</goal> |
| 243 | </goals> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 244 | <configuration> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 245 | <arguments> |
| 246 | <argument>${project.artifactId}</argument> |
| 247 | <argument>install</argument> |
| 248 | </arguments> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 249 | </configuration> |
| 250 | </execution> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 251 | <execution> |
| 252 | <id>deploy script</id> |
| 253 | <phase>deploy</phase> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 254 | <goals> |
| 255 | <goal>exec</goal> |
| 256 | </goals> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 257 | <configuration> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 258 | <arguments> |
| 259 | <argument>${project.artifactId}</argument> |
| 260 | <argument>deploy</argument> |
| 261 | </arguments> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 262 | </configuration> |
| 263 | </execution> |
| 264 | </executions> |
| 265 | </plugin> |
| 266 | </plugins> |
| 267 | </build> |
| 268 | </project> |