Created Proper Feature File for AD-SAL
[controller.git] / opendaylight / distribution / opendaylight-karaf / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <groupId>org.opendaylight.controller</groupId>
6     <artifactId>commons.opendaylight</artifactId>
7     <version>1.4.2-SNAPSHOT</version>
8     <relativePath>../../commons/opendaylight</relativePath>
9   </parent>
10   <artifactId>distribution.opendaylight-karaf</artifactId>
11   <packaging>pom</packaging>
12   <prerequisites>
13     <maven>3.0</maven>
14   </prerequisites>
15
16   <dependencies>
17     <dependency>
18       <!-- scope is compile so all features (there is only one) are installed
19             into startup.properties and the feature repo itself is not installed -->
20       <groupId>org.apache.karaf.features</groupId>
21       <artifactId>framework</artifactId>
22       <version>${karaf.version}</version>
23       <type>kar</type>
24     </dependency>
25     <dependency>
26       <groupId>org.opendaylight.controller</groupId>
27       <artifactId>base-features</artifactId>
28       <version>${project.version}</version>
29       <type>kar</type>
30     </dependency>
31     <dependency>
32       <groupId>org.opendaylight.controller</groupId>
33       <artifactId>karaf.branding</artifactId>
34       <scope>compile</scope>
35     </dependency>
36     <!-- scope is runtime so the feature repo is listed in the features
37       service config file, and features may be installed using the
38       karaf-maven-plugin configuration -->
39     <dependency>
40       <groupId>org.apache.karaf.features</groupId>
41       <artifactId>standard</artifactId>
42       <version>${karaf.version}</version>
43       <classifier>features</classifier>
44       <type>xml</type>
45       <scope>runtime</scope>
46     </dependency>
47     <dependency>
48       <groupId>org.opendaylight.controller</groupId>
49       <artifactId>base-features</artifactId>
50       <version>${project.parent.version}</version>
51       <classifier>features</classifier>
52       <type>xml</type>
53       <scope>runtime</scope>
54     </dependency>
55     <!-- scope is compile so all features (there is only one) are installed
56             into startup.properties and the feature repo itself is not installed -->
57     <dependency>
58       <groupId>org.opendaylight.controller</groupId>
59       <artifactId>config-features</artifactId>
60       <version>${config.version}</version>
61       <classifier>features</classifier>
62       <type>xml</type>
63       <scope>runtime</scope>
64     </dependency>
65     <dependency>
66       <groupId>org.opendaylight.controller</groupId>
67       <artifactId>features-adsal</artifactId>
68       <version>${sal.version}</version>
69       <classifier>features</classifier>
70       <type>xml</type>
71       <scope>runtime</scope>
72     </dependency>
73     <dependency>
74       <groupId>org.opendaylight.controller</groupId>
75       <artifactId>mdsal-features</artifactId>
76       <version>${mdsal.version}</version>
77       <classifier>features</classifier>
78       <type>xml</type>
79       <scope>runtime</scope>
80     </dependency>
81     <dependency>
82       <groupId>org.opendaylight.yangtools</groupId>
83       <artifactId>features-yangtools</artifactId>
84       <version>${yangtools.version}</version>
85       <classifier>features</classifier>
86       <type>xml</type>
87       <scope>runtime</scope>
88     </dependency>
89   </dependencies>
90
91   <build>
92     <pluginManagement>
93       <plugins>
94         <plugin>
95           <groupId>org.eclipse.m2e</groupId>
96           <artifactId>lifecycle-mapping</artifactId>
97           <version>1.0.0</version>
98           <configuration>
99             <lifecycleMappingMetadata>
100               <pluginExecutions>
101                 <pluginExecution>
102                   <pluginExecutionFilter>
103                     <groupId>org.apache.felix</groupId>
104                     <artifactId>maven-bundle-plugin</artifactId>
105                     <versionRange>[0,)</versionRange>
106                     <goals>
107                       <goal>cleanVersions</goal>
108                     </goals>
109                   </pluginExecutionFilter>
110                   <action>
111                     <ignore></ignore>
112                   </action>
113                 </pluginExecution>
114                 <pluginExecution>
115                   <pluginExecutionFilter>
116                     <groupId>org.apache.maven.plugins</groupId>
117                     <artifactId>maven-dependency-plugin</artifactId>
118                     <versionRange>[0,)</versionRange>
119                     <goals>
120                       <goal>copy</goal>
121                       <goal>unpack</goal>
122                     </goals>
123                   </pluginExecutionFilter>
124                   <action>
125                     <ignore></ignore>
126                   </action>
127                 </pluginExecution>
128                 <pluginExecution>
129                   <pluginExecutionFilter>
130                     <groupId>org.apache.karaf.tooling</groupId>
131                     <artifactId>karaf-maven-plugin</artifactId>
132                     <versionRange>[0,)</versionRange>
133                     <goals>
134                       <goal>commands-generate-help</goal>
135                     </goals>
136                   </pluginExecutionFilter>
137                   <action>
138                     <ignore></ignore>
139                   </action>
140                 </pluginExecution>
141                 <pluginExecution>
142                   <pluginExecutionFilter>
143                     <groupId>org.fusesource.scalate</groupId>
144                     <artifactId>maven-scalate-plugin</artifactId>
145                     <versionRange>[0,)</versionRange>
146                     <goals>
147                       <goal>sitegen</goal>
148                     </goals>
149                   </pluginExecutionFilter>
150                   <action>
151                     <ignore></ignore>
152                   </action>
153                 </pluginExecution>
154                 <pluginExecution>
155                   <pluginExecutionFilter>
156                     <groupId>org.apache.servicemix.tooling</groupId>
157                     <artifactId>depends-maven-plugin</artifactId>
158                     <versionRange>[0,)</versionRange>
159                     <goals>
160                       <goal>generate-depends-file</goal>
161                     </goals>
162                   </pluginExecutionFilter>
163                   <action>
164                     <ignore></ignore>
165                   </action>
166                 </pluginExecution>
167               </pluginExecutions>
168             </lifecycleMappingMetadata>
169           </configuration>
170         </plugin>
171       </plugins>
172     </pluginManagement>
173     <plugins>
174       <plugin>
175         <groupId>org.apache.karaf.tooling</groupId>
176         <artifactId>karaf-maven-plugin</artifactId>
177         <version>${karaf.version}</version>
178         <extensions>true</extensions>
179         <configuration>
180           <!-- no startupFeatures -->
181           <bootFeatures>
182             <feature>standard</feature>
183           </bootFeatures>
184           <!-- no installedFeatures -->
185         </configuration>
186         <executions>
187           <execution>
188             <id>process-resources</id>
189             <goals>
190               <goal>install-kars</goal>
191             </goals>
192             <phase>process-resources</phase>
193           </execution>
194           <execution>
195             <id>package</id>
196             <goals>
197               <goal>instance-create-archive</goal>
198             </goals>
199           </execution>
200         </executions>
201       </plugin>
202       <plugin>
203         <groupId>org.apache.maven.plugins</groupId>
204         <artifactId>maven-checkstyle-plugin</artifactId>
205         <version>${checkstyle.version}</version>
206         <configuration>
207           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
208         </configuration>
209       </plugin>
210       <plugin>
211         <groupId>org.apache.maven.plugins</groupId>
212         <artifactId>maven-dependency-plugin</artifactId>
213         <version>2.6</version>
214         <executions>
215           <execution>
216             <id>copy</id>
217             <goals>
218               <goal>copy</goal>
219             </goals>
220             <!-- here the phase you need -->
221             <phase>generate-resources</phase>
222             <configuration>
223               <artifactItems>
224                 <artifactItem>
225                   <groupId>org.opendaylight.controller</groupId>
226                   <artifactId>karaf.branding</artifactId>
227                   <version>${karaf.branding.version}</version>
228                   <outputDirectory>target/assembly/lib</outputDirectory>
229                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
230                 </artifactItem>
231               </artifactItems>
232             </configuration>
233           </execution>
234         </executions>
235       </plugin>
236     </plugins>
237   </build>
238   <scm>
239     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
240     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
241     <tag>HEAD</tag>
242     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
243   </scm>
244 </project>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.