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