move plugins from from ccsdk to dcaegen2
[dcaegen2/platform/plugins.git] / sshkeyshare / 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>sshkeyshare</artifactId>
32   <name>sshkeyshare</name>
33
34   <version>1.2.0-SNAPSHOT</version>
35   <url>http://maven.apache.org</url>
36   <properties>
37     <!-- name from the setup.py file -->
38     <plugin.name>sshkeyshare</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>sshkey_types.yaml</typefile.source>
43     <!-- path, in repo, to store type file -->
44     <typefile.dest>type_files/sshkeyshare/sshkey_types.yaml</typefile.dest>
45     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
46     <sonar.sources>.</sonar.sources>
47     <sonar.junit.reportsPath>xunit-results.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>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       </plugins>
86     </pluginManagement>
87
88     <plugins>
89
90       <!-- first disable the default Java plugins at various stages -->
91       <!-- maven-resources-plugin is called during "*resource" phases by default behavior.  it prepares the resources
92        dir.  we do not need it -->
93       <plugin>
94         <groupId>org.apache.maven.plugins</groupId>
95         <artifactId>maven-resources-plugin</artifactId>
96         <version>2.6</version>
97         <configuration>
98           <skip>true</skip>
99         </configuration>
100       </plugin>
101
102       <!-- maven-compiler-plugin is called during "compile" phases by default behavior.  we do not need it -->
103       <plugin>
104         <groupId>org.apache.maven.plugins</groupId>
105         <artifactId>maven-compiler-plugin</artifactId>
106         <version>3.1</version>
107         <configuration>
108           <skip>true</skip>
109         </configuration>
110       </plugin>
111
112       <!-- maven-jar-plugin is called during "compile" phase by default behavior.  we do not need it -->
113       <plugin>
114         <groupId>org.apache.maven.plugins</groupId>
115         <artifactId>maven-jar-plugin</artifactId>
116         <version>2.4</version>
117         <executions>
118           <execution>
119             <id>default-jar</id>
120             <phase/>
121           </execution>
122         </executions>
123       </plugin>
124
125       <!-- maven-install-plugin is called during "install" phase by default behavior.  it tries to copy stuff under
126        target dir to ~/.m2.  we do not need it -->
127       <plugin>
128         <groupId>org.apache.maven.plugins</groupId>
129         <artifactId>maven-install-plugin</artifactId>
130         <version>2.4</version>
131         <configuration>
132           <skip>true</skip>
133         </configuration>
134       </plugin>
135
136       <!-- maven-surefire-plugin is called during "test" phase by default behavior.  it triggers junit test.
137        we do not need it -->
138       <plugin>
139         <groupId>org.apache.maven.plugins</groupId>
140         <artifactId>maven-surefire-plugin</artifactId>
141         <version>2.12.4</version>
142         <configuration>
143           <skipTests>true</skipTests>
144         </configuration>
145       </plugin>
146
147       <!-- now we configure custom action (calling a script) at various lifecycle phases -->
148       <plugin>
149         <groupId>org.codehaus.mojo</groupId>
150         <artifactId>exec-maven-plugin</artifactId>
151         <executions>
152           <execution>
153             <id>clean phase script</id>
154             <phase>clean</phase>
155             <goals><goal>exec</goal></goals>
156             <configuration>
157               <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
158               <arguments>
159                 <argument>${project.artifactId}</argument>
160                 <argument>clean</argument>
161               </arguments>
162               <environmentVariables>
163                 <!-- make mvn properties as env for our script -->
164                 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
165                 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
166                 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
167                 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
168                 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
169                 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
170                 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
171                 <PLUGIN_NAME>${plugin.name}</PLUGIN_NAME>
172                 <PLUGIN_SUBDIR>${plugin.subdir}</PLUGIN_SUBDIR>
173               </environmentVariables>
174             </configuration>
175           </execution>
176
177           <execution>
178             <id>generate-sources script</id>
179             <phase>generate-sources</phase>
180             <goals><goal>exec</goal></goals>
181             <configuration>
182               <executable>mvn-phase-script.sh</executable>
183               <arguments>
184                 <argument>${project.artifactId}</argument>
185                 <argument>generate-sources</argument>
186               </arguments>
187               <environmentVariables>
188                 <!-- make mvn properties as env for our script -->
189                 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
190                 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
191                 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
192                 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
193                 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
194                 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
195                 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
196               </environmentVariables>
197             </configuration>
198           </execution>
199
200           <execution>
201             <id>compile script</id>
202             <phase>compile</phase>
203             <goals><goal>exec</goal></goals>
204             <configuration>
205               <executable>mvn-phase-script.sh</executable>
206               <arguments>
207                 <argument>${project.artifactId}</argument>
208                 <argument>compile</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_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
217                 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
218                 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
219               </environmentVariables>
220             </configuration>
221           </execution>
222
223           <execution>
224             <id>package script</id>
225             <phase>package</phase>
226             <goals><goal>exec</goal></goals>
227             <configuration>
228               <executable>mvn-phase-script.sh</executable>
229               <arguments>
230                 <argument>${project.artifactId}</argument>
231                 <argument>package</argument>
232               </arguments>
233               <environmentVariables>
234                 <!-- make mvn properties as env for our script -->
235                 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
236                 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
237                 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
238                 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
239                 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
240                 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
241                 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
242                 <PLUGIN_NAME>${plugin.name}</PLUGIN_NAME>
243                 <PLUGIN_SUBDIR>${plugin.subdir}</PLUGIN_SUBDIR>
244               </environmentVariables>
245             </configuration>
246           </execution>
247
248           <execution>
249             <id>test script</id>
250             <phase>test</phase>
251             <goals><goal>exec</goal></goals>
252             <configuration>
253               <executable>mvn-phase-script.sh</executable>
254               <arguments>
255                 <argument>${project.artifactId}</argument>
256                 <argument>test</argument>
257               </arguments>
258               <environmentVariables>
259                 <!-- make mvn properties as env for our script -->
260                 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
261                 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
262                 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
263                 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
264                 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
265                 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
266                 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
267                 <PLUGIN_NAME>${plugin.name}</PLUGIN_NAME>
268                 <PLUGIN_SUBDIR>${plugin.subdir}</PLUGIN_SUBDIR>
269               </environmentVariables>
270             </configuration>
271           </execution>
272
273           <execution>
274             <id>install script</id>
275             <phase>install</phase>
276             <goals><goal>exec</goal></goals>
277             <configuration>
278               <executable>mvn-phase-script.sh</executable>
279               <arguments>
280                 <argument>${project.artifactId}</argument>
281                 <argument>install</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_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
290                 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
291                 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
292               </environmentVariables>
293             </configuration>
294           </execution>
295
296           <execution>
297             <id>deploy script</id>
298             <phase>deploy</phase>
299             <goals><goal>exec</goal></goals>
300             <configuration>
301               <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
302               <arguments>
303                 <argument>${project.artifactId}</argument>
304                 <argument>deploy</argument>
305               </arguments>
306               <environmentVariables>
307                 <!-- make mvn properties as env for our script -->
308                 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
309                 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
310                 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
311                 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
312                 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
313                 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
314                 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
315                 <MVN_SERVER_ID>${project.distributionManagement.snapshotRepository.id}</MVN_SERVER_ID>
316                 <TYPE_FILE_SOURCE>${typefile.source}</TYPE_FILE_SOURCE>
317                 <TYPE_FILE_DEST>${typefile.dest}</TYPE_FILE_DEST>
318                 <PLUGIN_NAME>${plugin.name}</PLUGIN_NAME>
319                 <PLUGIN_SUBDIR>${plugin.subdir}</PLUGIN_SUBDIR>
320               </environmentVariables>
321             </configuration>
322           </execution>
323         </executions>
324       </plugin>
325     </plugins>
326   </build>
327 </project>