move plugins from from ccsdk to dcaegen2
[dcaegen2/platform/plugins.git] / helm / pom.xml
1 <?xml version="1.0"?>
2 <!--
3 ============LICENSE_START=======================================================
4 org.onap.dcaegen2
5 ================================================================================
6 Copyright (c) 2017,2020 AT&T Intellectual Property. All rights reserved.
7 ================================================================================
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
11
12      http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 ============LICENSE_END=========================================================
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.platform</groupId>
25     <artifactId>plugins</artifactId>
26     <version>1.2.0-SNAPSHOT</version>
27   </parent>
28
29   <!--- CHANGE THE FOLLOWING 3 OBJECTS for your own repo -->
30   <groupId>org.onap.dcaegen2.platform.plugins</groupId>
31   <artifactId>helm</artifactId>
32   <name>helm</name>
33
34   <version>4.2.0-SNAPSHOT</version>
35   <url>http://maven.apache.org</url>
36   <properties>
37     <!-- name from the setup.py file -->
38     <plugin.name>helm</plugin.name>
39     <!-- path to directory containing the setup.py relative to this file -->
40     <plugin.subdir>.</plugin.subdir>
41     <!-- path of types file itself relative to this file -->
42     <typefile.source>helm-type.yaml</typefile.source>
43     <!-- path, in repo, to store type file -->
44     <typefile.dest>type_files/helm/4.0.2/helm-type.yaml</typefile.dest>
45     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46     <sonar.sources>.</sonar.sources>
47     <sonar.junit.reportsPath>nosetests.xml</sonar.junit.reportsPath>
48     <sonar.python.coverage.reportPaths>coverage.xml</sonar.python.coverage.reportPaths>
49     <sonar.language>py</sonar.language>
50     <sonar.pluginName>Python</sonar.pluginName>
51     <sonar.inclusions>**/*.py</sonar.inclusions>
52     <sonar.exclusions>plugin/tests/*,setup.py</sonar.exclusions>
53   </properties>
54
55   <build>
56     <finalName>${project.artifactId}-${project.version}</finalName>
57     <pluginManagement>
58       <plugins>
59         <plugin>
60           <groupId>org.codehaus.mojo</groupId>
61           <artifactId>sonar-maven-plugin</artifactId>
62           <version>2.7.1</version>
63         </plugin>
64
65         <!-- nexus-staging-maven-plugin is called during deploy phase by default behavior.
66          we do not need it -->
67         <plugin>
68           <groupId>org.sonatype.plugins</groupId>
69           <artifactId>nexus-staging-maven-plugin</artifactId>
70           <version>1.6.7</version>
71           <configuration>
72             <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
73           </configuration>
74         </plugin>
75
76         <!-- maven-deploy-plugin is called during deploy but we do not need it -->
77         <plugin>
78             <groupId>org.apache.maven.plugins</groupId>
79             <artifactId>maven-deploy-plugin</artifactId>
80             <version>2.8</version>
81             <configuration>
82                 <skip>true</skip>
83             </configuration>
84         </plugin>
85         <!-- maven-deploy-plugin is called during deploy but we do not need it -->
86         <plugin>
87             <groupId>org.apache.maven.plugins</groupId>
88             <artifactId>maven-deploy-plugin</artifactId>
89             <version>2.8</version>
90             <configuration>
91                 <skip>true</skip>
92             </configuration>
93         </plugin>
94       </plugins>
95     </pluginManagement>
96
97     <plugins>
98
99       <!-- first disable the default Java plugins at various stages -->
100       <!-- maven-resources-plugin is called during "*resource" phases by default behavior.  it prepares the resources
101        dir.  we do not need it -->
102       <plugin>
103         <groupId>org.apache.maven.plugins</groupId>
104         <artifactId>maven-resources-plugin</artifactId>
105         <version>2.6</version>
106         <configuration>
107           <skip>true</skip>
108         </configuration>
109       </plugin>
110
111       <!-- maven-compiler-plugin is called during "compile" phases by default behavior.  we do not need it -->
112       <plugin>
113         <groupId>org.apache.maven.plugins</groupId>
114         <artifactId>maven-compiler-plugin</artifactId>
115         <version>3.1</version>
116         <configuration>
117           <skip>true</skip>
118         </configuration>
119       </plugin>
120
121       <!-- maven-jar-plugin is called during "compile" phase by default behavior.  we do not need it -->
122       <plugin>
123         <groupId>org.apache.maven.plugins</groupId>
124         <artifactId>maven-jar-plugin</artifactId>
125         <version>2.4</version>
126         <executions>
127           <execution>
128             <id>default-jar</id>
129             <phase/>
130           </execution>
131         </executions>
132       </plugin>
133
134       <!-- maven-install-plugin is called during "install" phase by default behavior.  it tries to copy stuff under
135        target dir to ~/.m2.  we do not need it -->
136       <plugin>
137         <groupId>org.apache.maven.plugins</groupId>
138         <artifactId>maven-install-plugin</artifactId>
139         <version>2.4</version>
140         <configuration>
141           <skip>true</skip>
142         </configuration>
143       </plugin>
144
145       <!-- maven-surefire-plugin is called during "test" phase by default behavior.  it triggers junit test.
146        we do not need it -->
147       <plugin>
148         <groupId>org.apache.maven.plugins</groupId>
149         <artifactId>maven-surefire-plugin</artifactId>
150         <version>2.12.4</version>
151         <configuration>
152           <skipTests>true</skipTests>
153         </configuration>
154       </plugin>
155
156       <!-- now we configure custom action (calling a script) at various lifecycle phases -->
157       <plugin>
158         <groupId>org.codehaus.mojo</groupId>
159         <artifactId>exec-maven-plugin</artifactId>
160         <executions>
161           <execution>
162             <id>clean phase script</id>
163             <phase>clean</phase>
164             <goals><goal>exec</goal></goals>
165             <configuration>
166               <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
167               <arguments>
168                 <argument>${project.artifactId}</argument>
169                 <argument>clean</argument>
170               </arguments>
171               <environmentVariables>
172                 <!-- make mvn properties as env for our script -->
173                 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
174                 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
175                 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
176                 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
177                 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
178                 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
179                 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
180                 <PLUGIN_NAME>${plugin.name}</PLUGIN_NAME>
181                 <PLUGIN_SUBDIR>${plugin.subdir}</PLUGIN_SUBDIR>
182               </environmentVariables>
183             </configuration>
184           </execution>
185
186           <execution>
187             <id>generate-sources script</id>
188             <phase>generate-sources</phase>
189             <goals><goal>exec</goal></goals>
190             <configuration>
191               <executable>mvn-phase-script.sh</executable>
192               <arguments>
193                 <argument>${project.artifactId}</argument>
194                 <argument>generate-sources</argument>
195               </arguments>
196               <environmentVariables>
197                 <!-- make mvn properties as env for our script -->
198                 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
199                 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
200                 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
201                 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
202                 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
203                 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
204                 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
205               </environmentVariables>
206             </configuration>
207           </execution>
208
209           <execution>
210             <id>compile script</id>
211             <phase>compile</phase>
212             <goals><goal>exec</goal></goals>
213             <configuration>
214               <executable>mvn-phase-script.sh</executable>
215               <arguments>
216                 <argument>${project.artifactId}</argument>
217                 <argument>compile</argument>
218               </arguments>
219               <environmentVariables>
220                 <!-- make mvn properties as env for our script -->
221                 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
222                 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
223                 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
224                 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
225                 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
226                 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
227                 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
228               </environmentVariables>
229             </configuration>
230           </execution>
231
232           <execution>
233             <id>package script</id>
234             <phase>package</phase>
235             <goals><goal>exec</goal></goals>
236             <configuration>
237               <executable>mvn-phase-script.sh</executable>
238               <arguments>
239                 <argument>${project.artifactId}</argument>
240                 <argument>package</argument>
241               </arguments>
242               <environmentVariables>
243                 <!-- make mvn properties as env for our script -->
244                 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
245                 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
246                 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
247                 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
248                 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
249                 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
250                 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
251                 <PLUGIN_NAME>${plugin.name}</PLUGIN_NAME>
252                 <PLUGIN_SUBDIR>${plugin.subdir}</PLUGIN_SUBDIR>
253               </environmentVariables>
254             </configuration>
255           </execution>
256
257           <execution>
258             <id>test script</id>
259             <phase>test</phase>
260             <goals><goal>exec</goal></goals>
261             <configuration>
262               <executable>mvn-phase-script.sh</executable>
263               <arguments>
264                 <argument>${project.artifactId}</argument>
265                 <argument>test</argument>
266               </arguments>
267               <environmentVariables>
268                 <!-- make mvn properties as env for our script -->
269                 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
270                 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
271                 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
272                 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
273                 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
274                 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
275                 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
276                 <PLUGIN_NAME>${plugin.name}</PLUGIN_NAME>
277                 <PLUGIN_SUBDIR>${plugin.subdir}</PLUGIN_SUBDIR>
278               </environmentVariables>
279             </configuration>
280           </execution>
281
282           <execution>
283             <id>install script</id>
284             <phase>install</phase>
285             <goals><goal>exec</goal></goals>
286             <configuration>
287               <executable>mvn-phase-script.sh</executable>
288               <arguments>
289                 <argument>${project.artifactId}</argument>
290                 <argument>install</argument>
291               </arguments>
292               <environmentVariables>
293                 <!-- make mvn properties as env for our script -->
294                 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
295                 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
296                 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
297                 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
298                 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
299                 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
300                 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
301               </environmentVariables>
302             </configuration>
303           </execution>
304
305           <execution>
306             <id>deploy script</id>
307             <phase>deploy</phase>
308             <goals><goal>exec</goal></goals>
309             <configuration>
310               <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
311               <arguments>
312                 <argument>${project.artifactId}</argument>
313                 <argument>deploy</argument>
314               </arguments>
315               <environmentVariables>
316                 <!-- make mvn properties as env for our script -->
317                 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
318                 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
319                 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
320                 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
321                 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
322                 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
323                 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
324                 <MVN_SERVER_ID>${project.distributionManagement.snapshotRepository.id}</MVN_SERVER_ID>
325                 <TYPE_FILE_SOURCE>${typefile.source}</TYPE_FILE_SOURCE>
326                 <TYPE_FILE_DEST>${typefile.dest}</TYPE_FILE_DEST>
327                 <PLUGIN_NAME>${plugin.name}</PLUGIN_NAME>
328                 <PLUGIN_SUBDIR>${plugin.subdir}</PLUGIN_SUBDIR>
329               </environmentVariables>
330             </configuration>
331           </execution>
332         </executions>
333       </plugin>
334     </plugins>
335   </build>
336 </project>