Removing missing features-base
[controller.git] / karaf / 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.6.0-SNAPSHOT</version>
8     <relativePath>../../opendaylight/commons/opendaylight</relativePath>
9   </parent>
10   <artifactId>distribution.opendaylight-karaf</artifactId>
11   <packaging>pom</packaging>
12
13   <dependencies>
14     <dependency>
15       <!-- scope is compile so all features (there is only one) are installed
16             into startup.properties and the feature repo itself is not installed -->
17       <groupId>org.apache.karaf.features</groupId>
18       <artifactId>framework</artifactId>
19       <version>${karaf.version}</version>
20       <type>kar</type>
21     </dependency>
22     <dependency>
23       <groupId>org.opendaylight.controller</groupId>
24       <artifactId>karaf.branding</artifactId>
25       <scope>compile</scope>
26     </dependency>
27
28     <!-- Resources needed -->
29     <dependency>
30       <groupId>org.opendaylight.controller</groupId>
31       <artifactId>opendaylight-karaf-resources</artifactId>
32       <version>${project.version}</version>
33     </dependency>
34
35     <!-- scope is not runtime so the feature repo is pulled into the local
36     repo on build and thus you actually run.  Failure to do so can lead
37     to very confusing errors for devs -->
38     <dependency>
39       <groupId>org.apache.karaf.features</groupId>
40       <artifactId>standard</artifactId>
41       <version>${karaf.version}</version>
42       <classifier>features</classifier>
43       <type>xml</type>
44     </dependency>
45
46     <!--
47           controller provided features:
48           Note: Nothing should go here that is not locked
49           down with testing... ie, no broken feature repos
50     -->
51
52     <!-- MD-SAL Related Features -->
53     <dependency>
54       <groupId>org.opendaylight.controller</groupId>
55       <artifactId>features-mdsal</artifactId>
56       <classifier>features</classifier>
57       <type>xml</type>
58       <scope>runtime</scope>
59     </dependency>
60       <dependency>
61           <groupId>org.opendaylight.controller</groupId>
62           <artifactId>features-extras</artifactId>
63           <version>${project.version}</version>
64           <classifier>features</classifier>
65           <type>xml</type>
66           <scope>runtime</scope>
67       </dependency>
68     <dependency>
69       <groupId>org.opendaylight.controller</groupId>
70       <artifactId>features-restconf</artifactId>
71       <version>1.3.0-SNAPSHOT</version>
72       <classifier>features</classifier>
73       <type>xml</type>
74       <scope>runtime</scope>
75     </dependency>
76     <!-- Netconf connector features. When this is included, users can test the netconf connector using netconf-testtool -->
77     <dependency>
78       <groupId>org.opendaylight.controller</groupId>
79       <artifactId>features-netconf-connector</artifactId>
80       <classifier>features</classifier>
81       <type>xml</type>
82     </dependency>
83   </dependencies>
84
85   <build>
86     <pluginManagement>
87       <plugins>
88         <plugin>
89           <groupId>org.eclipse.m2e</groupId>
90           <artifactId>lifecycle-mapping</artifactId>
91           <version>1.0.0</version>
92           <configuration>
93             <lifecycleMappingMetadata>
94               <pluginExecutions>
95                 <pluginExecution>
96                   <pluginExecutionFilter>
97                     <groupId>org.apache.felix</groupId>
98                     <artifactId>maven-bundle-plugin</artifactId>
99                     <versionRange>[0,)</versionRange>
100                     <goals>
101                       <goal>cleanVersions</goal>
102                     </goals>
103                   </pluginExecutionFilter>
104                   <action>
105                     <ignore></ignore>
106                   </action>
107                 </pluginExecution>
108                 <pluginExecution>
109                   <pluginExecutionFilter>
110                     <groupId>org.apache.maven.plugins</groupId>
111                     <artifactId>maven-dependency-plugin</artifactId>
112                     <versionRange>[0,)</versionRange>
113                     <goals>
114                       <goal>copy</goal>
115                       <goal>unpack</goal>
116                     </goals>
117                   </pluginExecutionFilter>
118                   <action>
119                     <ignore></ignore>
120                   </action>
121                 </pluginExecution>
122                 <pluginExecution>
123                   <pluginExecutionFilter>
124                     <groupId>org.apache.karaf.tooling</groupId>
125                     <artifactId>karaf-maven-plugin</artifactId>
126                     <versionRange>[0,)</versionRange>
127                     <goals>
128                       <goal>commands-generate-help</goal>
129                     </goals>
130                   </pluginExecutionFilter>
131                   <action>
132                     <ignore></ignore>
133                   </action>
134                 </pluginExecution>
135                 <pluginExecution>
136                   <pluginExecutionFilter>
137                     <groupId>org.fusesource.scalate</groupId>
138                     <artifactId>maven-scalate-plugin</artifactId>
139                     <versionRange>[0,)</versionRange>
140                     <goals>
141                       <goal>sitegen</goal>
142                     </goals>
143                   </pluginExecutionFilter>
144                   <action>
145                     <ignore></ignore>
146                   </action>
147                 </pluginExecution>
148                 <pluginExecution>
149                   <pluginExecutionFilter>
150                     <groupId>org.apache.servicemix.tooling</groupId>
151                     <artifactId>depends-maven-plugin</artifactId>
152                     <versionRange>[0,)</versionRange>
153                     <goals>
154                       <goal>generate-depends-file</goal>
155                     </goals>
156                   </pluginExecutionFilter>
157                   <action>
158                     <ignore></ignore>
159                   </action>
160                 </pluginExecution>
161               </pluginExecutions>
162             </lifecycleMappingMetadata>
163           </configuration>
164         </plugin>
165       </plugins>
166     </pluginManagement>
167     <plugins>
168       <plugin>
169         <groupId>org.apache.karaf.tooling</groupId>
170         <artifactId>karaf-maven-plugin</artifactId>
171         <version>${karaf.version}</version>
172         <extensions>true</extensions>
173         <configuration>
174           <!-- no startupFeatures -->
175           <bootFeatures>
176             <feature>standard</feature>
177           </bootFeatures>
178           <!-- no installedFeatures -->
179         </configuration>
180         <executions>
181           <execution>
182             <id>process-resources</id>
183             <goals>
184               <goal>install-kars</goal>
185             </goals>
186             <phase>process-resources</phase>
187           </execution>
188           <execution>
189             <id>package</id>
190             <goals>
191               <goal>instance-create-archive</goal>
192             </goals>
193           </execution>
194         </executions>
195       </plugin>
196       <plugin>
197         <groupId>org.apache.maven.plugins</groupId>
198         <artifactId>maven-checkstyle-plugin</artifactId>
199         <configuration>
200           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
201         </configuration>
202       </plugin>
203       <plugin>
204         <groupId>org.apache.maven.plugins</groupId>
205         <artifactId>maven-dependency-plugin</artifactId>
206         <version>2.6</version>
207         <executions>
208           <execution>
209             <id>copy</id>
210             <goals>
211               <goal>copy</goal>
212             </goals>
213             <!-- here the phase you need -->
214             <phase>generate-resources</phase>
215             <configuration>
216               <artifactItems>
217                 <artifactItem>
218                   <groupId>org.opendaylight.controller</groupId>
219                   <artifactId>karaf.branding</artifactId>
220                   <version>${karaf.branding.version}</version>
221                   <outputDirectory>target/assembly/lib</outputDirectory>
222                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
223                 </artifactItem>
224                   <!-- Needs to be copied to lib/ext in order to start bouncy provider for mina sshd -->
225               <artifactItem>
226                   <groupId>org.bouncycastle</groupId>
227                   <artifactId>bcprov-jdk15on</artifactId>
228                   <version>${bouncycastle.version}</version>
229                   <outputDirectory>target/assembly/lib/ext</outputDirectory>
230                   <destFileName>bcprov-jdk15on-${bouncycastle.version}.jar</destFileName>
231               </artifactItem>
232               </artifactItems>
233             </configuration>
234           </execution>
235           <execution>
236             <id>unpack-karaf-resources</id>
237             <goals>
238               <goal>unpack-dependencies</goal>
239             </goals>
240             <phase>prepare-package</phase>
241             <configuration>
242              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
243              <groupId>org.opendaylight.controller</groupId>
244              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
245              <excludes>META-INF\/**</excludes>
246              <excludeTransitive>true</excludeTransitive>
247              <ignorePermissions>false</ignorePermissions>
248             </configuration>
249           </execution>
250         </executions>
251       </plugin>
252       <plugin>
253         <groupId>org.apache.maven.plugins</groupId>
254         <artifactId>maven-antrun-plugin</artifactId>
255         <executions>
256             <execution>
257                 <phase>prepare-package</phase>
258                 <goals>
259                     <goal>run</goal>
260                 </goals>
261                 <configuration>
262                   <tasks>
263                     <chmod perm="755">
264                         <fileset dir="${project.build.directory}/assembly/bin">
265                           <include name="karaf"/>
266                           <include name="instance"/>
267                           <include name="start"/>
268                           <include name="stop"/>
269                           <include name="status"/>
270                           <include name="client"/>
271                           <include name="shell"/>
272                         </fileset>
273                     </chmod>
274                   </tasks>
275                 </configuration>
276             </execution>
277         </executions>
278       </plugin>
279     </plugins>
280   </build>
281   <scm>
282     <connection>scm:git:http://git.opendaylight.org/gerrit/controller.git</connection>
283     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
284     <tag>HEAD</tag>
285     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
286   </scm>
287 </project>