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