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