Adding Karaf features for L2switch
[l2switch.git] / features / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0"
3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5   <parent>
6     <groupId>org.opendaylight.l2switch</groupId>
7     <artifactId>l2switch-parent</artifactId>
8     <version>0.1.0-SNAPSHOT</version>
9     <relativePath>../parent</relativePath>
10   </parent>
11   <modelVersion>4.0.0</modelVersion>
12
13   <artifactId>features-l2switch</artifactId>
14   <packaging>jar</packaging>
15   <name>${project.artifactId}</name>
16   <description> <!-- Provide a Description it will be visible in the shell CLI--> </description>
17   <properties>
18     <features.file>features.xml</features.file>
19   </properties>
20   <dependencies>
21     <dependency>
22       <groupId>org.opendaylight.openflowplugin</groupId>
23       <artifactId>features-openflowplugin</artifactId>
24       <version>${openflow.plugin.version}</version>
25       <classifier>features</classifier>
26       <type>xml</type>
27     </dependency>
28
29     <!-- bundles used by features directly -->
30     <dependency>
31       <groupId>org.opendaylight.l2switch.packethandler</groupId>
32       <artifactId>packethandler-model</artifactId>
33       <version>${project.version}</version>
34     </dependency>
35     <dependency>
36       <groupId>org.opendaylight.l2switch.packethandler</groupId>
37       <artifactId>packethandler-impl</artifactId>
38       <version>${project.version}</version>
39     </dependency>
40     <dependency>
41       <groupId>org.opendaylight.l2switch.addresstracker</groupId>
42       <artifactId>addresstracker-model</artifactId>
43       <version>${project.version}</version>
44     </dependency>
45     <dependency>
46       <groupId>org.opendaylight.l2switch.addresstracker</groupId>
47       <artifactId>addresstracker-impl</artifactId>
48       <version>${project.version}</version>
49     </dependency>
50     <dependency>
51       <groupId>org.opendaylight.l2switch.addresstracker</groupId>
52       <artifactId>addresstracker-model</artifactId>
53       <version>${project.version}</version>
54     </dependency>
55     <dependency>
56       <groupId>org.opendaylight.l2switch.addresstracker</groupId>
57       <artifactId>addresstracker-impl</artifactId>
58       <version>${project.version}</version>
59     </dependency>
60     <dependency>
61       <groupId>org.opendaylight.l2switch.loopremover</groupId>
62       <artifactId>loopremover-model</artifactId>
63       <version>${project.version}</version>
64     </dependency>
65     <dependency>
66       <groupId>org.opendaylight.l2switch.loopremover</groupId>
67       <artifactId>loopremover-impl</artifactId>
68       <version>${project.version}</version>
69     </dependency>
70     <dependency>
71       <groupId>org.opendaylight.l2switch.hosttracker</groupId>
72       <artifactId>hosttracker-model</artifactId>
73       <version>${project.version}</version>
74     </dependency>
75     <dependency>
76       <groupId>org.opendaylight.l2switch.hosttracker</groupId>
77       <artifactId>hosttracker-impl</artifactId>
78       <version>${project.version}</version>
79     </dependency>
80     <dependency>
81       <groupId>org.opendaylight.l2switch.main</groupId>
82       <artifactId>main-impl</artifactId>
83       <version>${project.version}</version>
84     </dependency>
85
86     <!-- test to validate features.xml -->
87     <dependency>
88       <groupId>org.opendaylight.yangtools</groupId>
89       <artifactId>features-test</artifactId>
90       <version>0.6.2-SNAPSHOT</version>
91     </dependency>
92     <!-- dependency for opendaylight-karaf-empty for use by testing -->
93     <dependency>
94       <groupId>org.opendaylight.controller</groupId>
95       <artifactId>opendaylight-karaf-empty</artifactId>
96       <version>1.4.2-SNAPSHOT</version>
97       <type>zip</type>
98     </dependency>
99   </dependencies>
100   <build>
101     <resources>
102       <resource>
103         <filtering>true</filtering>
104         <directory>src/main/resources</directory>
105       </resource>
106     </resources>
107     <plugins>
108       <plugin>
109         <groupId>org.apache.maven.plugins</groupId>
110         <artifactId>maven-resources-plugin</artifactId>
111         <executions>
112           <execution>
113             <id>filter</id>
114             <goals>
115               <goal>resources</goal>
116             </goals>
117             <phase>generate-resources</phase>
118           </execution>
119         </executions>
120       </plugin>
121       <plugin>
122         <groupId>org.codehaus.mojo</groupId>
123         <artifactId>build-helper-maven-plugin</artifactId>
124         <executions>
125           <execution>
126             <id>attach-artifacts</id>
127             <goals>
128               <goal>attach-artifact</goal>
129             </goals>
130             <phase>package</phase>
131             <configuration>
132               <artifacts>
133                 <artifact>
134                   <file>${project.build.directory}/classes/${features.file}</file>
135                   <type>xml</type>
136                   <classifier>features</classifier>
137                 </artifact>
138               </artifacts>
139             </configuration>
140           </execution>
141         </executions>
142       </plugin>
143       <plugin>
144         <groupId>org.apache.maven.plugins</groupId>
145         <artifactId>maven-surefire-plugin</artifactId>
146         <version>2.16</version>
147         <configuration>
148           <systemPropertyVariables>
149             <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
150             <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
151             <karaf.distro.version>1.4.2-SNAPSHOT</karaf.distro.version>
152           </systemPropertyVariables>
153           <dependenciesToScan>
154            <dependency>org.opendaylight.yangtools:features-test</dependency>
155           </dependenciesToScan>
156         </configuration>
157       </plugin>
158     </plugins>
159   </build>
160 </project>