blob: 1cbd1607893436c54a9c0f4c22340c1c5946ec34 [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>
24 <groupId>org.onap.oparent</groupId>
25 <artifactId>oparent</artifactId>
26 <version>1.0.0-SNAPSHOT</version>
27 </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>
Lusheng Jibad9c3e2017-09-01 03:06:57 +000032 <version>1.0.0-SNAPSHOT</version>
33 <url>http://maven.apache.org</url>
34 <properties>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Lusheng Jibad9c3e2017-09-01 03:06:57 +000036 <sonar.skip>true</sonar.skip>
37 <sonar.sources>.</sonar.sources>
38 <!-- customize the SONARQUBE URL -->
39 <!-- sonar.host.url>http://localhost:9000</sonar.host.url -->
40 <!-- below are language dependent -->
41 <!-- for Python -->
42 <sonar.language>py</sonar.language>
43 <sonar.pluginName>Python</sonar.pluginName>
44 <sonar.inclusions>**/*.py</sonar.inclusions>
45 <!-- for JavaScaript -->
46 <!--
47 <sonar.language>js</sonar.language>
48 <sonar.pluginName>JS</sonar.pluginName>
49 <sonar.inclusions>**/*.js</sonar.inclusions>
50 -->
51 </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>