Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <!-- |
| 3 | ================================================================================ |
Vijay Venkatesh Kumar | c5bfc89 | 2019-07-20 03:24:28 +0000 | [diff] [blame^] | 4 | Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved. |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [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 | |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 19 | --> |
| 20 | <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"> |
| 21 | <modelVersion>4.0.0</modelVersion> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 22 | <parent> |
Lusheng Ji | 0e903b9 | 2017-09-21 04:19:47 +0000 | [diff] [blame] | 23 | <groupId>org.onap.dcaegen2.platform.cli</groupId> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 24 | <artifactId>cli</artifactId> |
rajendrajaiswal | 686dc4e | 2019-06-14 14:35:34 +0100 | [diff] [blame] | 25 | <version>1.2.0-SNAPSHOT</version> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 26 | </parent> |
| 27 | <groupId>org.onap.dcaegen2.platform.cli</groupId> |
| 28 | <artifactId>dcae-cli</artifactId> |
Lusheng Ji | 0e903b9 | 2017-09-21 04:19:47 +0000 | [diff] [blame] | 29 | <name>dcaegen2-platform-cli-dcae-cli</name> |
tb2541onap | c306f89 | 2018-10-15 13:26:39 -0400 | [diff] [blame] | 30 | <version>2.11.1</version> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 31 | <url>http://maven.apache.org</url> |
| 32 | <properties> |
| 33 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 34 | <sonar.sources>.</sonar.sources> |
Lusheng Ji | fbd0d3f | 2018-03-13 12:56:21 -0400 | [diff] [blame] | 35 | <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath> |
| 36 | <sonar.python.coverage.reportPath>coverage.xml</sonar.python.coverage.reportPath> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 37 | <sonar.language>py</sonar.language> |
| 38 | <sonar.pluginName>Python</sonar.pluginName> |
| 39 | <sonar.inclusions>**/*.py</sonar.inclusions> |
Lusheng Ji | fbd0d3f | 2018-03-13 12:56:21 -0400 | [diff] [blame] | 40 | <sonar.exclusions>tests/*,setup.py</sonar.exclusions> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 41 | </properties> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 42 | <build> |
| 43 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 44 | <pluginManagement> |
| 45 | <plugins> |
Lusheng Ji | 3d473c4 | 2017-08-30 02:43:04 +0000 | [diff] [blame] | 46 | <plugin> |
Vijay Venkatesh Kumar | c5bfc89 | 2019-07-20 03:24:28 +0000 | [diff] [blame^] | 47 | <groupId>org.sonatype.plugins</groupId> |
| 48 | <artifactId>nexus-staging-maven-plugin</artifactId> |
| 49 | <version>1.6.7</version> |
| 50 | <configuration> |
| 51 | <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo> |
| 52 | </configuration> |
| 53 | </plugin> |
| 54 | <plugin> |
Lusheng Ji | 3d473c4 | 2017-08-30 02:43:04 +0000 | [diff] [blame] | 55 | <groupId>org.apache.maven.plugins</groupId> |
| 56 | <artifactId>maven-deploy-plugin</artifactId> |
| 57 | <!-- This version supports the "deployAtEnd" parameter --> |
| 58 | <version>2.8</version> |
| 59 | <configuration> |
| 60 | <skip>true</skip> |
| 61 | </configuration> |
| 62 | </plugin> |
| 63 | <!-- first disable the default Java plugins at various stages --> |
rajendrajaiswal | 686dc4e | 2019-06-14 14:35:34 +0100 | [diff] [blame] | 64 | <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares |
Lusheng Ji | 3d473c4 | 2017-08-30 02:43:04 +0000 | [diff] [blame] | 65 | the resources dir. we do not need it --> |
| 66 | <plugin> |
| 67 | <groupId>org.apache.maven.plugins</groupId> |
| 68 | <artifactId>maven-resources-plugin</artifactId> |
| 69 | <version>2.6</version> |
| 70 | <configuration> |
| 71 | <skip>true</skip> |
| 72 | </configuration> |
| 73 | </plugin> |
| 74 | <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it --> |
| 75 | <plugin> |
| 76 | <groupId>org.apache.maven.plugins</groupId> |
| 77 | <artifactId>maven-compiler-plugin</artifactId> |
| 78 | <version>3.1</version> |
| 79 | <configuration> |
| 80 | <skip>true</skip> |
| 81 | </configuration> |
| 82 | </plugin> |
| 83 | <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it --> |
| 84 | <plugin> |
| 85 | <groupId>org.apache.maven.plugins</groupId> |
| 86 | <artifactId>maven-jar-plugin</artifactId> |
| 87 | <version>2.4</version> |
| 88 | <executions> |
| 89 | <execution> |
| 90 | <id>default-jar</id> |
| 91 | <phase/> |
| 92 | </execution> |
| 93 | </executions> |
| 94 | </plugin> |
rajendrajaiswal | 686dc4e | 2019-06-14 14:35:34 +0100 | [diff] [blame] | 95 | <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under |
Lusheng Ji | 3d473c4 | 2017-08-30 02:43:04 +0000 | [diff] [blame] | 96 | target dir to ~/.m2. we do not need it --> |
| 97 | <plugin> |
| 98 | <groupId>org.apache.maven.plugins</groupId> |
| 99 | <artifactId>maven-install-plugin</artifactId> |
| 100 | <version>2.4</version> |
| 101 | <configuration> |
| 102 | <skip>true</skip> |
| 103 | </configuration> |
| 104 | </plugin> |
| 105 | <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test. |
| 106 | we do not need it --> |
| 107 | <plugin> |
| 108 | <groupId>org.apache.maven.plugins</groupId> |
| 109 | <artifactId>maven-surefire-plugin</artifactId> |
| 110 | <version>2.12.4</version> |
| 111 | <configuration> |
| 112 | <skipTests>true</skipTests> |
| 113 | </configuration> |
| 114 | </plugin> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 115 | </plugins> |
| 116 | </pluginManagement> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 117 | <plugins> |
| 118 | <!-- plugin> |
| 119 | <artifactId>maven-assembly-plugin</artifactId> |
| 120 | <version>2.4.1</version> |
| 121 | <configuration> |
| 122 | <descriptors> |
| 123 | <descriptor>assembly/dep.xml</descriptor> |
| 124 | </descriptors> |
| 125 | </configuration> |
| 126 | <executions> |
| 127 | <execution> |
| 128 | <id>make-assembly</id> |
| 129 | <phase>package</phase> |
| 130 | <goals> |
| 131 | <goal>single</goal> |
| 132 | </goals> |
| 133 | </execution> |
| 134 | </executions> |
| 135 | </plugin --> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 136 | <!-- now we configure custom action (calling a script) at various lifecycle phases --> |
| 137 | <plugin> |
| 138 | <groupId>org.codehaus.mojo</groupId> |
| 139 | <artifactId>exec-maven-plugin</artifactId> |
| 140 | <version>1.2.1</version> |
| 141 | <executions> |
| 142 | <execution> |
| 143 | <id>clean phase script</id> |
| 144 | <phase>clean</phase> |
Lusheng Ji | 3d473c4 | 2017-08-30 02:43:04 +0000 | [diff] [blame] | 145 | <goals> |
| 146 | <goal>exec</goal> |
| 147 | </goals> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 148 | <configuration> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 149 | <arguments> |
| 150 | <argument>${project.artifactId}</argument> |
| 151 | <argument>clean</argument> |
| 152 | </arguments> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 153 | </configuration> |
| 154 | </execution> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 155 | <execution> |
| 156 | <id>generate-sources script</id> |
| 157 | <phase>generate-sources</phase> |
Lusheng Ji | 3d473c4 | 2017-08-30 02:43:04 +0000 | [diff] [blame] | 158 | <goals> |
| 159 | <goal>exec</goal> |
| 160 | </goals> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 161 | <configuration> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 162 | <arguments> |
| 163 | <argument>${project.artifactId}</argument> |
| 164 | <argument>generate-sources</argument> |
| 165 | </arguments> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 166 | </configuration> |
| 167 | </execution> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 168 | <execution> |
| 169 | <id>compile script</id> |
| 170 | <phase>compile</phase> |
Lusheng Ji | 3d473c4 | 2017-08-30 02:43:04 +0000 | [diff] [blame] | 171 | <goals> |
| 172 | <goal>exec</goal> |
| 173 | </goals> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 174 | <configuration> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 175 | <arguments> |
| 176 | <argument>${project.artifactId}</argument> |
| 177 | <argument>compile</argument> |
| 178 | </arguments> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 179 | </configuration> |
| 180 | </execution> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 181 | <execution> |
| 182 | <id>package script</id> |
| 183 | <phase>package</phase> |
Lusheng Ji | 3d473c4 | 2017-08-30 02:43:04 +0000 | [diff] [blame] | 184 | <goals> |
| 185 | <goal>exec</goal> |
| 186 | </goals> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 187 | <configuration> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 188 | <arguments> |
| 189 | <argument>${project.artifactId}</argument> |
| 190 | <argument>package</argument> |
| 191 | </arguments> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 192 | </configuration> |
| 193 | </execution> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 194 | <execution> |
| 195 | <id>test script</id> |
| 196 | <phase>test</phase> |
Lusheng Ji | 3d473c4 | 2017-08-30 02:43:04 +0000 | [diff] [blame] | 197 | <goals> |
| 198 | <goal>exec</goal> |
| 199 | </goals> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 200 | <configuration> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 201 | <arguments> |
| 202 | <argument>${project.artifactId}</argument> |
| 203 | <argument>test</argument> |
| 204 | </arguments> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 205 | </configuration> |
| 206 | </execution> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 207 | <execution> |
| 208 | <id>install script</id> |
| 209 | <phase>install</phase> |
Lusheng Ji | 3d473c4 | 2017-08-30 02:43:04 +0000 | [diff] [blame] | 210 | <goals> |
| 211 | <goal>exec</goal> |
| 212 | </goals> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 213 | <configuration> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 214 | <arguments> |
| 215 | <argument>${project.artifactId}</argument> |
| 216 | <argument>install</argument> |
| 217 | </arguments> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 218 | </configuration> |
| 219 | </execution> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 220 | <execution> |
| 221 | <id>deploy script</id> |
| 222 | <phase>deploy</phase> |
Lusheng Ji | 3d473c4 | 2017-08-30 02:43:04 +0000 | [diff] [blame] | 223 | <goals> |
| 224 | <goal>exec</goal> |
| 225 | </goals> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 226 | <configuration> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 227 | <arguments> |
| 228 | <argument>${project.artifactId}</argument> |
| 229 | <argument>deploy</argument> |
| 230 | </arguments> |
Lusheng Ji | 3edab16 | 2017-08-28 16:22:14 -0400 | [diff] [blame] | 231 | </configuration> |
| 232 | </execution> |
| 233 | </executions> |
| 234 | </plugin> |
| 235 | </plugins> |
| 236 | </build> |
| 237 | </project> |