blob: 9af1db6a26276a2efd4c17f91982be17ac229217 [file] [log] [blame]
Tony Hansen4b747742017-09-19 05:04:05 +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.dcaegen2</groupId>
25 <artifactId>utils</artifactId>
26 <version>1.0.0-SNAPSHOT</version>
27 </parent>
28 <groupId>org.onap.dcaegen2.utils</groupId>
29 <artifactId>check-blueprint-vs-input</artifactId>
30 <name>check-blueprint-vs-input</name>
31 <version>1.0.0-SNAPSHOT</version>
32 <url>http://maven.apache.org</url>
33
34 <properties>
35 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36 <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 <!-- first disable the default Java plugins at various stages -->
75 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares
76 the resources dir. we do not need it -->
77 <plugin>
78 <groupId>org.apache.maven.plugins</groupId>
79 <artifactId>maven-resources-plugin</artifactId>
80 <version>2.6</version>
81 <configuration>
82 <skip>true</skip>
83 </configuration>
84 </plugin>
85 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
86 <plugin>
87 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-compiler-plugin</artifactId>
89 <version>3.1</version>
90 <configuration>
91 <skip>true</skip>
92 </configuration>
93 </plugin>
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 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
107 target dir to ~/.m2. we do not need it -->
108 <plugin>
109 <groupId>org.apache.maven.plugins</groupId>
110 <artifactId>maven-install-plugin</artifactId>
111 <version>2.4</version>
112 <configuration>
113 <skip>true</skip>
114 </configuration>
115 </plugin>
116 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
117 we do not need it -->
118 <plugin>
119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-surefire-plugin</artifactId>
121 <version>2.12.4</version>
122 <configuration>
123 <skipTests>true</skipTests>
124 </configuration>
125 </plugin>
126 <plugin>
127 <groupId>org.codehaus.mojo</groupId>
128 <artifactId>exec-maven-plugin</artifactId>
129 <version>1.2.1</version>
130 <configuration>
131 <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
132 <environmentVariables>
133 <!-- make mvn properties as env for our script -->
134 <MVN_PROJECT_GROUPID>${project.parent.groupId}</MVN_PROJECT_GROUPID>
135 <MVN_PROJECT_ARTIFACTID>${project.parent.artifactId}</MVN_PROJECT_ARTIFACTID>
136 <MVN_PROJECT_VERSION>${project.parent.version}</MVN_PROJECT_VERSION>
137 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
138 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
139 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
140 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
141 <MVN_DOCKERREGISTRY_DAILY>${onap.nexus.dockerregistry.daily}</MVN_DOCKERREGISTRY_DAILY>
142 <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
143 </environmentVariables>
144 </configuration>
145 </plugin>
146 </plugins>
147 </pluginManagement>
148 <plugins>
149 <!-- plugin>
150 <artifactId>maven-assembly-plugin</artifactId>
151 <version>2.4.1</version>
152 <configuration>
153 <descriptors>
154 <descriptor>assembly/dep.xml</descriptor>
155 </descriptors>
156 </configuration>
157 <executions>
158 <execution>
159 <id>make-assembly</id>
160 <phase>package</phase>
161 <goals>
162 <goal>single</goal>
163 </goals>
164 </execution>
165 </executions>
166 </plugin -->
167 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
168 <plugin>
169 <groupId>org.codehaus.mojo</groupId>
170 <artifactId>exec-maven-plugin</artifactId>
171 <version>1.2.1</version>
172 <executions>
173 <execution>
174 <id>clean phase script</id>
175 <phase>clean</phase>
176 <goals>
177 <goal>exec</goal>
178 </goals>
179 <configuration>
180 <arguments>
181 <argument>${project.artifactId}</argument>
182 <argument>clean</argument>
183 </arguments>
184 </configuration>
185 </execution>
186 <execution>
187 <id>generate-sources script</id>
188 <phase>generate-sources</phase>
189 <goals>
190 <goal>exec</goal>
191 </goals>
192 <configuration>
193 <arguments>
194 <argument>${project.artifactId}</argument>
195 <argument>generate-sources</argument>
196 </arguments>
197 </configuration>
198 </execution>
199 <execution>
200 <id>compile script</id>
201 <phase>compile</phase>
202 <goals>
203 <goal>exec</goal>
204 </goals>
205 <configuration>
206 <arguments>
207 <argument>${project.artifactId}</argument>
208 <argument>compile</argument>
209 </arguments>
210 </configuration>
211 </execution>
212 <execution>
213 <id>package script</id>
214 <phase>package</phase>
215 <goals>
216 <goal>exec</goal>
217 </goals>
218 <configuration>
219 <arguments>
220 <argument>${project.artifactId}</argument>
221 <argument>package</argument>
222 </arguments>
223 </configuration>
224 </execution>
225 <execution>
226 <id>test script</id>
227 <phase>test</phase>
228 <goals>
229 <goal>exec</goal>
230 </goals>
231 <configuration>
232 <arguments>
233 <argument>${project.artifactId}</argument>
234 <argument>test</argument>
235 </arguments>
236 </configuration>
237 </execution>
238 <execution>
239 <id>install script</id>
240 <phase>install</phase>
241 <goals>
242 <goal>exec</goal>
243 </goals>
244 <configuration>
245 <arguments>
246 <argument>${project.artifactId}</argument>
247 <argument>install</argument>
248 </arguments>
249 </configuration>
250 </execution>
251 <execution>
252 <id>deploy script</id>
253 <phase>deploy</phase>
254 <goals>
255 <goal>exec</goal>
256 </goals>
257 <configuration>
258 <arguments>
259 <argument>${project.artifactId}</argument>
260 <argument>deploy</argument>
261 <argument>bin/check-blueprint-vs-input</argument>
262 <argument>man/check-blueprint-vs-input.1</argument>
263 </arguments>
264 </configuration>
265 </execution>
266 </executions>
267 </plugin>
268 </plugins>
269 </build>
270</project>