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