Merge "Handle AAI Update and Delete events for PMSH"
[dcaegen2/services.git] / components / pm-subscription-handler / pom.xml
1 <?xml version="1.0"?>
2 <!--
3 # ============LICENSE_START=======================================================
4 #  Copyright (C) 2019 Nordix Foundation.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
9 #
10 #      http://www.apache.org/licenses/LICENSE-2.0
11 #
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 #
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
20 -->
21 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0   http://maven.apache.org/xsd/maven-4.0.0.xsd">
23   <modelVersion>4.0.0</modelVersion>
24
25   <parent>
26     <groupId>org.onap.oparent</groupId>
27     <artifactId>oparent</artifactId>
28     <version>3.0.0</version>
29   </parent>
30   <!--- CHANGE THE FOLLOWING 3 OBJECTS for your own repo -->
31   <groupId>org.onap.dcaegen2.services</groupId>
32   <artifactId>pmsh</artifactId>
33   <name>dcaegen2-services-pm-subscription-handler</name>
34   <version>1.0.0-SNAPSHOT</version>
35   <properties>
36     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
37     <sonar.sources>.</sonar.sources>
38     <sonar.junit.reportsPath>xunit-results.xml</sonar.junit.reportsPath>
39     <sonar.python.coverage.reportPaths>coverage.xml</sonar.python.coverage.reportPaths>
40     <sonar.python.xunit.reportPath>xunit-results.xml</sonar.python.xunit.reportPath>
41     <sonar.language>py</sonar.language>
42     <sonar.pluginname>python</sonar.pluginname>
43     <sonar.inclusions>**/*.py</sonar.inclusions>
44     <sonar.exclusions>target/**,tests/**,setup.py,**/__init__.py</sonar.exclusions>
45     <exec-mvn-plugin-version>1.2.1</exec-mvn-plugin-version>
46   </properties>
47   <build>
48     <finalName>${project.artifactId}-${project.version}</finalName>
49     <pluginManagement>
50       <plugins>
51         <!-- the following plugins are invoked from oparent, we do not need them -->
52         <plugin>
53           <groupId>org.sonatype.plugins</groupId>
54           <artifactId>nexus-staging-maven-plugin</artifactId>
55           <configuration>
56             <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
57           </configuration>
58         </plugin>
59         <plugin>
60           <groupId>org.apache.maven.plugins</groupId>
61           <artifactId>maven-deploy-plugin</artifactId>
62           <!-- This version supports the "deployAtEnd" parameter -->
63           <configuration>
64             <skip>true</skip>
65           </configuration>
66         </plugin>
67         <plugin>
68           <groupId>org.apache.maven.plugins</groupId>
69           <artifactId>maven-enforcer-plugin</artifactId>
70           <configuration>
71             <skip>true</skip>
72           </configuration>
73         </plugin>
74         <!-- first disable the default Java plugins at various stages -->
75         <!-- maven-resources-plugin is called during "*resource" phases by default behavior.  it prepares the resources
76        dir.  we do not need it -->
77         <plugin>
78           <groupId>org.apache.maven.plugins</groupId>
79           <artifactId>maven-resources-plugin</artifactId>
80           <configuration>
81             <skip>true</skip>
82           </configuration>
83         </plugin>
84         <!-- maven-compiler-plugin is called during "compile" phases by default behavior.  we do not need it -->
85         <plugin>
86           <groupId>org.apache.maven.plugins</groupId>
87           <artifactId>maven-compiler-plugin</artifactId>
88           <configuration>
89             <skip>true</skip>
90           </configuration>
91         </plugin>
92         <!-- maven-jar-plugin is called during "compile" phase by default behavior.  we do not need it -->
93         <plugin>
94           <groupId>org.apache.maven.plugins</groupId>
95           <artifactId>maven-jar-plugin</artifactId>
96           <executions>
97             <execution>
98               <id>default-jar</id>
99             </execution>
100           </executions>
101         </plugin>
102         <!-- maven-install-plugin is called during "install" phase by default behavior.  it tries to copy stuff under
103        target dir to ~/.m2.  we do not need it -->
104         <plugin>
105           <groupId>org.apache.maven.plugins</groupId>
106           <artifactId>maven-install-plugin</artifactId>
107           <configuration>
108             <skip>true</skip>
109           </configuration>
110         </plugin>
111         <!-- maven-surefire-plugin is called during "test" phase by default behavior.  it triggers junit test.
112        we do not need it -->
113         <plugin>
114           <groupId>org.apache.maven.plugins</groupId>
115           <artifactId>maven-surefire-plugin</artifactId>
116           <configuration>
117             <skipTests>true</skipTests>
118           </configuration>
119         </plugin>
120         <plugin>
121           <groupId>org.codehaus.mojo</groupId>
122           <artifactId>exec-maven-plugin</artifactId>
123           <version>${exec-mvn-plugin-version}</version>
124           <configuration>
125             <executable>${project.basedir}/mvn-phase-script.sh</executable>
126             <environmentVariables>
127               <!-- make mvn properties as env for our script -->
128               <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
129               <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
130               <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
131               <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
132               <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
133               <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
134               <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
135               <MVN_DOCKERREGISTRY_DAILY>${onap.nexus.dockerregistry.daily}</MVN_DOCKERREGISTRY_DAILY>
136               <MVN_DOCKERREGISTRY_SNAPSHOT>${onap.nexus.dockerregistry.daily}</MVN_DOCKERREGISTRY_SNAPSHOT>
137               <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
138             </environmentVariables>
139           </configuration>
140         </plugin>
141       </plugins>
142     </pluginManagement>
143     <plugins>
144       <!-- now we configure custom action (calling a script) at various lifecycle phases -->
145       <plugin>
146         <groupId>org.codehaus.mojo</groupId>
147         <artifactId>exec-maven-plugin</artifactId>
148         <version>${exec-mvn-plugin-version}</version>
149         <executions>
150           <execution>
151             <id>clean phase script</id>
152             <phase>clean</phase>
153             <goals>
154               <goal>exec</goal>
155             </goals>
156             <configuration>
157               <arguments>
158                 <argument>__</argument>
159                 <argument>clean</argument>
160               </arguments>
161             </configuration>
162           </execution>
163           <execution>
164             <id>generate-sources script</id>
165             <phase>generate-sources</phase>
166             <goals>
167               <goal>exec</goal>
168             </goals>
169             <configuration>
170               <arguments>
171                 <argument>__</argument>
172                 <argument>generate-sources</argument>
173               </arguments>
174             </configuration>
175           </execution>
176           <execution>
177             <id>compile script</id>
178             <phase>compile</phase>
179             <goals>
180               <goal>exec</goal>
181             </goals>
182             <configuration>
183               <arguments>
184                 <argument>__</argument>
185                 <argument>compile</argument>
186               </arguments>
187             </configuration>
188           </execution>
189           <execution>
190             <id>package script</id>
191             <phase>package</phase>
192             <goals>
193               <goal>exec</goal>
194             </goals>
195             <configuration>
196               <arguments>
197                 <argument>__</argument>
198                 <argument>package</argument>
199               </arguments>
200             </configuration>
201           </execution>
202           <execution>
203             <id>test script</id>
204             <phase>test</phase>
205             <goals>
206               <goal>exec</goal>
207             </goals>
208             <configuration>
209               <arguments>
210                 <argument>__</argument>
211                 <argument>test</argument>
212               </arguments>
213             </configuration>
214           </execution>
215           <execution>
216             <id>install script</id>
217             <phase>install</phase>
218             <goals>
219               <goal>exec</goal>
220             </goals>
221             <configuration>
222               <arguments>
223                 <argument>__</argument>
224                 <argument>install</argument>
225               </arguments>
226             </configuration>
227           </execution>
228           <execution>
229             <id>deploy script</id>
230             <phase>deploy</phase>
231             <goals>
232               <goal>exec</goal>
233             </goals>
234             <configuration>
235               <arguments>
236                 <argument>__</argument>
237                 <argument>deploy</argument>
238               </arguments>
239             </configuration>
240           </execution>
241         </executions>
242       </plugin>
243     </plugins>
244   </build>
245 </project>