|
1 | | -<!-- |
2 | | - Licensed to the Apache Software Foundation (ASF) under one |
3 | | - or more contributor license agreements. See the NOTICE file |
4 | | - distributed with this work for additional information |
5 | | - regarding copyright ownership. The ASF licenses this file |
6 | | - to you under the Apache License, Version 2.0 (the |
7 | | - "License"); you may not use this file except in compliance |
8 | | - with the License. You may obtain a copy of the License at |
9 | | -
|
10 | | - http://www.apache.org/licenses/LICENSE-2.0 |
11 | | -
|
12 | | - Unless required by applicable law or agreed to in writing, |
13 | | - software distributed under the License is distributed on an |
14 | | - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
15 | | - KIND, either express or implied. See the License for the |
16 | | - specific language governing permissions and limitations |
17 | | - under the License. |
18 | | ---> |
19 | | -<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"> |
| 1 | +<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor |
| 2 | + license agreements. See the NOTICE file distributed with this work for additional |
| 3 | + information regarding copyright ownership. The ASF licenses this file to |
| 4 | + you under the Apache License, Version 2.0 (the "License"); you may not use |
| 5 | + this file except in compliance with the License. You may obtain a copy of |
| 6 | + the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required |
| 7 | + by applicable law or agreed to in writing, software distributed under the |
| 8 | + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS |
| 9 | + OF ANY KIND, either express or implied. See the License for the specific |
| 10 | + language governing permissions and limitations under the License. --> |
| 11 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 12 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
20 | 13 | <modelVersion>4.0.0</modelVersion> |
21 | 14 | <artifactId>cloud-client-ui</artifactId> |
22 | 15 | <name>Apache CloudStack Client UI</name> |
|
145 | 138 | <version>1.7</version> |
146 | 139 | <executions> |
147 | 140 | <execution> |
| 141 | + <id>generate-resource</id> |
148 | 142 | <phase>generate-resources</phase> |
149 | 143 | <goals> |
150 | 144 | <goal>run</goal> |
151 | 145 | </goals> |
152 | 146 | <configuration> |
153 | 147 | <target> |
154 | | - <copy todir="${basedir}/target/generated-webapp/WEB-INF/classes"> |
| 148 | + <copy |
| 149 | + todir="${basedir}/target/generated-webapp/WEB-INF/classes"> |
155 | 150 | <fileset dir="${basedir}/WEB-INF/classes"> |
156 | 151 | <include name="resources/**/*" /> |
157 | 152 | </fileset> |
158 | 153 | </copy> |
159 | | - <copy todir="${basedir}/target/generated-webapp/WEB-INF/classes/scripts"> |
| 154 | + <copy |
| 155 | + todir="${basedir}/target/generated-webapp/WEB-INF/classes/scripts"> |
160 | 156 | <fileset dir="${basedir}/../scripts" /> |
161 | 157 | </copy> |
162 | 158 | <copy todir="${basedir}/target/generated-webapp"> |
163 | 159 | <fileset dir="${basedir}/../ui" /> |
164 | 160 | </copy> |
165 | | - <copy overwrite="true" todir="${basedir}/target/generated-webapp/WEB-INF/classes"> |
| 161 | + <copy overwrite="true" |
| 162 | + todir="${basedir}/target/generated-webapp/WEB-INF/classes"> |
166 | 163 | <fileset dir="${basedir}/tomcatconf"> |
167 | 164 | <include name="*.in" /> |
168 | 165 | </fileset> |
169 | 166 | <globmapper from="*.in" to="*" /> |
170 | 167 | <filterchain> |
171 | | - <filterreader classname="org.apache.tools.ant.filters.ReplaceTokens"> |
172 | | - <param type="propertiesfile" value="${basedir}/../build/replace.properties" /> |
| 168 | + <filterreader |
| 169 | + classname="org.apache.tools.ant.filters.ReplaceTokens"> |
| 170 | + <param type="propertiesfile" |
| 171 | + value="${basedir}/../build/replace.properties" /> |
173 | 172 | </filterreader> |
174 | 173 | </filterchain> |
175 | 174 | </copy> |
176 | 175 | </target> |
177 | 176 | </configuration> |
178 | 177 | </execution> |
| 178 | + <execution> |
| 179 | + <id>process-nonoss</id> |
| 180 | + <phase>process-resources</phase> |
| 181 | + <goals> |
| 182 | + <goal>run</goal> |
| 183 | + </goals> |
| 184 | + <configuration> |
| 185 | + <target if="${nonoss}"> |
| 186 | + <echo>test</echo> |
| 187 | + <replaceregexp |
| 188 | + file="${basedir}/target/generated-webapp/WEB-INF/classes/environment.properties" |
| 189 | + match="cloud-stack-components-specification=.*" |
| 190 | + replace="cloud-stack-components-specification=components-nonoss.xml" byline="true" /> |
| 191 | + </target> |
| 192 | + </configuration> |
| 193 | + </execution> |
179 | 194 | </executions> |
180 | 195 | </plugin> |
181 | 196 | </plugins> |
182 | 197 | <pluginManagement> |
183 | 198 | <plugins> |
184 | | - <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> |
| 199 | + <!--This plugin's configuration is used to store Eclipse m2e settings |
| 200 | + only. It has no influence on the Maven build itself. --> |
185 | 201 | <plugin> |
186 | 202 | <groupId>org.eclipse.m2e</groupId> |
187 | 203 | <artifactId>lifecycle-mapping</artifactId> |
|
214 | 230 | </pluginManagement> |
215 | 231 | </build> |
216 | 232 | <profiles> |
217 | | - <profile> |
218 | | - <id>netapp</id> |
219 | | - <activation> |
220 | | - <property> |
221 | | - <name>nonoss</name> |
222 | | - </property> |
223 | | - </activation> |
224 | | - <dependencies> |
225 | | - <dependency> |
226 | | - <groupId>org.apache.cloudstack</groupId> |
227 | | - <artifactId>cloud-plugin-netapp</artifactId> |
228 | | - <version>${project.version}</version> |
229 | | - </dependency> |
230 | | - </dependencies> |
231 | | - </profile> |
232 | | - <profile> |
233 | | - <id>f5</id> |
234 | | - <activation> |
235 | | - <property> |
236 | | - <name>nonoss</name> |
237 | | - </property> |
238 | | - </activation> |
239 | | - <dependencies> |
240 | | - <dependency> |
241 | | - <groupId>org.apache.cloudstack</groupId> |
242 | | - <artifactId>cloud-plugin-network-f5</artifactId> |
243 | | - <version>${project.version}</version> |
244 | | - </dependency> |
245 | | - </dependencies> |
246 | | - </profile> |
247 | | - <profile> |
248 | | - <id>netscaler</id> |
249 | | - <activation> |
250 | | - <property> |
251 | | - <name>nonoss</name> |
252 | | - </property> |
253 | | - </activation> |
254 | | - <dependencies> |
255 | | - <dependency> |
256 | | - <groupId>org.apache.cloudstack</groupId> |
257 | | - <artifactId>cloud-plugin-network-netscaler</artifactId> |
258 | | - <version>${project.version}</version> |
259 | | - </dependency> |
260 | | - </dependencies> |
261 | | - </profile> |
262 | | - <profile> |
263 | | - <id>srx</id> |
264 | | - <activation> |
265 | | - <property> |
266 | | - <name>nonoss</name> |
267 | | - </property> |
268 | | - </activation> |
269 | | - <dependencies> |
270 | | - <dependency> |
271 | | - <groupId>org.apache.cloudstack</groupId> |
272 | | - <artifactId>cloud-plugin-network-srx</artifactId> |
273 | | - <version>${project.version}</version> |
274 | | - </dependency> |
275 | | - </dependencies> |
276 | | - </profile> |
277 | | - <profile> |
278 | | - <id>vmware</id> |
279 | | - <activation> |
280 | | - <property> |
281 | | - <name>nonoss</name> |
282 | | - </property> |
283 | | - </activation> |
284 | | - <dependencies> |
285 | | - <dependency> |
286 | | - <groupId>org.apache.cloudstack</groupId> |
287 | | - <artifactId>cloud-plugin-hypervisor-vmware</artifactId> |
288 | | - <version>${project.version}</version> |
289 | | - </dependency> |
290 | | - <dependency> |
291 | | - <groupId>org.apache.cloudstack</groupId> |
292 | | - <artifactId>cloud-vmware-base</artifactId> |
293 | | - <version>${project.version}</version> |
294 | | - </dependency> |
295 | | - </dependencies> |
296 | | - </profile> |
297 | | - </profiles> |
| 233 | + <profile> |
| 234 | + <id>netapp</id> |
| 235 | + <activation> |
| 236 | + <property> |
| 237 | + <name>nonoss</name> |
| 238 | + </property> |
| 239 | + </activation> |
| 240 | + <dependencies> |
| 241 | + <dependency> |
| 242 | + <groupId>org.apache.cloudstack</groupId> |
| 243 | + <artifactId>cloud-plugin-netapp</artifactId> |
| 244 | + <version>${project.version}</version> |
| 245 | + </dependency> |
| 246 | + </dependencies> |
| 247 | + </profile> |
| 248 | + <profile> |
| 249 | + <id>f5</id> |
| 250 | + <activation> |
| 251 | + <property> |
| 252 | + <name>nonoss</name> |
| 253 | + </property> |
| 254 | + </activation> |
| 255 | + <dependencies> |
| 256 | + <dependency> |
| 257 | + <groupId>org.apache.cloudstack</groupId> |
| 258 | + <artifactId>cloud-plugin-network-f5</artifactId> |
| 259 | + <version>${project.version}</version> |
| 260 | + </dependency> |
| 261 | + </dependencies> |
| 262 | + </profile> |
| 263 | + <profile> |
| 264 | + <id>netscaler</id> |
| 265 | + <activation> |
| 266 | + <property> |
| 267 | + <name>nonoss</name> |
| 268 | + </property> |
| 269 | + </activation> |
| 270 | + <dependencies> |
| 271 | + <dependency> |
| 272 | + <groupId>org.apache.cloudstack</groupId> |
| 273 | + <artifactId>cloud-plugin-network-netscaler</artifactId> |
| 274 | + <version>${project.version}</version> |
| 275 | + </dependency> |
| 276 | + </dependencies> |
| 277 | + </profile> |
| 278 | + <profile> |
| 279 | + <id>srx</id> |
| 280 | + <activation> |
| 281 | + <property> |
| 282 | + <name>nonoss</name> |
| 283 | + </property> |
| 284 | + </activation> |
| 285 | + <dependencies> |
| 286 | + <dependency> |
| 287 | + <groupId>org.apache.cloudstack</groupId> |
| 288 | + <artifactId>cloud-plugin-network-srx</artifactId> |
| 289 | + <version>${project.version}</version> |
| 290 | + </dependency> |
| 291 | + </dependencies> |
| 292 | + </profile> |
| 293 | + <profile> |
| 294 | + <id>vmware</id> |
| 295 | + <activation> |
| 296 | + <property> |
| 297 | + <name>nonoss</name> |
| 298 | + </property> |
| 299 | + </activation> |
| 300 | + <dependencies> |
| 301 | + <dependency> |
| 302 | + <groupId>org.apache.cloudstack</groupId> |
| 303 | + <artifactId>cloud-plugin-hypervisor-vmware</artifactId> |
| 304 | + <version>${project.version}</version> |
| 305 | + </dependency> |
| 306 | + <dependency> |
| 307 | + <groupId>org.apache.cloudstack</groupId> |
| 308 | + <artifactId>cloud-vmware-base</artifactId> |
| 309 | + <version>${project.version}</version> |
| 310 | + </dependency> |
| 311 | + </dependencies> |
| 312 | + </profile> |
| 313 | + </profiles> |
298 | 314 | </project> |
0 commit comments