| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional 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. |
| --> |
| <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"> |
| <modelVersion>4.0.0</modelVersion> |
| <artifactId>cloud-usage</artifactId> |
| <name>Apache CloudStack Usage Server</name> |
| <parent> |
| <groupId>org.apache.cloudstack</groupId> |
| <artifactId>cloudstack</artifactId> |
| <version>4.12.0.0</version> |
| </parent> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.cloudstack</groupId> |
| <artifactId>cloud-api</artifactId> |
| <version>${project.version}</version> |
| <type>test-jar</type> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cloudstack</groupId> |
| <artifactId>cloud-engine-schema</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cloudstack</groupId> |
| <artifactId>cloud-engine-components-api</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.cloudstack</groupId> |
| <artifactId>cloud-framework-quota</artifactId> |
| <version>${project.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>commons-daemon</groupId> |
| <artifactId>commons-daemon</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>mysql</groupId> |
| <artifactId>mysql-connector-java</artifactId> |
| <scope>provided</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-log4j12</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>org.dbunit</groupId> |
| <artifactId>dbunit</artifactId> |
| <version>${cs.dbunit.version}</version> |
| <scope>test</scope> |
| </dependency> |
| </dependencies> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-surefire-plugin</artifactId> |
| <configuration> |
| <excludes> |
| <exclude>com/cloud/usage/UsageManagerTest.java</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-dependencies</id> |
| <phase>package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/dependencies</outputDirectory> |
| <includeScope>runtime</includeScope> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>generate-resource</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <target> |
| <copy overwrite="true" todir="${basedir}/target/transformed"> |
| <fileset dir="${basedir}/../client/conf"> |
| <include name="**/db.properties.in" /> |
| </fileset> |
| <globmapper from="*.in" to="*" /> |
| <filterchain> |
| <filterreader classname="org.apache.tools.ant.filters.ReplaceTokens"> |
| <param type="propertiesfile" value="${cs.replace.properties}" /> |
| </filterreader> |
| </filterchain> |
| </copy> |
| </target> |
| <target> |
| <copy overwrite="true" todir="${basedir}/target/transformed"> |
| <fileset dir="${basedir}/conf"> |
| <include name="*.in" /> |
| </fileset> |
| <globmapper from="*.in" to="*" /> |
| <filterchain> |
| <filterreader classname="org.apache.tools.ant.filters.ReplaceTokens"> |
| <param type="propertiesfile" value="${cs.replace.properties}" /> |
| </filterreader> |
| </filterchain> |
| </copy> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </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-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>catalina.home</key> |
| <value>${project.parent.basedir}/utils</value> |
| </systemProperty> |
| </systemProperties> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| <profile> |
| <id>integration</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-failsafe-plugin</artifactId> |
| <executions> |
| <execution> |
| <goals> |
| <goal>integration-test</goal> |
| <goal>verify</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |