blob: ea1ccba40c88d0c7645047f446aced2f234be2ae [file] [log] [blame]
Lusheng Jibad9c3e2017-09-01 03:06:57 +00001<?xml version="1.0"?>
2<!--
3================================================================================
4Copyright (c) 2017 AT&T Intellectual Property. All rights reserved.
5================================================================================
6Licensed under the Apache License, Version 2.0 (the "License");
7you may not use this file except in compliance with the License.
8You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12Unless required by applicable law or agreed to in writing, software
13distributed under the License is distributed on an "AS IS" BASIS,
14WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15See the License for the specific language governing permissions and
16limitations under the License.
17============LICENSE_END=========================================================
18
19ECOMP is a trademark and service mark of AT&T Intellectual Property.
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>
Jessica Wagantallb0da16e2017-11-20 14:56:39 -080024 <groupId>org.onap</groupId>
Tommy Carpenter70c3c862017-10-06 09:48:12 -040025 <artifactId>dcaegen2</artifactId>
Jessica Wagantallb0da16e2017-11-20 14:56:39 -080026 <version>1.1.0-SNAPSHOT</version>
Lusheng Jibad9c3e2017-09-01 03:06:57 +000027 </parent>
28 <!--- CHANGE THE FOLLOWING 3 OBJECTS for your own repo -->
29 <groupId>org.onap.dcaegen2.platform</groupId>
30 <artifactId>configbinding</artifactId>
Jessica Wagantall59600642017-09-08 14:47:42 -070031 <name>dcaegen2-platform-configbinding</name>
Tommy Carpenter70c3c862017-10-06 09:48:12 -040032 <version>1.2.0</version>
Lusheng Jibad9c3e2017-09-01 03:06:57 +000033 <url>http://maven.apache.org</url>
34 <properties>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Tommy Carpenter84cc5232017-09-25 12:12:04 -040036 <!-- sonar -->
37 <sonar.skip>false</sonar.skip>
Lusheng Jibad9c3e2017-09-01 03:06:57 +000038 <sonar.sources>.</sonar.sources>
Tommy Carpenter84cc5232017-09-25 12:12:04 -040039 <sonar.junit.reportspath>xunit-reports/xunit-result-configbinding.xml</sonar.junit.reportspath>
40 <!--
41 <sonar.python.coverage.reportpath>coverage.xml</sonar.python.coverage.reportpath>
42 see https://docs.sonarqube.org/display/plug/python+coverage+results+import
43 ant pattern describing the path to coverage reports, relative to projects root. leave unset to use the default ("coverage-reports/coverage-*.xml").
Lusheng Jibad9c3e2017-09-01 03:06:57 +000044 -->
Tommy Carpenter84cc5232017-09-25 12:12:04 -040045 <sonar.language>py</sonar.language>
46 <sonar.pluginname>python</sonar.pluginname>
47 <sonar.inclusions>config_binding_service/**.py</sonar.inclusions>
48 <sonar.host.url>http://135.205.228.63:9000</sonar.host.url>
49
50
Lusheng Jibad9c3e2017-09-01 03:06:57 +000051 </properties>
52 <build>
53 <finalName>${project.artifactId}-${project.version}</finalName>
54 <pluginManagement>
55 <plugins>
56 <!-- the following plugins are invoked from oparent, we do not need them -->
57 <plugin>
58 <groupId>org.sonatype.plugins</groupId>
59 <artifactId>nexus-staging-maven-plugin</artifactId>
60 <version>1.6.7</version>
61 <configuration>
62 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
63 </configuration>
64 </plugin>
65 <plugin>
66 <groupId>org.apache.maven.plugins</groupId>
67 <artifactId>maven-deploy-plugin</artifactId>
68 <!-- This version supports the "deployAtEnd" parameter -->
69 <version>2.8</version>
70 <configuration>
71 <skip>true</skip>
72 </configuration>
73 </plugin>
74 <plugin>
75 <groupId>org.apache.maven.plugins</groupId>
76 <artifactId>maven-enforcer-plugin</artifactId>
77 <version>3.0.0-M1</version>
78 <configuration>
79 <skip>true</skip>
80 </configuration>
81 </plugin>
82 <!-- first disable the default Java plugins at various stages -->
83 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares the resources
84 dir. we do not need it -->
85 <plugin>
86 <groupId>org.apache.maven.plugins</groupId>
87 <artifactId>maven-resources-plugin</artifactId>
88 <version>2.6</version>
89 <configuration>
90 <skip>true</skip>
91 </configuration>
92 </plugin>
93 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
94 <plugin>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-compiler-plugin</artifactId>
97 <version>3.1</version>
98 <configuration>
99 <skip>true</skip>
100 </configuration>
101 </plugin>
102 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
103 <plugin>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-jar-plugin</artifactId>
106 <version>2.4</version>
107 <executions>
108 <execution>
109 <id>default-jar</id>
110 <phase/>
111 </execution>
112 </executions>
113 </plugin>
114 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
115 target dir to ~/.m2. we do not need it -->
116 <plugin>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-install-plugin</artifactId>
119 <version>2.4</version>
120 <configuration>
121 <skip>true</skip>
122 </configuration>
123 </plugin>
124 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
125 we do not need it -->
126 <plugin>
127 <groupId>org.apache.maven.plugins</groupId>
128 <artifactId>maven-surefire-plugin</artifactId>
129 <version>2.12.4</version>
130 <configuration>
131 <skipTests>true</skipTests>
132 </configuration>
133 </plugin>
Lusheng Jic2a234c2017-09-06 00:06:30 +0000134 <plugin>
135 <groupId>org.codehaus.mojo</groupId>
136 <artifactId>exec-maven-plugin</artifactId>
137 <version>1.2.1</version>
138 <configuration>
139 <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
140 <environmentVariables>
141 <!-- make mvn properties as env for our script -->
142 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
143 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
144 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
145 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
146 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
147 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
148 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
149 <MVN_DOCKERREGISTRY_DAILY>${onap.nexus.dockerregistry.daily}</MVN_DOCKERREGISTRY_DAILY>
150 <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
151 </environmentVariables>
152 </configuration>
153 </plugin>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000154 </plugins>
155 </pluginManagement>
156 <plugins>
157 <!-- plugin>
158 <artifactId>maven-assembly-plugin</artifactId>
159 <version>2.4.1</version>
160 <configuration>
161 <descriptors>
162 <descriptor>assembly/dep.xml</descriptor>
163 </descriptors>
164 </configuration>
165 <executions>
166 <execution>
167 <id>make-assembly</id>
168 <phase>package</phase>
169 <goals>
170 <goal>single</goal>
171 </goals>
172 </execution>
173 </executions>
174 </plugin -->
175 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
176 <plugin>
177 <groupId>org.codehaus.mojo</groupId>
178 <artifactId>exec-maven-plugin</artifactId>
179 <version>1.2.1</version>
180 <executions>
181 <execution>
182 <id>clean phase script</id>
183 <phase>clean</phase>
184 <goals>
185 <goal>exec</goal>
186 </goals>
187 <configuration>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000188 <arguments>
Lusheng Jic2a234c2017-09-06 00:06:30 +0000189 <argument>__</argument>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000190 <argument>clean</argument>
191 </arguments>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000192 </configuration>
193 </execution>
194 <execution>
195 <id>generate-sources script</id>
196 <phase>generate-sources</phase>
197 <goals>
198 <goal>exec</goal>
199 </goals>
200 <configuration>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000201 <arguments>
Lusheng Jic2a234c2017-09-06 00:06:30 +0000202 <argument>__</argument>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000203 <argument>generate-sources</argument>
204 </arguments>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000205 </configuration>
206 </execution>
207 <execution>
208 <id>compile script</id>
209 <phase>compile</phase>
210 <goals>
211 <goal>exec</goal>
212 </goals>
213 <configuration>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000214 <arguments>
Lusheng Jic2a234c2017-09-06 00:06:30 +0000215 <argument>__</argument>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000216 <argument>compile</argument>
217 </arguments>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000218 </configuration>
219 </execution>
220 <execution>
221 <id>package script</id>
222 <phase>package</phase>
223 <goals>
224 <goal>exec</goal>
225 </goals>
226 <configuration>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000227 <arguments>
Lusheng Jic2a234c2017-09-06 00:06:30 +0000228 <argument>__</argument>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000229 <argument>package</argument>
230 </arguments>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000231 </configuration>
232 </execution>
233 <execution>
234 <id>test script</id>
235 <phase>test</phase>
236 <goals>
237 <goal>exec</goal>
238 </goals>
239 <configuration>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000240 <arguments>
Lusheng Jic2a234c2017-09-06 00:06:30 +0000241 <argument>__</argument>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000242 <argument>test</argument>
243 </arguments>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000244 </configuration>
245 </execution>
246 <execution>
247 <id>install script</id>
248 <phase>install</phase>
249 <goals>
250 <goal>exec</goal>
251 </goals>
252 <configuration>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000253 <arguments>
Lusheng Jic2a234c2017-09-06 00:06:30 +0000254 <argument>__</argument>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000255 <argument>install</argument>
256 </arguments>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000257 </configuration>
258 </execution>
259 <execution>
260 <id>deploy script</id>
261 <phase>deploy</phase>
262 <goals>
263 <goal>exec</goal>
264 </goals>
265 <configuration>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000266 <arguments>
Lusheng Jic2a234c2017-09-06 00:06:30 +0000267 <argument>__</argument>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000268 <argument>deploy</argument>
269 </arguments>
Lusheng Jibad9c3e2017-09-01 03:06:57 +0000270 </configuration>
271 </execution>
272 </executions>
273 </plugin>
274 </plugins>
275 </build>
276</project>