blob: 3a627a8c854298d8fc26e74847b69bcf061cc8c0 [file] [log] [blame]
Lusheng Ji0e903b92017-09-21 04:19:47 +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.platform.cli</groupId>
25 <artifactId>cli</artifactId>
vagrant533e7d72017-11-25 06:50:06 +000026 <version>1.1.0-SNAPSHOT</version>
Lusheng Ji0e903b92017-09-21 04:19:47 +000027 </parent>
28 <groupId>org.onap.dcaegen2.platform.cli</groupId>
29 <artifactId>component-json-schemas</artifactId>
30 <name>dcaegen2-platform-cli-component-json-schemas</name>
vagrant533e7d72017-11-25 06:50:06 +000031 <version>1.1.0-SNAPSHOT</version>
Lusheng Ji0e903b92017-09-21 04:19:47 +000032 <url>http://maven.apache.org</url>
33 <properties>
34 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
35 <sonar.sources>.</sonar.sources>
36 <!-- customize the SONARQUBE URL -->
37 <!-- sonar.host.url>http://localhost:9000</sonar.host.url -->
38 <!-- below are language dependent -->
39 <!-- for Python -->
40 <sonar.language>py</sonar.language>
41 <sonar.pluginName>Python</sonar.pluginName>
42 <sonar.inclusions>**/*.py</sonar.inclusions>
43 <!-- for JavaScaript -->
44 <!--
45 <sonar.language>js</sonar.language>
46 <sonar.pluginName>JS</sonar.pluginName>
47 <sonar.inclusions>**/*.js</sonar.inclusions>
48 -->
49 </properties>
50 <build>
51 <finalName>${project.artifactId}-${project.version}</finalName>
52 <pluginManagement>
53 <plugins>
54 <!-- the following plugins are invoked from oparent, we do not need them -->
55 <plugin>
56 <groupId>org.sonatype.plugins</groupId>
57 <artifactId>nexus-staging-maven-plugin</artifactId>
58 <version>1.6.7</version>
59 <configuration>
60 <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>
61 </configuration>
62 </plugin>
63 <plugin>
64 <groupId>org.apache.maven.plugins</groupId>
65 <artifactId>maven-deploy-plugin</artifactId>
66 <!-- This version supports the "deployAtEnd" parameter -->
67 <version>2.8</version>
68 <configuration>
69 <skip>true</skip>
70 </configuration>
71 </plugin>
72 <!-- first disable the default Java plugins at various stages -->
73 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares
74 the resources 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 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
84 <plugin>
85 <groupId>org.apache.maven.plugins</groupId>
86 <artifactId>maven-compiler-plugin</artifactId>
87 <version>3.1</version>
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 <version>2.4</version>
97 <executions>
98 <execution>
99 <id>default-jar</id>
100 <phase/>
101 </execution>
102 </executions>
103 </plugin>
104 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
105 target dir to ~/.m2. we do not need it -->
106 <plugin>
107 <groupId>org.apache.maven.plugins</groupId>
108 <artifactId>maven-install-plugin</artifactId>
109 <version>2.4</version>
110 <configuration>
111 <skip>true</skip>
112 </configuration>
113 </plugin>
114 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
115 we do not need it -->
116 <plugin>
117 <groupId>org.apache.maven.plugins</groupId>
118 <artifactId>maven-surefire-plugin</artifactId>
119 <version>2.12.4</version>
120 <configuration>
121 <skipTests>true</skipTests>
122 </configuration>
123 </plugin>
124 </plugins>
125 </pluginManagement>
126 <plugins>
127 <!-- plugin>
128 <artifactId>maven-assembly-plugin</artifactId>
129 <version>2.4.1</version>
130 <configuration>
131 <descriptors>
132 <descriptor>assembly/dep.xml</descriptor>
133 </descriptors>
134 </configuration>
135 <executions>
136 <execution>
137 <id>make-assembly</id>
138 <phase>package</phase>
139 <goals>
140 <goal>single</goal>
141 </goals>
142 </execution>
143 </executions>
144 </plugin -->
145 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
146 <plugin>
147 <groupId>org.codehaus.mojo</groupId>
148 <artifactId>exec-maven-plugin</artifactId>
149 <version>1.2.1</version>
150 <executions>
151 <execution>
152 <id>clean phase script</id>
153 <phase>clean</phase>
154 <goals>
155 <goal>exec</goal>
156 </goals>
157 <configuration>
158 <arguments>
159 <argument>${project.artifactId}</argument>
160 <argument>clean</argument>
161 </arguments>
162 </configuration>
163 </execution>
164 <execution>
165 <id>generate-sources script</id>
166 <phase>generate-sources</phase>
167 <goals>
168 <goal>exec</goal>
169 </goals>
170 <configuration>
171 <arguments>
172 <argument>${project.artifactId}</argument>
173 <argument>generate-sources</argument>
174 </arguments>
175 </configuration>
176 </execution>
177 <execution>
178 <id>compile script</id>
179 <phase>compile</phase>
180 <goals>
181 <goal>exec</goal>
182 </goals>
183 <configuration>
184 <arguments>
185 <argument>${project.artifactId}</argument>
186 <argument>compile</argument>
187 </arguments>
188 </configuration>
189 </execution>
190 <execution>
191 <id>package script</id>
192 <phase>package</phase>
193 <goals>
194 <goal>exec</goal>
195 </goals>
196 <configuration>
197 <arguments>
198 <argument>${project.artifactId}</argument>
199 <argument>package</argument>
200 </arguments>
201 </configuration>
202 </execution>
203 <execution>
204 <id>test script</id>
205 <phase>test</phase>
206 <goals>
207 <goal>exec</goal>
208 </goals>
209 <configuration>
210 <arguments>
211 <argument>${project.artifactId}</argument>
212 <argument>test</argument>
213 </arguments>
214 </configuration>
215 </execution>
216 <execution>
217 <id>install script</id>
218 <phase>install</phase>
219 <goals>
220 <goal>exec</goal>
221 </goals>
222 <configuration>
223 <arguments>
224 <argument>${project.artifactId}</argument>
225 <argument>install</argument>
226 </arguments>
227 </configuration>
228 </execution>
229 <execution>
230 <id>deploy script</id>
231 <phase>deploy</phase>
232 <goals>
233 <goal>exec</goal>
234 </goals>
235 <configuration>
236 <arguments>
237 <argument>${project.artifactId}</argument>
238 <argument>deploy</argument>
239 </arguments>
240 </configuration>
241 </execution>
242 </executions>
243 </plugin>
244 </plugins>
245 </build>
246</project>