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> |
Lusheng Ji | 88648fc | 2017-09-20 02:18:20 +0000 | [diff] [blame] | 24 | <groupId>org.onap.dcaegen2.utils</groupId> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 25 | <artifactId>utils</artifactId> |
| 26 | <version>1.0.0-SNAPSHOT</version> |
| 27 | </parent> |
| 28 | <groupId>org.onap.dcaegen2.utils</groupId> |
Tommy Carpenter | c3a485a | 2017-09-20 15:11:00 -0400 | [diff] [blame^] | 29 | <artifactId>onap-dcae-cbs-docker-client</artifactId> |
Lusheng Ji | 88648fc | 2017-09-20 02:18:20 +0000 | [diff] [blame] | 30 | <name>dcaegen2-utils-python-cbs-docker-client</name> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 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 | 88648fc | 2017-09-20 02:18:20 +0000 | [diff] [blame] | 36 | <!--sonar.skip>false</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> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 126 | </plugins> |
| 127 | </pluginManagement> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 128 | <plugins> |
| 129 | <!-- plugin> |
| 130 | <artifactId>maven-assembly-plugin</artifactId> |
| 131 | <version>2.4.1</version> |
| 132 | <configuration> |
| 133 | <descriptors> |
| 134 | <descriptor>assembly/dep.xml</descriptor> |
| 135 | </descriptors> |
| 136 | </configuration> |
| 137 | <executions> |
| 138 | <execution> |
| 139 | <id>make-assembly</id> |
| 140 | <phase>package</phase> |
| 141 | <goals> |
| 142 | <goal>single</goal> |
| 143 | </goals> |
| 144 | </execution> |
| 145 | </executions> |
| 146 | </plugin --> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 147 | <!-- now we configure custom action (calling a script) at various lifecycle phases --> |
| 148 | <plugin> |
| 149 | <groupId>org.codehaus.mojo</groupId> |
| 150 | <artifactId>exec-maven-plugin</artifactId> |
| 151 | <version>1.2.1</version> |
| 152 | <executions> |
| 153 | <execution> |
| 154 | <id>clean phase script</id> |
| 155 | <phase>clean</phase> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 156 | <goals> |
| 157 | <goal>exec</goal> |
| 158 | </goals> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 159 | <configuration> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 160 | <arguments> |
| 161 | <argument>${project.artifactId}</argument> |
| 162 | <argument>clean</argument> |
| 163 | </arguments> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 164 | </configuration> |
| 165 | </execution> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 166 | <execution> |
| 167 | <id>generate-sources script</id> |
| 168 | <phase>generate-sources</phase> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 169 | <goals> |
| 170 | <goal>exec</goal> |
| 171 | </goals> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 172 | <configuration> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 173 | <arguments> |
| 174 | <argument>${project.artifactId}</argument> |
| 175 | <argument>generate-sources</argument> |
| 176 | </arguments> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 177 | </configuration> |
| 178 | </execution> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 179 | <execution> |
| 180 | <id>compile script</id> |
| 181 | <phase>compile</phase> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 182 | <goals> |
| 183 | <goal>exec</goal> |
| 184 | </goals> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 185 | <configuration> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 186 | <arguments> |
| 187 | <argument>${project.artifactId}</argument> |
| 188 | <argument>compile</argument> |
| 189 | </arguments> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 190 | </configuration> |
| 191 | </execution> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 192 | <execution> |
| 193 | <id>package script</id> |
| 194 | <phase>package</phase> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 195 | <goals> |
| 196 | <goal>exec</goal> |
| 197 | </goals> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 198 | <configuration> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 199 | <arguments> |
| 200 | <argument>${project.artifactId}</argument> |
| 201 | <argument>package</argument> |
| 202 | </arguments> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 203 | </configuration> |
| 204 | </execution> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 205 | <execution> |
| 206 | <id>test script</id> |
| 207 | <phase>test</phase> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 208 | <goals> |
| 209 | <goal>exec</goal> |
| 210 | </goals> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 211 | <configuration> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 212 | <arguments> |
| 213 | <argument>${project.artifactId}</argument> |
| 214 | <argument>test</argument> |
| 215 | </arguments> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 216 | </configuration> |
| 217 | </execution> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 218 | <execution> |
| 219 | <id>install script</id> |
| 220 | <phase>install</phase> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 221 | <goals> |
| 222 | <goal>exec</goal> |
| 223 | </goals> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 224 | <configuration> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 225 | <arguments> |
| 226 | <argument>${project.artifactId}</argument> |
| 227 | <argument>install</argument> |
| 228 | </arguments> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 229 | </configuration> |
| 230 | </execution> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 231 | <execution> |
| 232 | <id>deploy script</id> |
| 233 | <phase>deploy</phase> |
Lusheng Ji | dbae9d3 | 2017-09-07 12:59:00 +0000 | [diff] [blame] | 234 | <goals> |
| 235 | <goal>exec</goal> |
| 236 | </goals> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 237 | <configuration> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 238 | <arguments> |
| 239 | <argument>${project.artifactId}</argument> |
| 240 | <argument>deploy</argument> |
| 241 | </arguments> |
Lusheng Ji | 5bc79f4 | 2017-08-29 14:20:46 +0000 | [diff] [blame] | 242 | </configuration> |
| 243 | </execution> |
| 244 | </executions> |
| 245 | </plugin> |
| 246 | </plugins> |
| 247 | </build> |
| 248 | </project> |