Updated Branches: refs/heads/4.1 5eb767f56 -> 3ecec178e
usage: Add maven target to run usage server Signed-off-by: Rohit Yadav <[email protected]> (cherry picked from commit 1187fb7ed2a9a1669a8b3b4e9742ccfd2ceb2213) Signed-off-by: Rohit Yadav <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/3ecec178 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/3ecec178 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/3ecec178 Branch: refs/heads/4.1 Commit: 3ecec178ecd8044b78d1d44e1794566dbfd6ad00 Parents: 5eb767f Author: Rohit Yadav <[email protected]> Authored: Mon Feb 11 18:13:04 2013 +0530 Committer: Rohit Yadav <[email protected]> Committed: Mon Feb 11 18:13:50 2013 +0530 ---------------------------------------------------------------------- usage/pom.xml | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/3ecec178/usage/pom.xml ---------------------------------------------------------------------- diff --git a/usage/pom.xml b/usage/pom.xml index bbd0d45..4e418ec 100644 --- a/usage/pom.xml +++ b/usage/pom.xml @@ -115,4 +115,65 @@ </plugin> </plugins> </build> + <profiles> + <profile> + <id>usage</id> + <activation> + <property> + <name>run</name> + </property> + </activation> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>1.2.1</version> + <dependencies> + <dependency> + <groupId>org.apache.cloudstack</groupId> + <artifactId>cloud-utils</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.cloudstack</groupId> + <artifactId>cloud-server</artifactId> + <version>${project.version}</version> + </dependency> + <dependency> + <groupId>org.apache.cloudstack</groupId> + <artifactId>cloud-usage</artifactId> + <version>${project.version}</version> + </dependency> + </dependencies> + <executions> + <execution> + <phase>process-test-resources</phase> + <id>run-usage</id> + <goals> + <goal>java</goal> + </goals> + </execution> + </executions> + <configuration> + <includeProjectDependencies>true</includeProjectDependencies> + <includePluginDependencies>true</includePluginDependencies> + <executableDependency> + <groupId>org.apache.cloudstack</groupId> + <artifactId>cloud-usage</artifactId> + </executableDependency> + <mainClass>com.cloud.usage.UsageServer</mainClass> + <arguments/> + <systemProperties> + <systemProperty> + <key>pid</key> + <value>$$</value> + </systemProperty> + </systemProperties> + </configuration> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>
