ba25d0fb6b1c2835d634d89b4349dd6eb24fcd3a
[openflowplugin.git] / distribution / base / 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.openflowplugin</groupId>
12     <artifactId>openflowplugin-commons</artifactId>
13     <version>0.0.1-SNAPSHOT</version>
14     <relativePath>../../commons</relativePath>
15   </parent>
16
17   <artifactId>distributions-openflowplugin-base</artifactId>
18   <packaging>pom</packaging>
19   <name>Opendaylight OpenflowPlugin Base Edition </name>
20
21   <dependencies>
22
23     <!-- base distribution -->
24
25     <dependency>
26       <groupId>org.opendaylight.controller</groupId>
27       <artifactId>distribution.opendaylight</artifactId>
28       <version>0.1.1-SNAPSHOT</version>
29       <type>zip</type>
30       <classifier>osgipackage</classifier>
31       <!-- Make sure this isn't included on any classpath-->
32       <scope>provided</scope>
33     </dependency>
34
35     <!-- openflowplugin -->
36     <dependency>
37       <groupId>org.opendaylight.openflowplugin</groupId>
38       <artifactId>openflowplugin</artifactId>
39       <version>0.0.1-SNAPSHOT</version>
40     </dependency>
41
42     <!-- openflowjava -->
43     <dependency>
44       <groupId>org.opendaylight.openflowjava</groupId>
45       <artifactId>openflow-protocol-impl</artifactId>
46     </dependency>
47     <dependency>
48       <groupId>org.opendaylight.openflowjava</groupId>
49       <artifactId>openflow-protocol-api</artifactId>
50     </dependency>
51     <dependency>
52       <groupId>org.opendaylight.openflowjava</groupId>
53       <artifactId>openflow-protocol-spi</artifactId>
54     </dependency>
55   </dependencies>
56   <build>
57     <resources>
58       <resource>
59         <directory>${basedir}/src/main/resources</directory>
60       </resource>
61       <resource>
62         <directory>${project.build.directory}/generated-resources</directory>
63         <filtering>true</filtering>
64       </resource>
65     </resources>
66     <plugins>
67       <plugin>
68         <groupId>org.apache.maven.plugins</groupId>
69         <artifactId>maven-dependency-plugin</artifactId>
70         <version>2.8</version>
71         <executions>
72           <execution>
73             <id>unpack-shared-resources</id>
74             <goals>
75               <goal>unpack-dependencies</goal>
76             </goals>
77             <phase>generate-resources</phase>
78             <configuration>
79              <outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
80              <includeArtifacIds>distribution.opendaylight</includeArtifacIds>
81              <includeGroupIds>org.opendaylight.controller</includeGroupIds>
82              <excludeTransitive>true</excludeTransitive>
83              <ignorePermissions>false</ignorePermissions>
84             </configuration>
85           </execution>
86         </executions>
87       </plugin>
88       <plugin>
89         <artifactId>maven-assembly-plugin</artifactId>
90         <executions>
91           <execution>
92             <id>distro-assembly</id>
93             <phase>package</phase>
94             <goals>
95               <goal>single</goal>
96             </goals>
97             <configuration>
98               <descriptors>
99                 <descriptor>src/assemble/bin.xml</descriptor>
100               </descriptors>
101             </configuration>
102           </execution>
103         </executions>
104       </plugin>
105     </plugins>
106   </build>
107 </project>