Added distribution directory
[netvirt.git] / distribution / opendaylight / pom.xml
1 <!--
2 Adapted from David Erickson's Distribution pom.xml
3 see https://git.opendaylight.org/gerrit/#/c/390/
4 -->
5 <project xmlns="http://maven.apache.org/POM/4.0.0"
6 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
8 http://maven.apache.org/maven-v4_0_0.xsd">
9   <modelVersion>4.0.0</modelVersion>
10   <parent>
11     <groupId>org.opendaylight.ovsdb</groupId>
12     <artifactId>commons.ovsdb</artifactId>
13     <version>1.0.0-SNAPSHOT</version>
14     <relativePath>../../commons/</relativePath>
15   </parent>
16
17   <artifactId>distribution.ovsdb</artifactId>
18   <packaging>pom</packaging>
19   <name>ovsdb Distribution</name>
20
21   <dependencies>
22     <dependency>
23       <groupId>org.opendaylight.controller</groupId>
24       <artifactId>distribution.opendaylight</artifactId>
25       <version>0.1.0-SNAPSHOT</version>
26       <type>zip</type>
27       <classifier>osgipackage</classifier>
28       <!-- Make sure this isn't included on any classpath-->
29       <scope>provided</scope>
30     </dependency>
31     <dependency>
32       <groupId>org.opendaylight.ovsdb</groupId>
33       <artifactId>ovsdb</artifactId>
34       <version>0.4.0-SNAPSHOT</version>
35     </dependency>
36   </dependencies>
37   <build>
38     <resources>
39       <resource>
40         <directory>${basedir}/src/main/resources</directory>
41       </resource>
42       <resource>
43         <directory>${project.build.directory}/generated-resources</directory>
44         <filtering>true</filtering>
45       </resource>
46     </resources>
47     <plugins>
48       <plugin>
49         <groupId>org.apache.maven.plugins</groupId>
50         <artifactId>maven-dependency-plugin</artifactId>
51         <version>2.8</version>
52         <executions>
53           <execution>
54             <id>unpack-shared-resources</id>
55             <goals>
56               <goal>unpack-dependencies</goal>
57             </goals>
58             <phase>generate-resources</phase>
59             <configuration>
60              <outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
61              <includeArtifacIds>distribution.opendaylight</includeArtifacIds>
62              <includeGroupIds>org.opendaylight.controller</includeGroupIds>
63              <excludeTransitive>true</excludeTransitive>
64              <ignorePermissions>false</ignorePermissions>
65             </configuration>
66           </execution>
67         </executions>
68       </plugin>
69       <plugin>
70         <artifactId>maven-assembly-plugin</artifactId>
71         <executions>
72           <execution>
73             <id>distro-assembly</id>
74             <phase>package</phase>
75             <goals>
76               <goal>single</goal>
77             </goals>
78             <configuration>
79               <descriptors>
80                 <descriptor>src/assemble/bin.xml</descriptor>
81               </descriptors>
82             </configuration>
83           </execution>
84         </executions>
85       </plugin>
86     </plugins>
87   </build>
88 </project>