blob: f0f907aabc3e22a1ef1e7766ea5c8923af4c95a2 [file] [log] [blame]
Lusheng Ji3edab162017-08-28 16:22:14 -04001<?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>
Lusheng Ji3edab162017-08-28 16:22:14 -040023 <parent>
Lusheng Ji0e903b92017-09-21 04:19:47 +000024 <groupId>org.onap.dcaegen2.platform.cli</groupId>
Lusheng Ji3edab162017-08-28 16:22:14 -040025 <artifactId>cli</artifactId>
26 <version>1.0.0-SNAPSHOT</version>
27 </parent>
28 <groupId>org.onap.dcaegen2.platform.cli</groupId>
29 <artifactId>dcae-cli</artifactId>
Lusheng Ji0e903b92017-09-21 04:19:47 +000030 <name>dcaegen2-platform-cli-dcae-cli</name>
Lusheng Ji3edab162017-08-28 16:22:14 -040031 <version>1.0.0-SNAPSHOT</version>
32 <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 -->
Lusheng Ji3d473c42017-08-30 02:43:04 +000037 <!-- sonar.host.url>http://localhost:9000</sonar.host.url -->
Lusheng Ji3edab162017-08-28 16:22:14 -040038 <!-- 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>
Lusheng Ji3edab162017-08-28 16:22:14 -040050 <build>
51 <finalName>${project.artifactId}-${project.version}</finalName>
52 <pluginManagement>
53 <plugins>
Lusheng Ji3d473c42017-08-30 02:43:04 +000054 <!-- the following plugins are invoked from oparent, we do not need them -->
Lusheng Ji3edab162017-08-28 16:22:14 -040055 <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>
Lusheng Ji3d473c42017-08-30 02:43:04 +000063 <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>
Lusheng Ji3edab162017-08-28 16:22:14 -0400124 </plugins>
125 </pluginManagement>
Lusheng Ji3edab162017-08-28 16:22:14 -0400126 <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 -->
Lusheng Ji3edab162017-08-28 16:22:14 -0400145 <!-- 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>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000154 <goals>
155 <goal>exec</goal>
156 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400157 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400158 <arguments>
159 <argument>${project.artifactId}</argument>
160 <argument>clean</argument>
161 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400162 </configuration>
163 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400164 <execution>
165 <id>generate-sources script</id>
166 <phase>generate-sources</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000167 <goals>
168 <goal>exec</goal>
169 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400170 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400171 <arguments>
172 <argument>${project.artifactId}</argument>
173 <argument>generate-sources</argument>
174 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400175 </configuration>
176 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400177 <execution>
178 <id>compile script</id>
179 <phase>compile</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000180 <goals>
181 <goal>exec</goal>
182 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400183 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400184 <arguments>
185 <argument>${project.artifactId}</argument>
186 <argument>compile</argument>
187 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400188 </configuration>
189 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400190 <execution>
191 <id>package script</id>
192 <phase>package</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000193 <goals>
194 <goal>exec</goal>
195 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400196 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400197 <arguments>
198 <argument>${project.artifactId}</argument>
199 <argument>package</argument>
200 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400201 </configuration>
202 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400203 <execution>
204 <id>test script</id>
205 <phase>test</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000206 <goals>
207 <goal>exec</goal>
208 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400209 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400210 <arguments>
211 <argument>${project.artifactId}</argument>
212 <argument>test</argument>
213 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400214 </configuration>
215 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400216 <execution>
217 <id>install script</id>
218 <phase>install</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000219 <goals>
220 <goal>exec</goal>
221 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400222 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400223 <arguments>
224 <argument>${project.artifactId}</argument>
225 <argument>install</argument>
226 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400227 </configuration>
228 </execution>
Lusheng Ji3edab162017-08-28 16:22:14 -0400229 <execution>
230 <id>deploy script</id>
231 <phase>deploy</phase>
Lusheng Ji3d473c42017-08-30 02:43:04 +0000232 <goals>
233 <goal>exec</goal>
234 </goals>
Lusheng Ji3edab162017-08-28 16:22:14 -0400235 <configuration>
Lusheng Ji3edab162017-08-28 16:22:14 -0400236 <arguments>
237 <argument>${project.artifactId}</argument>
238 <argument>deploy</argument>
239 </arguments>
Lusheng Ji3edab162017-08-28 16:22:14 -0400240 </configuration>
241 </execution>
242 </executions>
243 </plugin>
244 </plugins>
245 </build>
246</project>