mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			194 lines
		
	
	
		
			6.8 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			194 lines
		
	
	
		
			6.8 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
<!--
 | 
						|
  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.2.0-SNAPSHOT</version>
 | 
						|
  </parent>
 | 
						|
  <dependencies>
 | 
						|
    <dependency>
 | 
						|
      <groupId>org.apache.cloudstack</groupId>
 | 
						|
      <artifactId>cloud-server</artifactId>
 | 
						|
      <version>${project.version}</version>
 | 
						|
    </dependency>
 | 
						|
    <dependency>
 | 
						|
      <groupId>mysql</groupId>
 | 
						|
      <artifactId>mysql-connector-java</artifactId>
 | 
						|
      <version>${cs.mysql.version}</version>
 | 
						|
      <scope>runtime</scope>
 | 
						|
    </dependency>
 | 
						|
  </dependencies>
 | 
						|
  <build>
 | 
						|
    <defaultGoal>install</defaultGoal>
 | 
						|
    <sourceDirectory>src</sourceDirectory>
 | 
						|
    <testSourceDirectory>test</testSourceDirectory>
 | 
						|
      <testResources>
 | 
						|
          <testResource>
 | 
						|
              <directory>test/resources</directory>
 | 
						|
          </testResource>
 | 
						|
      </testResources>
 | 
						|
    <resources>
 | 
						|
      <resource>
 | 
						|
          <directory>resources</directory>
 | 
						|
      </resource>
 | 
						|
    </resources>
 | 
						|
    <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>
 | 
						|
        <version>2.5.1</version>
 | 
						|
        <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>
 | 
						|
        <artifactId>maven-antrun-plugin</artifactId>
 | 
						|
        <version>1.7</version>
 | 
						|
        <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/tomcatconf">
 | 
						|
                    <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-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>catalina.home</key>
 | 
						|
                  <value>${project.parent.basedir}/utils</value>
 | 
						|
                </systemProperty>
 | 
						|
              </systemProperties>
 | 
						|
            </configuration>
 | 
						|
          </plugin>
 | 
						|
        </plugins>
 | 
						|
      </build>
 | 
						|
    </profile>
 | 
						|
  </profiles>
 | 
						|
</project>
 |