Lusheng Ji | 6c11793 | 2018-04-03 15:07:58 -0400 | [diff] [blame] | 1 | <?xml version="1.0"?> |
| 2 | <!-- |
| 3 | ================================================================================ |
| 4 | Copyright (c) 2018 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 | --> |
| 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> |
| 23 | <groupId>org.onap.dcaegen2.deployments</groupId> |
| 24 | <artifactId>deployments</artifactId> |
| 25 | <version>1.2.0-SNAPSHOT</version> |
| 26 | </parent> |
| 27 | <groupId>org.onap.dcaegen2.deployments</groupId> |
| 28 | <artifactId>heat</artifactId> |
| 29 | <name>dcaegen2-deployments-heat</name> |
| 30 | <version>1.0.0-SNAPSHOT</version> |
| 31 | <url>http://maven.apache.org</url> |
| 32 | <properties> |
| 33 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 34 | <sonar.skip>true</sonar.skip> |
| 35 | </properties> |
| 36 | <build> |
| 37 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 38 | <plugins> |
| 39 | <!-- plugin> |
| 40 | <artifactId>maven-assembly-plugin</artifactId> |
| 41 | <version>2.4.1</version> |
| 42 | <configuration> |
| 43 | <descriptors> |
| 44 | <descriptor>assembly/dep.xml</descriptor> |
| 45 | </descriptors> |
| 46 | </configuration> |
| 47 | <executions> |
| 48 | <execution> |
| 49 | <id>make-assembly</id> |
| 50 | <phase>package</phase> |
| 51 | <goals> |
| 52 | <goal>single</goal> |
| 53 | </goals> |
| 54 | </execution> |
| 55 | </executions> |
| 56 | </plugin --> |
| 57 | <!-- now we configure custom action (calling a script) at various lifecycle phases --> |
| 58 | <plugin> |
| 59 | <groupId>org.codehaus.mojo</groupId> |
| 60 | <artifactId>exec-maven-plugin</artifactId> |
| 61 | <version>1.2.1</version> |
| 62 | <executions> |
| 63 | <execution> |
| 64 | <id>clean phase script</id> |
| 65 | <phase>clean</phase> |
| 66 | <goals> |
| 67 | <goal>exec</goal> |
| 68 | </goals> |
| 69 | <configuration> |
| 70 | <arguments> |
| 71 | <argument>${project.artifactId}</argument> |
| 72 | <argument>clean</argument> |
| 73 | </arguments> |
| 74 | </configuration> |
| 75 | </execution> |
| 76 | <execution> |
| 77 | <id>generate-sources script</id> |
| 78 | <phase>generate-sources</phase> |
| 79 | <goals> |
| 80 | <goal>exec</goal> |
| 81 | </goals> |
| 82 | <configuration> |
| 83 | <arguments> |
| 84 | <argument>${project.artifactId}</argument> |
| 85 | <argument>generate-sources</argument> |
| 86 | </arguments> |
| 87 | </configuration> |
| 88 | </execution> |
| 89 | <execution> |
| 90 | <id>compile script</id> |
| 91 | <phase>compile</phase> |
| 92 | <goals> |
| 93 | <goal>exec</goal> |
| 94 | </goals> |
| 95 | <configuration> |
| 96 | <arguments> |
| 97 | <argument>${project.artifactId}</argument> |
| 98 | <argument>compile</argument> |
| 99 | </arguments> |
| 100 | </configuration> |
| 101 | </execution> |
| 102 | <execution> |
| 103 | <id>package script</id> |
| 104 | <phase>package</phase> |
| 105 | <goals> |
| 106 | <goal>exec</goal> |
| 107 | </goals> |
| 108 | <configuration> |
| 109 | <arguments> |
| 110 | <argument>${project.artifactId}</argument> |
| 111 | <argument>package</argument> |
| 112 | </arguments> |
| 113 | </configuration> |
| 114 | </execution> |
| 115 | <execution> |
| 116 | <id>test script</id> |
| 117 | <phase>test</phase> |
| 118 | <goals> |
| 119 | <goal>exec</goal> |
| 120 | </goals> |
| 121 | <configuration> |
| 122 | <arguments> |
| 123 | <argument>${project.artifactId}</argument> |
| 124 | <argument>test</argument> |
| 125 | </arguments> |
| 126 | </configuration> |
| 127 | </execution> |
| 128 | <execution> |
| 129 | <id>install script</id> |
| 130 | <phase>install</phase> |
| 131 | <goals> |
| 132 | <goal>exec</goal> |
| 133 | </goals> |
| 134 | <configuration> |
| 135 | <arguments> |
| 136 | <argument>${project.artifactId}</argument> |
| 137 | <argument>install</argument> |
| 138 | </arguments> |
| 139 | </configuration> |
| 140 | </execution> |
| 141 | <execution> |
| 142 | <id>deploy script</id> |
| 143 | <phase>deploy</phase> |
| 144 | <goals> |
| 145 | <goal>exec</goal> |
| 146 | </goals> |
| 147 | <configuration> |
| 148 | <arguments> |
| 149 | <argument>${project.artifactId}</argument> |
| 150 | <argument>deploy</argument> |
| 151 | </arguments> |
| 152 | </configuration> |
| 153 | </execution> |
| 154 | </executions> |
| 155 | </plugin> |
| 156 | </plugins> |
| 157 | </build> |
| 158 | </project> |