mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-11-02 20:02:29 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			122 lines
		
	
	
		
			4.2 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			122 lines
		
	
	
		
			4.2 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-plugin-hypervisor-kvm</artifactId>
 | 
						|
  <name>Apache CloudStack Plugin - Hypervisor KVM</name>
 | 
						|
  <parent>
 | 
						|
    <groupId>org.apache.cloudstack</groupId>
 | 
						|
    <artifactId>cloudstack-plugins</artifactId>
 | 
						|
    <version>4.2.0-SNAPSHOT</version>
 | 
						|
    <relativePath>../../pom.xml</relativePath>
 | 
						|
  </parent>
 | 
						|
  <repositories>
 | 
						|
    <repository>
 | 
						|
      <id>libvirt-org</id>
 | 
						|
      <url>http://libvirt.org/maven2</url>
 | 
						|
    </repository>
 | 
						|
  </repositories>
 | 
						|
  <dependencies>
 | 
						|
    <dependency>
 | 
						|
      <groupId>org.apache.cloudstack</groupId>
 | 
						|
      <artifactId>cloud-agent</artifactId>
 | 
						|
      <version>${project.version}</version>
 | 
						|
    </dependency>
 | 
						|
    <dependency>
 | 
						|
      <groupId>org.libvirt</groupId>
 | 
						|
      <artifactId>libvirt</artifactId>
 | 
						|
      <version>${cs.libvirt-java.version}</version>
 | 
						|
    </dependency>
 | 
						|
  </dependencies>
 | 
						|
  <build>
 | 
						|
    <defaultGoal>install</defaultGoal>
 | 
						|
    <sourceDirectory>src</sourceDirectory>
 | 
						|
    <testSourceDirectory>test</testSourceDirectory>
 | 
						|
    <plugins>
 | 
						|
      <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>
 | 
						|
        <groupId>org.apache.maven.plugins</groupId>
 | 
						|
        <artifactId>maven-surefire-plugin</artifactId>
 | 
						|
        <version>2.14</version>
 | 
						|
        <configuration>
 | 
						|
          <excludes>
 | 
						|
            <exclude>**/Qemu*.java</exclude>
 | 
						|
          </excludes>
 | 
						|
        </configuration>
 | 
						|
      </plugin>
 | 
						|
      <plugin>
 | 
						|
        <artifactId>maven-assembly-plugin</artifactId>
 | 
						|
        <version>2.3</version>
 | 
						|
        <configuration>
 | 
						|
          <finalName>kvm-agent</finalName>
 | 
						|
          <appendAssemblyId>false</appendAssemblyId>
 | 
						|
          <descriptors>
 | 
						|
            <descriptor>agent-descriptor.xml</descriptor>
 | 
						|
          </descriptors>
 | 
						|
        </configuration>
 | 
						|
        <executions>
 | 
						|
          <execution>
 | 
						|
            <id>make-agent</id>
 | 
						|
            <phase>package</phase>
 | 
						|
            <goals>
 | 
						|
              <goal>single</goal>
 | 
						|
            </goals>
 | 
						|
          </execution>
 | 
						|
        </executions>
 | 
						|
      </plugin>
 | 
						|
      <plugin>
 | 
						|
        <artifactId>maven-resources-plugin</artifactId>
 | 
						|
        <version>2.6</version>
 | 
						|
        <executions>
 | 
						|
          <execution>
 | 
						|
            <id>copy-resources</id>
 | 
						|
            <!-- here the phase you need -->
 | 
						|
            <phase>package</phase>
 | 
						|
            <goals>
 | 
						|
              <goal>copy-resources</goal>
 | 
						|
            </goals>
 | 
						|
            <configuration>
 | 
						|
              <outputDirectory>dist</outputDirectory>
 | 
						|
              <resources>
 | 
						|
                <resource>
 | 
						|
                  <directory>target</directory>
 | 
						|
                  <includes>
 | 
						|
                    <include>kvm-agent.zip</include>
 | 
						|
                  </includes>
 | 
						|
                </resource>
 | 
						|
              </resources>
 | 
						|
            </configuration>
 | 
						|
          </execution>
 | 
						|
        </executions>
 | 
						|
      </plugin>
 | 
						|
 | 
						|
    </plugins>
 | 
						|
  </build>
 | 
						|
</project>
 |