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