Fixed to config,netconf,mdsal features files
[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>extras-features</artifactId>
60       <version>${project.version}</version>
61       <type>kar</type>
62       <scope>runtime</scope>
63     </dependency>
64     <dependency>
65       <groupId>org.opendaylight.controller</groupId>
66       <artifactId>features-odl-protocol-framework</artifactId>
67       <version>${protocol-framework.version}</version>
68       <classifier>features</classifier>
69       <type>xml</type>
70       <scope>runtime</scope>
71     </dependency>
72     <dependency>
73       <groupId>org.opendaylight.controller</groupId>
74       <artifactId>netconf-features</artifactId>
75       <version>${netconf.version}</version>
76       <classifier>features</classifier>
77       <type>xml</type>
78       <scope>runtime</scope>
79     </dependency>
80     <dependency>
81       <groupId>org.opendaylight.controller</groupId>
82       <artifactId>config-features</artifactId>
83       <version>${config.version}</version>
84       <classifier>features</classifier>
85       <type>xml</type>
86       <scope>runtime</scope>
87     </dependency>
88     <dependency>
89       <groupId>org.opendaylight.controller</groupId>
90       <artifactId>features-adsal</artifactId>
91       <version>${sal.version}</version>
92       <classifier>features</classifier>
93       <type>xml</type>
94       <scope>runtime</scope>
95     </dependency>
96     <dependency>
97       <groupId>org.opendaylight.controller</groupId>
98       <artifactId>mdsal-features</artifactId>
99       <version>${mdsal.version}</version>
100       <classifier>features</classifier>
101       <type>xml</type>
102       <scope>runtime</scope>
103     </dependency>
104   </dependencies>
105
106   <build>
107     <pluginManagement>
108       <plugins>
109         <plugin>
110           <groupId>org.eclipse.m2e</groupId>
111           <artifactId>lifecycle-mapping</artifactId>
112           <version>1.0.0</version>
113           <configuration>
114             <lifecycleMappingMetadata>
115               <pluginExecutions>
116                 <pluginExecution>
117                   <pluginExecutionFilter>
118                     <groupId>org.apache.felix</groupId>
119                     <artifactId>maven-bundle-plugin</artifactId>
120                     <versionRange>[0,)</versionRange>
121                     <goals>
122                       <goal>cleanVersions</goal>
123                     </goals>
124                   </pluginExecutionFilter>
125                   <action>
126                     <ignore></ignore>
127                   </action>
128                 </pluginExecution>
129                 <pluginExecution>
130                   <pluginExecutionFilter>
131                     <groupId>org.apache.maven.plugins</groupId>
132                     <artifactId>maven-dependency-plugin</artifactId>
133                     <versionRange>[0,)</versionRange>
134                     <goals>
135                       <goal>copy</goal>
136                       <goal>unpack</goal>
137                     </goals>
138                   </pluginExecutionFilter>
139                   <action>
140                     <ignore></ignore>
141                   </action>
142                 </pluginExecution>
143                 <pluginExecution>
144                   <pluginExecutionFilter>
145                     <groupId>org.apache.karaf.tooling</groupId>
146                     <artifactId>karaf-maven-plugin</artifactId>
147                     <versionRange>[0,)</versionRange>
148                     <goals>
149                       <goal>commands-generate-help</goal>
150                     </goals>
151                   </pluginExecutionFilter>
152                   <action>
153                     <ignore></ignore>
154                   </action>
155                 </pluginExecution>
156                 <pluginExecution>
157                   <pluginExecutionFilter>
158                     <groupId>org.fusesource.scalate</groupId>
159                     <artifactId>maven-scalate-plugin</artifactId>
160                     <versionRange>[0,)</versionRange>
161                     <goals>
162                       <goal>sitegen</goal>
163                     </goals>
164                   </pluginExecutionFilter>
165                   <action>
166                     <ignore></ignore>
167                   </action>
168                 </pluginExecution>
169                 <pluginExecution>
170                   <pluginExecutionFilter>
171                     <groupId>org.apache.servicemix.tooling</groupId>
172                     <artifactId>depends-maven-plugin</artifactId>
173                     <versionRange>[0,)</versionRange>
174                     <goals>
175                       <goal>generate-depends-file</goal>
176                     </goals>
177                   </pluginExecutionFilter>
178                   <action>
179                     <ignore></ignore>
180                   </action>
181                 </pluginExecution>
182               </pluginExecutions>
183             </lifecycleMappingMetadata>
184           </configuration>
185         </plugin>
186       </plugins>
187     </pluginManagement>
188     <plugins>
189       <plugin>
190         <groupId>org.apache.karaf.tooling</groupId>
191         <artifactId>karaf-maven-plugin</artifactId>
192         <version>${karaf.version}</version>
193         <extensions>true</extensions>
194         <configuration>
195           <!-- no startupFeatures -->
196           <bootFeatures>
197             <feature>standard</feature>
198           </bootFeatures>
199           <!-- no installedFeatures -->
200         </configuration>
201         <executions>
202           <execution>
203             <id>process-resources</id>
204             <goals>
205               <goal>install-kars</goal>
206             </goals>
207             <phase>process-resources</phase>
208           </execution>
209           <execution>
210             <id>package</id>
211             <goals>
212               <goal>instance-create-archive</goal>
213             </goals>
214           </execution>
215         </executions>
216       </plugin>
217       <plugin>
218         <groupId>org.apache.maven.plugins</groupId>
219         <artifactId>maven-checkstyle-plugin</artifactId>
220         <version>${checkstyle.version}</version>
221         <configuration>
222           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
223         </configuration>
224       </plugin>
225       <plugin>
226         <groupId>org.apache.maven.plugins</groupId>
227         <artifactId>maven-dependency-plugin</artifactId>
228         <version>2.6</version>
229         <executions>
230           <execution>
231             <id>copy</id>
232             <goals>
233               <goal>copy</goal>
234             </goals>
235             <!-- here the phase you need -->
236             <phase>generate-resources</phase>
237             <configuration>
238               <artifactItems>
239                 <artifactItem>
240                   <groupId>org.opendaylight.controller</groupId>
241                   <artifactId>karaf.branding</artifactId>
242                   <version>${karaf.branding.version}</version>
243                   <outputDirectory>target/assembly/lib</outputDirectory>
244                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
245                 </artifactItem>
246               </artifactItems>
247             </configuration>
248           </execution>
249         </executions>
250       </plugin>
251     </plugins>
252   </build>
253   <scm>
254     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
255     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
256     <tag>HEAD</tag>
257     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
258   </scm>
259 </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.