Skip to content

Commit 1187fb7

Browse files
committed
usage: Add maven target to run usage server
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
1 parent 770860a commit 1187fb7

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

usage/pom.xml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,65 @@
115115
</plugin>
116116
</plugins>
117117
</build>
118+
<profiles>
119+
<profile>
120+
<id>usage</id>
121+
<activation>
122+
<property>
123+
<name>run</name>
124+
</property>
125+
</activation>
126+
<build>
127+
<plugins>
128+
<plugin>
129+
<groupId>org.codehaus.mojo</groupId>
130+
<artifactId>exec-maven-plugin</artifactId>
131+
<version>1.2.1</version>
132+
<dependencies>
133+
<dependency>
134+
<groupId>org.apache.cloudstack</groupId>
135+
<artifactId>cloud-utils</artifactId>
136+
<version>${project.version}</version>
137+
</dependency>
138+
<dependency>
139+
<groupId>org.apache.cloudstack</groupId>
140+
<artifactId>cloud-server</artifactId>
141+
<version>${project.version}</version>
142+
</dependency>
143+
<dependency>
144+
<groupId>org.apache.cloudstack</groupId>
145+
<artifactId>cloud-usage</artifactId>
146+
<version>${project.version}</version>
147+
</dependency>
148+
</dependencies>
149+
<executions>
150+
<execution>
151+
<phase>process-test-resources</phase>
152+
<id>run-usage</id>
153+
<goals>
154+
<goal>java</goal>
155+
</goals>
156+
</execution>
157+
</executions>
158+
<configuration>
159+
<includeProjectDependencies>true</includeProjectDependencies>
160+
<includePluginDependencies>true</includePluginDependencies>
161+
<executableDependency>
162+
<groupId>org.apache.cloudstack</groupId>
163+
<artifactId>cloud-usage</artifactId>
164+
</executableDependency>
165+
<mainClass>com.cloud.usage.UsageServer</mainClass>
166+
<arguments/>
167+
<systemProperties>
168+
<systemProperty>
169+
<key>pid</key>
170+
<value>$$</value>
171+
</systemProperty>
172+
</systemProperties>
173+
</configuration>
174+
</plugin>
175+
</plugins>
176+
</build>
177+
</profile>
178+
</profiles>
118179
</project>

0 commit comments

Comments
 (0)