blob: 06f697727870d8c07526d71c9b584831ff95f493 [file] [log] [blame]
Lusheng Jic38ca2f2017-09-11 20:11:29 +00001<?xml version="1.0"?>
2<!--
3================================================================================
4Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
5================================================================================
6Licensed under the Apache License, Version 2.0 (the "License");
7you may not use this file except in compliance with the License.
8You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing, software
13distributed under the License is distributed on an "AS IS" BASIS,
14WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15See the License for the specific language governing permissions and
16limitations under the License.
17============LICENSE_END=========================================================
18
19ECOMP 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>
24 <groupId>org.onap.dcaegen2</groupId>
25 <artifactId>deployments</artifactId>
26 <version>1.0.0-SNAPSHOT</version>
27 </parent>
28 <groupId>org.onap.dcaegen2.deployments</groupId>
29 <artifactId>bootstrap</artifactId>
30 <name>bootstrap</name>
31 <version>1.0.0-SNAPSHOT</version>
32 <url>http://maven.apache.org</url>
33 <properties>
34 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35 <sonar.skip>true</sonar.skip>
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 -->
41 <sonar.language>py</sonar.language>
42 <sonar.pluginName>Python</sonar.pluginName>
43 <sonar.inclusions>**/*.py</sonar.inclusions>
44 <!-- for JavaScaript -->
45 <!--
46 <sonar.language>js</sonar.language>
47 <sonar.pluginName>JS</sonar.pluginName>
48 <sonar.inclusions>**/*.js</sonar.inclusions>
49 -->
50 </properties>
51 <build>
52 <finalName>${project.artifactId}-${project.version}</finalName>
53 <plugins>
54 <!-- plugin>
55 <artifactId>maven-assembly-plugin</artifactId>
56 <version>2.4.1</version>
57 <configuration>
58 <descriptors>
59 <descriptor>assembly/dep.xml</descriptor>
60 </descriptors>
61 </configuration>
62 <executions>
63 <execution>
64 <id>make-assembly</id>
65 <phase>package</phase>
66 <goals>
67 <goal>single</goal>
68 </goals>
69 </execution>
70 </executions>
71 </plugin -->
72 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
73 <plugin>
74 <groupId>org.codehaus.mojo</groupId>
75 <artifactId>exec-maven-plugin</artifactId>
76 <version>1.2.1</version>
77 <executions>
78 <execution>
79 <id>clean phase script</id>
80 <phase>clean</phase>
81 <goals>
82 <goal>exec</goal>
83 </goals>
84 <configuration>
85 <arguments>
86 <argument>${project.artifactId}</argument>
87 <argument>clean</argument>
88 </arguments>
89 </configuration>
90 </execution>
91 <execution>
92 <id>generate-sources script</id>
93 <phase>generate-sources</phase>
94 <goals>
95 <goal>exec</goal>
96 </goals>
97 <configuration>
98 <arguments>
99 <argument>${project.artifactId}</argument>
100 <argument>generate-sources</argument>
101 </arguments>
102 </configuration>
103 </execution>
104 <execution>
105 <id>compile script</id>
106 <phase>compile</phase>
107 <goals>
108 <goal>exec</goal>
109 </goals>
110 <configuration>
111 <arguments>
112 <argument>${project.artifactId}</argument>
113 <argument>compile</argument>
114 </arguments>
115 </configuration>
116 </execution>
117 <execution>
118 <id>package script</id>
119 <phase>package</phase>
120 <goals>
121 <goal>exec</goal>
122 </goals>
123 <configuration>
124 <arguments>
125 <argument>${project.artifactId}</argument>
126 <argument>package</argument>
127 </arguments>
128 </configuration>
129 </execution>
130 <execution>
131 <id>test script</id>
132 <phase>test</phase>
133 <goals>
134 <goal>exec</goal>
135 </goals>
136 <configuration>
137 <arguments>
138 <argument>${project.artifactId}</argument>
139 <argument>test</argument>
140 </arguments>
141 </configuration>
142 </execution>
143 <execution>
144 <id>install script</id>
145 <phase>install</phase>
146 <goals>
147 <goal>exec</goal>
148 </goals>
149 <configuration>
150 <arguments>
151 <argument>${project.artifactId}</argument>
152 <argument>install</argument>
153 </arguments>
154 </configuration>
155 </execution>
156 <execution>
157 <id>deploy script</id>
158 <phase>deploy</phase>
159 <goals>
160 <goal>exec</goal>
161 </goals>
162 <configuration>
163 <arguments>
164 <argument>${project.artifactId}</argument>
165 <argument>deploy</argument>
166 </arguments>
167 </configuration>
168 </execution>
169 </executions>
170 </plugin>
171 </plugins>
172 </build>
173</project>