mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-04 00:02:37 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			218 lines
		
	
	
		
			7.8 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			218 lines
		
	
	
		
			7.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.4.0-SNAPSHOT</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-server</artifactId>
 | 
						|
      <version>${project.version}</version>
 | 
						|
    </dependency>
 | 
						|
    <dependency>
 | 
						|
      <groupId>org.apache.cloudstack</groupId>
 | 
						|
      <artifactId>cloud-engine-schema</artifactId>
 | 
						|
      <version>${project.version}</version>
 | 
						|
    </dependency>
 | 
						|
    <dependency>
 | 
						|
      <groupId>mysql</groupId>
 | 
						|
      <artifactId>mysql-connector-java</artifactId>
 | 
						|
      <scope>runtime</scope>
 | 
						|
    </dependency>
 | 
						|
    <dependency>
 | 
						|
      <groupId>commons-daemon</groupId>
 | 
						|
      <artifactId>commons-daemon</artifactId>
 | 
						|
    </dependency>
 | 
						|
  </dependencies>
 | 
						|
  <build>
 | 
						|
    <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>
 | 
						|
        <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>
 | 
						|
        <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>
 | 
						|
    <pluginManagement>
 | 
						|
    	<plugins>
 | 
						|
    		<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
 | 
						|
    		<plugin>
 | 
						|
    			<groupId>org.eclipse.m2e</groupId>
 | 
						|
    			<artifactId>lifecycle-mapping</artifactId>
 | 
						|
    			<version>1.0.0</version>
 | 
						|
    			<configuration>
 | 
						|
    				<lifecycleMappingMetadata>
 | 
						|
    					<pluginExecutions>
 | 
						|
    						<pluginExecution>
 | 
						|
    							<pluginExecutionFilter>
 | 
						|
    								<groupId>
 | 
						|
    									org.apache.maven.plugins
 | 
						|
    								</groupId>
 | 
						|
    								<artifactId>
 | 
						|
    									maven-antrun-plugin
 | 
						|
    								</artifactId>
 | 
						|
    								<versionRange>[1.7,)</versionRange>
 | 
						|
    								<goals>
 | 
						|
    									<goal>run</goal>
 | 
						|
    								</goals>
 | 
						|
    							</pluginExecutionFilter>
 | 
						|
    							<action>
 | 
						|
    								<ignore></ignore>
 | 
						|
    							</action>
 | 
						|
    						</pluginExecution>
 | 
						|
    					</pluginExecutions>
 | 
						|
    				</lifecycleMappingMetadata>
 | 
						|
    			</configuration>
 | 
						|
    		</plugin>
 | 
						|
    	</plugins>
 | 
						|
    </pluginManagement>
 | 
						|
  </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>
 |