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