From 96d29c7f3de5b6ad52aaecd633f9b0ef80aae7a0 Mon Sep 17 00:00:00 2001 From: ahuang Date: Thu, 11 Jul 2013 17:33:12 -0700 Subject: [PATCH] Added the git commit and branch to war file --- client/pom.xml | 220 +++++++++++++++++++++++++++---------------------- pom.xml | 14 ---- server/pom.xml | 4 +- 3 files changed, 123 insertions(+), 115 deletions(-) diff --git a/client/pom.xml b/client/pom.xml index aa67f7f3486..32ab94a3cc8 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -1,13 +1,12 @@ + information regarding copyright ownership. The ASF licenses this file to you under + the Apache License, Version 2.0 (the "License"); you may not use this file except + in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + Unless required by applicable law or agreed to in writing, software distributed under + the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS + OF ANY KIND, either express or implied. See the License for the specific language + governing permissions and limitations under the License. --> 4.0.0 @@ -44,7 +43,7 @@ org.apache.cloudstack cloud-plugin-api-limit-account-based ${project.version} - + org.apache.cloudstack cloud-plugin-api-discovery @@ -121,9 +120,9 @@ ${project.version} - org.apache.cloudstack - cloud-plugin-hypervisor-ovm - ${project.version} + org.apache.cloudstack + cloud-plugin-hypervisor-ovm + ${project.version} org.apache.cloudstack @@ -178,96 +177,96 @@ runtime - org.apache.cloudstack - cloud-framework-ipc - ${project.version} + org.apache.cloudstack + cloud-framework-ipc + ${project.version} - org.apache.cloudstack - cloud-framework-rest - ${project.version} + org.apache.cloudstack + cloud-framework-rest + ${project.version} - org.apache.cloudstack - cloud-engine-api - ${project.version} + org.apache.cloudstack + cloud-engine-api + ${project.version} - org.apache.cloudstack - cloud-engine-components-api - ${project.version} + org.apache.cloudstack + cloud-engine-components-api + ${project.version} - org.apache.cloudstack - cloud-engine-compute - ${project.version} + org.apache.cloudstack + cloud-engine-compute + ${project.version} - org.apache.cloudstack - cloud-engine-network - ${project.version} + org.apache.cloudstack + cloud-engine-network + ${project.version} - org.apache.cloudstack - cloud-engine-orchestration - ${project.version} + org.apache.cloudstack + cloud-engine-orchestration + ${project.version} - org.apache.cloudstack - cloud-engine-schema - ${project.version} + org.apache.cloudstack + cloud-engine-schema + ${project.version} - org.apache.cloudstack - cloud-engine-storage - ${project.version} + org.apache.cloudstack + cloud-engine-storage + ${project.version} - org.apache.cloudstack - cloud-engine-storage-cache - ${project.version} + org.apache.cloudstack + cloud-engine-storage-cache + ${project.version} - org.apache.cloudstack - cloud-engine-storage-image - ${project.version} + org.apache.cloudstack + cloud-engine-storage-image + ${project.version} - org.apache.cloudstack - cloud-engine-storage-datamotion - ${project.version} + org.apache.cloudstack + cloud-engine-storage-datamotion + ${project.version} - org.apache.cloudstack - cloud-engine-storage-snapshot - ${project.version} + org.apache.cloudstack + cloud-engine-storage-snapshot + ${project.version} - org.apache.cloudstack - cloud-engine-storage-volume - ${project.version} + org.apache.cloudstack + cloud-engine-storage-volume + ${project.version} - org.apache.cloudstack - cloud-plugin-storage-volume-default - ${project.version} + org.apache.cloudstack + cloud-plugin-storage-volume-default + ${project.version} - org.apache.cloudstack - cloud-plugin-storage-image-default - ${project.version} + org.apache.cloudstack + cloud-plugin-storage-image-default + ${project.version} - org.apache.cloudstack - cloud-plugin-storage-image-s3 - ${project.version} + org.apache.cloudstack + cloud-plugin-storage-image-s3 + ${project.version} - org.apache.cloudstack - cloud-plugin-storage-image-swift - ${project.version} + org.apache.cloudstack + cloud-plugin-storage-image-swift + ${project.version} org.apache.cloudstack @@ -293,6 +292,20 @@ install + + ru.concerteza.buildnumber + maven-jgit-buildnumber-plugin + 1.2.6 + + + git-buildnumber + + extract-buildnumber + + prepare-package + + + org.apache.maven.plugins maven-war-plugin @@ -300,6 +313,15 @@ ./target/generated-webapp/WEB-INF/web.xml ./target/generated-webapp + + + true + + + ${git.revision} + ${git.branch} + + @@ -336,9 +358,8 @@ maven-antrun-plugin 1.7 - + copy-systemvm process-resources @@ -364,21 +385,21 @@ - + - - - + + + - + - + @@ -393,14 +414,13 @@ - - + + - + @@ -472,9 +492,10 @@ test + file="${basedir}/target/generated-webapp/WEB-INF/classes/environment.properties" + match="cloud-stack-components-specification=.*" + replace="cloud-stack-components-specification=components-nonoss.xml" + byline="true" /> @@ -488,9 +509,9 @@ test + file="${basedir}/target/generated-webapp/WEB-INF/web.xml" + match="classpath:componentContext.xml" replace="classpath:simulatorComponentContext.xml" + byline="true" /> @@ -504,12 +525,14 @@ - - - - + match="classpath:componentContext.xml" replace="classpath:nonossComponentContext.xml" + byline="true" /> + + + + @@ -524,9 +547,10 @@ quickcloud + replace="com.cloud.consoleproxy.StaticConsoleProxyManager" + byline="true" /> @@ -568,8 +592,8 @@ - + org.eclipse.m2e lifecycle-mapping diff --git a/pom.xml b/pom.xml index a268b506ad8..ff1d3c03c4c 100644 --- a/pom.xml +++ b/pom.xml @@ -207,20 +207,6 @@ spring-web ${org.springframework.version} - org.mockito mockito-all diff --git a/server/pom.xml b/server/pom.xml index 8fe1e2d9508..497e4c984a8 100644 --- a/server/pom.xml +++ b/server/pom.xml @@ -99,7 +99,7 @@ org.apache.cloudstack cloud-framework-ipc ${project.version} - + org.apache.cloudstack cloud-framework-events @@ -108,8 +108,6 @@ install - src - test resources