blob: eab1fc0db994744b3d10c07cfe64aafe46330f5a [file] [log] [blame]
Tony Hansen5ae237d2017-08-21 15:12:37 +00001<?xml version="1.0"?>
2<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">
3 <modelVersion>4.0.0</modelVersion>
4 <parent>
5 <groupId>org.onap.oparent</groupId>
6 <artifactId>oparent</artifactId>
7 <version>1.0.0-SNAPSHOT</version>
8 </parent>
9 <!-- parent>
10 <groupId>org.onap.dcae.platform</groupId>
11 <artifactId>plugins</artifactId>
12 <version>1.0.0</version>
13 </parent -->
14 <groupId>org.onap.ccsdk.storage-pgaas</groupId>
15 <artifactId>pgaas</artifactId>
Jessica Wagantallb367b942017-09-08 13:46:16 -070016 <name>ccsdk-storage-pgaas</name>
Tony Hansen5ae237d2017-08-21 15:12:37 +000017 <version>1.0.0-SNAPSHOT</version>
18 <url>http://maven.apache.org</url>
19 <properties>
20 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21 <sonar.sources>.</sonar.sources>
22 <!-- customize the SONARQUBE URL -->
23 <sonar.host.url>http://localhost:9000</sonar.host.url>
24 <!-- below are language dependent -->
25 <!-- for Python -->
26 <sonar.language>py</sonar.language>
27 <sonar.pluginName>Python</sonar.pluginName>
28 <sonar.inclusions>**/*.py</sonar.inclusions>
29 <!-- for JavaScaript -->
30 <!--
31 <sonar.language>js</sonar.language>
32 <sonar.pluginName>JS</sonar.pluginName>
33 <sonar.inclusions>**/*.js</sonar.inclusions>
34 -->
35 </properties>
36
37 <build>
38 <finalName>${project.artifactId}-${project.version}</finalName>
39 <pluginManagement>
40 <plugins>
41 <plugin>
42 <groupId>org.codehaus.mojo</groupId>
43 <artifactId>sonar-maven-plugin</artifactId>
44 <version>2.7.1</version>
45 </plugin>
46 </plugins>
47 </pluginManagement>
48
49 <plugins>
50 <!-- plugin>
51 <artifactId>maven-assembly-plugin</artifactId>
52 <version>2.4.1</version>
53 <configuration>
54 <descriptors>
55 <descriptor>assembly/dep.xml</descriptor>
56 </descriptors>
57 </configuration>
58 <executions>
59 <execution>
60 <id>make-assembly</id>
61 <phase>package</phase>
62 <goals>
63 <goal>single</goal>
64 </goals>
65 </execution>
66 </executions>
67 </plugin -->
68
69 <!-- first disable the default Java plugins at various stages -->
70 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares the resources
71 dir. we do not need it -->
72 <plugin>
73 <groupId>org.apache.maven.plugins</groupId>
74 <artifactId>maven-resources-plugin</artifactId>
75 <version>2.6</version>
76 <configuration>
77 <skip>true</skip>
78 </configuration>
79 </plugin>
80
81 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
82 <plugin>
83 <groupId>org.apache.maven.plugins</groupId>
84 <artifactId>maven-compiler-plugin</artifactId>
85 <version>3.1</version>
86 <configuration>
87 <skip>true</skip>
88 </configuration>
89 </plugin>
90
91 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
92 <plugin>
93 <groupId>org.apache.maven.plugins</groupId>
94 <artifactId>maven-jar-plugin</artifactId>
95 <version>2.4</version>
96 <executions>
97 <execution>
98 <id>default-jar</id>
99 <phase/>
100 </execution>
101 </executions>
102 </plugin>
103
104 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
105 target dir to ~/.m2. we do not need it -->
106 <plugin>
107 <groupId>org.apache.maven.plugins</groupId>
108 <artifactId>maven-install-plugin</artifactId>
109 <version>2.4</version>
110 <configuration>
111 <skip>true</skip>
112 </configuration>
113 </plugin>
114
115 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
116 we do not need it -->
117 <plugin>
118 <groupId>org.apache.maven.plugins</groupId>
119 <artifactId>maven-surefire-plugin</artifactId>
120 <version>2.12.4</version>
121 <configuration>
122 <skipTests>true</skipTests>
123 </configuration>
124 </plugin>
125
126
127 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
128 <plugin>
129 <groupId>org.codehaus.mojo</groupId>
130 <artifactId>exec-maven-plugin</artifactId>
131 <version>1.2.1</version>
132 <executions>
133 <execution>
134 <id>clean phase script</id>
135 <phase>clean</phase>
136 <goals><goal>exec</goal></goals>
137 <configuration>
138 <!-- executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable -->
139 <executable>make</executable>
140 <arguments>
141 <argument>${project.artifactId}</argument>
142 <argument>clean</argument>
143 </arguments>
144 <environmentVariables>
145 <!-- make mvn properties as env for our script -->
146 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
147 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
148 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
149 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
150 <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
151 </environmentVariables>
152 </configuration>
153 </execution>
154
155 <execution>
156 <id>generate-sources script</id>
157 <phase>generate-sources</phase>
158 <goals><goal>exec</goal></goals>
159 <configuration>
160 <!-- executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable -->
161 <executable>make</executable>
162 <arguments>
163 <argument>${project.artifactId}</argument>
164 <argument>generate-sources</argument>
165 </arguments>
166 <environmentVariables>
167 <!-- make mvn properties as env for our script -->
168 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
169 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
170 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
171 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
172 <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
173 </environmentVariables>
174 </configuration>
175 </execution>
176
177 <execution>
178 <id>compile script</id>
179 <phase>compile</phase>
180 <goals><goal>exec</goal></goals>
181 <configuration>
182 <!-- executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable -->
183 <executable>make</executable>
184 <arguments>
185 <argument>${project.artifactId}</argument>
186 <argument>compile</argument>
187 </arguments>
188 <environmentVariables>
189 <!-- make mvn properties as env for our script -->
190 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
191 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
192 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
193 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
194 <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
195 </environmentVariables>
196 </configuration>
197 </execution>
198
199 <execution>
200 <id>package script</id>
201 <phase>package</phase>
202 <goals><goal>exec</goal></goals>
203 <configuration>
204 <!-- executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable -->
205 <executable>make</executable>
206 <arguments>
207 <argument>${project.artifactId}</argument>
208 <argument>package</argument>
209 </arguments>
210 <environmentVariables>
211 <!-- make mvn properties as env for our script -->
212 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
213 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
214 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
215 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
216 <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
217 </environmentVariables>
218 </configuration>
219 </execution>
220
221 <execution>
222 <id>test script</id>
223 <phase>test</phase>
224 <goals><goal>exec</goal></goals>
225 <configuration>
226 <!-- executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable -->
227 <executable>make</executable>
228 <arguments>
229 <argument>${project.artifactId}</argument>
230 <argument>test</argument>
231 </arguments>
232 <environmentVariables>
233 <!-- make mvn properties as env for our script -->
234 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
235 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
236 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
237 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
238 <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
239 </environmentVariables>
240 </configuration>
241 </execution>
242
243 <execution>
244 <id>install script</id>
245 <phase>install</phase>
246 <goals><goal>exec</goal></goals>
247 <configuration>
248 <!-- executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable -->
249 <executable>make</executable>
250 <arguments>
251 <argument>${project.artifactId}</argument>
252 <argument>install</argument>
253 </arguments>
254 <environmentVariables>
255 <!-- make mvn properties as env for our script -->
256 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
257 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
258 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
259 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
260 <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
261 </environmentVariables>
262 </configuration>
263 </execution>
264
265 <execution>
266 <id>deploy script</id>
267 <phase>deploy</phase>
268 <goals><goal>exec</goal></goals>
269 <configuration>
270 <!-- executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable -->
271 <executable>make</executable>
272 <arguments>
273 <argument>${project.artifactId}</argument>
274 <argument>deploy</argument>
275 </arguments>
276 <environmentVariables>
277 <!-- make mvn properties as env for our script -->
278 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
279 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
280 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
281 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
282 <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
283 </environmentVariables>
284 </configuration>
285 </execution>
286 </executions>
287 </plugin>
288 </plugins>
289 </build>
290</project>