blob: 9c07291ae5478e7590923d6f7617b63a7b137e1b [file] [log] [blame]
Lusheng Ji16948022017-09-11 23:38:09 +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>
Lusheng Jieab16752017-09-19 18:39:04 +000025 <artifactId>root</artifactId>
Lusheng Ji16948022017-09-11 23:38:09 +000026 <version>1.0.0-SNAPSHOT</version>
27 </parent>
28 <groupId>org.onap.dcaegen2</groupId>
29 <artifactId>platformdoc</artifactId>
30 <name>dcaegen2-platformdoc</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>
Lusheng Jieab16752017-09-19 18:39:04 +000054 <pluginManagement>
55 <plugins>
56 <plugin>
57 <groupId>org.codehaus.mojo</groupId>
58 <artifactId>exec-maven-plugin</artifactId>
59 <version>1.2.1</version>
60 <configuration>
61 <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
62 <environmentVariables>
63 <!-- make mvn properties as env for our script -->
64 <MVN_PROJECT_GROUPID>${project.parent.groupId}</MVN_PROJECT_GROUPID>
65 <MVN_PROJECT_ARTIFACTID>${project.parent.artifactId}</MVN_PROJECT_ARTIFACTID>
66 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
67 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
68 <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD>
69 <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD>
70 <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID>
71 <MVN_DOCKERREGISTRY_SNAPSHOT>${onap.nexus.dockerregistry.snapshot}</MVN_DOCKERREGISTRY_SNAPSHOT>
72 <MVN_DOCKERREGISTRY_RELEASE>${onap.nexus.dockerregistry.release}</MVN_DOCKERREGISTRY_RELEASE>
73 <MVN_DOCKERREGISTRY_SNAPSHOT_SERVERID>${onap.nexus.dockerregistry.snapshot.serverid}</MVN_DOCKERREGISTRY_SNAPSHOT_SERVERID>
74 <MVN_DOCKERREGISTRY_RELEASE_SERVERID>${onap.nexus.dockerregistry.release.serverid}</MVN_DOCKERREGISTRY_RELEASE_SERVERID>
75 <MVN_PYPISERVER_BASEURL>${onap.nexus.pypiserver.baseurl}</MVN_PYPISERVER_BASEURL>
76 <MVN_PYPISERVER_SERVERID>${onap.nexus.pypiserver.serverid}</MVN_PYPISERVER_SERVERID>
77 </environmentVariables>
78 </configuration>
79 </plugin>
80 </plugins>
81 </pluginManagement>
82
Lusheng Ji16948022017-09-11 23:38:09 +000083 <plugins>
84 <!-- plugin>
85 <artifactId>maven-assembly-plugin</artifactId>
86 <version>2.4.1</version>
87 <configuration>
88 <descriptors>
89 <descriptor>assembly/dep.xml</descriptor>
90 </descriptors>
91 </configuration>
92 <executions>
93 <execution>
94 <id>make-assembly</id>
95 <phase>package</phase>
96 <goals>
97 <goal>single</goal>
98 </goals>
99 </execution>
100 </executions>
101 </plugin -->
102 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
103 <plugin>
104 <groupId>org.codehaus.mojo</groupId>
105 <artifactId>exec-maven-plugin</artifactId>
106 <version>1.2.1</version>
107 <executions>
108 <execution>
109 <id>clean phase script</id>
110 <phase>clean</phase>
111 <goals>
112 <goal>exec</goal>
113 </goals>
114 <configuration>
115 <arguments>
116 <argument>${project.artifactId}</argument>
117 <argument>clean</argument>
118 </arguments>
119 </configuration>
120 </execution>
121 <execution>
122 <id>generate-sources script</id>
123 <phase>generate-sources</phase>
124 <goals>
125 <goal>exec</goal>
126 </goals>
127 <configuration>
128 <arguments>
129 <argument>${project.artifactId}</argument>
130 <argument>generate-sources</argument>
131 </arguments>
132 </configuration>
133 </execution>
134 <execution>
135 <id>compile script</id>
136 <phase>compile</phase>
137 <goals>
138 <goal>exec</goal>
139 </goals>
140 <configuration>
141 <arguments>
142 <argument>${project.artifactId}</argument>
143 <argument>compile</argument>
144 </arguments>
145 </configuration>
146 </execution>
147 <execution>
148 <id>package script</id>
149 <phase>package</phase>
150 <goals>
151 <goal>exec</goal>
152 </goals>
153 <configuration>
154 <arguments>
155 <argument>${project.artifactId}</argument>
156 <argument>package</argument>
157 </arguments>
158 </configuration>
159 </execution>
160 <execution>
161 <id>test script</id>
162 <phase>test</phase>
163 <goals>
164 <goal>exec</goal>
165 </goals>
166 <configuration>
167 <arguments>
168 <argument>${project.artifactId}</argument>
169 <argument>test</argument>
170 </arguments>
171 </configuration>
172 </execution>
173 <execution>
174 <id>install script</id>
175 <phase>install</phase>
176 <goals>
177 <goal>exec</goal>
178 </goals>
179 <configuration>
180 <arguments>
181 <argument>${project.artifactId}</argument>
182 <argument>install</argument>
183 </arguments>
184 </configuration>
185 </execution>
186 <execution>
187 <id>deploy script</id>
188 <phase>deploy</phase>
189 <goals>
190 <goal>exec</goal>
191 </goals>
192 <configuration>
193 <arguments>
194 <argument>${project.artifactId}</argument>
195 <argument>deploy</argument>
196 </arguments>
197 </configuration>
198 </execution>
199 </executions>
200 </plugin>
201 </plugins>
202 </build>
203</project>