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