CLOUDSTACK-6322 - Don't allow service instance creation with empty or null service...
[cloudstack.git] / plugins / hypervisors / kvm / pom.xml
1 <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
2   license agreements. See the NOTICE file distributed with this work for additional 
3   information regarding copyright ownership. The ASF licenses this file to you under 
4   the Apache License, Version 2.0 (the "License"); you may not use this file except 
5   in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 
6   Unless required by applicable law or agreed to in writing, software distributed under 
7   the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
8   OF ANY KIND, either express or implied. See the License for the specific language 
9   governing permissions and limitations under the License. -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12   <modelVersion>4.0.0</modelVersion>
13   <artifactId>cloud-plugin-hypervisor-kvm</artifactId>
14   <name>Apache CloudStack Plugin - Hypervisor KVM</name>
15   <parent>
16     <groupId>org.apache.cloudstack</groupId>
17     <artifactId>cloudstack-plugins</artifactId>
18     <version>4.3.0-SNAPSHOT</version>
19     <relativePath>../../pom.xml</relativePath>
20   </parent>
21   <repositories>
22     <repository>
23       <id>libvirt-org</id>
24       <url>http://libvirt.org/maven2</url>
25     </repository>
26     <repository>
27       <id>ceph-com</id>
28       <url>http://ceph.com/maven</url>
29     </repository>
30   </repositories>
31   <dependencies>
32     <dependency>
33       <groupId>commons-io</groupId>
34       <artifactId>commons-io</artifactId>
35     </dependency>
36     <dependency>
37       <groupId>org.apache.cloudstack</groupId>
38       <artifactId>cloud-agent</artifactId>
39       <version>${project.version}</version>
40     </dependency>
41     <dependency>
42       <groupId>org.libvirt</groupId>
43       <artifactId>libvirt</artifactId>
44       <version>${cs.libvirt-java.version}</version>
45     </dependency>
46     <dependency>
47       <groupId>com.ceph</groupId>
48       <artifactId>rados</artifactId>
49       <version>${cs.rados-java.version}</version>
50     </dependency>
51     <dependency>
52       <groupId>net.java.dev.jna</groupId>
53        <artifactId>jna</artifactId>
54        <scope>provided</scope>
55        <version>${cs.jna.version}</version>
56     </dependency>
57   </dependencies>
58   <build>
59     <defaultGoal>install</defaultGoal>
60     <sourceDirectory>src</sourceDirectory>
61     <testSourceDirectory>test</testSourceDirectory>
62     <plugins>
63       <plugin>
64         <groupId>org.apache.maven.plugins</groupId>
65         <artifactId>maven-dependency-plugin</artifactId>
66         <version>2.5.1</version>
67         <executions>
68           <execution>
69             <id>copy-dependencies</id>
70             <phase>package</phase>
71             <goals>
72               <goal>copy-dependencies</goal>
73             </goals>
74             <configuration>
75               <outputDirectory>${project.build.directory}/dependencies</outputDirectory>
76               <includeScope>runtime</includeScope>
77             </configuration>
78           </execution>
79         </executions>
80       </plugin>
81       <plugin>
82         <groupId>org.apache.maven.plugins</groupId>
83         <artifactId>maven-surefire-plugin</artifactId>
84         <version>2.14</version>
85         <configuration>
86           <excludes>
87             <exclude>**/Qemu*.java</exclude>
88           </excludes>
89         </configuration>
90       </plugin>
91       <plugin>
92         <artifactId>maven-assembly-plugin</artifactId>
93         <version>2.3</version>
94         <configuration>
95           <finalName>kvm-agent</finalName>
96           <appendAssemblyId>false</appendAssemblyId>
97           <descriptors>
98             <descriptor>agent-descriptor.xml</descriptor>
99           </descriptors>
100         </configuration>
101         <executions>
102           <execution>
103             <id>make-agent</id>
104             <phase>package</phase>
105             <goals>
106               <goal>single</goal>
107             </goals>
108           </execution>
109         </executions>
110       </plugin>
111       <plugin>
112         <artifactId>maven-resources-plugin</artifactId>
113         <version>2.6</version>
114         <executions>
115           <execution>
116             <id>copy-resources</id>
117             <!-- here the phase you need -->
118             <phase>package</phase>
119             <goals>
120               <goal>copy-resources</goal>
121             </goals>
122             <configuration>
123               <outputDirectory>dist</outputDirectory>
124               <resources>
125                 <resource>
126                   <directory>target</directory>
127                   <includes>
128                     <include>kvm-agent.zip</include>
129                   </includes>
130                 </resource>
131               </resources>
132             </configuration>
133           </execution>
134         </executions>
135       </plugin>
136
137     </plugins>
138   </build>
139 </project>