Add test scope to karaf-empty artifact in akka feature test pom
[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.mdsal</groupId>
70       <artifactId>features-mdsal</artifactId>
71       <version>2.0.0-SNAPSHOT</version>
72       <classifier>features</classifier>
73       <type>xml</type>
74       <scope>runtime</scope>
75     </dependency>
76     <dependency>
77       <groupId>org.opendaylight.mdsal.model</groupId>
78       <artifactId>features-mdsal-model</artifactId>
79       <version>0.8.0-SNAPSHOT</version>
80       <classifier>features</classifier>
81       <type>xml</type>
82       <scope>runtime</scope>
83     </dependency>
84
85     <!-- Netconf connector features. When this is included, users can test the netconf connector using netconf-testtool -->
86 <!--     <dependency>
87       <groupId>org.opendaylight.controller</groupId>
88       <artifactId>features-netconf-connector</artifactId>
89       <classifier>features</classifier>
90       <type>xml</type>
91     </dependency> -->
92   </dependencies>
93
94   <build>
95     <pluginManagement>
96       <plugins>
97         <plugin>
98           <groupId>org.eclipse.m2e</groupId>
99           <artifactId>lifecycle-mapping</artifactId>
100           <version>1.0.0</version>
101           <configuration>
102             <lifecycleMappingMetadata>
103               <pluginExecutions>
104                 <pluginExecution>
105                   <pluginExecutionFilter>
106                     <groupId>org.apache.felix</groupId>
107                     <artifactId>maven-bundle-plugin</artifactId>
108                     <versionRange>[0,)</versionRange>
109                     <goals>
110                       <goal>cleanVersions</goal>
111                     </goals>
112                   </pluginExecutionFilter>
113                   <action>
114                     <ignore></ignore>
115                   </action>
116                 </pluginExecution>
117                 <pluginExecution>
118                   <pluginExecutionFilter>
119                     <groupId>org.apache.maven.plugins</groupId>
120                     <artifactId>maven-dependency-plugin</artifactId>
121                     <versionRange>[0,)</versionRange>
122                     <goals>
123                       <goal>copy</goal>
124                       <goal>unpack</goal>
125                     </goals>
126                   </pluginExecutionFilter>
127                   <action>
128                     <ignore></ignore>
129                   </action>
130                 </pluginExecution>
131                 <pluginExecution>
132                   <pluginExecutionFilter>
133                     <groupId>org.apache.karaf.tooling</groupId>
134                     <artifactId>karaf-maven-plugin</artifactId>
135                     <versionRange>[0,)</versionRange>
136                     <goals>
137                       <goal>commands-generate-help</goal>
138                     </goals>
139                   </pluginExecutionFilter>
140                   <action>
141                     <ignore></ignore>
142                   </action>
143                 </pluginExecution>
144                 <pluginExecution>
145                   <pluginExecutionFilter>
146                     <groupId>org.fusesource.scalate</groupId>
147                     <artifactId>maven-scalate-plugin</artifactId>
148                     <versionRange>[0,)</versionRange>
149                     <goals>
150                       <goal>sitegen</goal>
151                     </goals>
152                   </pluginExecutionFilter>
153                   <action>
154                     <ignore></ignore>
155                   </action>
156                 </pluginExecution>
157                 <pluginExecution>
158                   <pluginExecutionFilter>
159                     <groupId>org.apache.servicemix.tooling</groupId>
160                     <artifactId>depends-maven-plugin</artifactId>
161                     <versionRange>[0,)</versionRange>
162                     <goals>
163                       <goal>generate-depends-file</goal>
164                     </goals>
165                   </pluginExecutionFilter>
166                   <action>
167                     <ignore></ignore>
168                   </action>
169                 </pluginExecution>
170               </pluginExecutions>
171             </lifecycleMappingMetadata>
172           </configuration>
173         </plugin>
174       </plugins>
175     </pluginManagement>
176     <plugins>
177       <plugin>
178         <groupId>org.apache.karaf.tooling</groupId>
179         <artifactId>karaf-maven-plugin</artifactId>
180         <version>${karaf.version}</version>
181         <extensions>true</extensions>
182         <configuration>
183           <!-- no startupFeatures -->
184           <bootFeatures>
185             <feature>standard</feature>
186           </bootFeatures>
187           <!-- no installedFeatures -->
188         </configuration>
189         <executions>
190           <execution>
191             <id>process-resources</id>
192             <goals>
193               <goal>install-kars</goal>
194             </goals>
195             <phase>process-resources</phase>
196           </execution>
197           <execution>
198             <id>package</id>
199             <goals>
200               <goal>instance-create-archive</goal>
201             </goals>
202           </execution>
203         </executions>
204       </plugin>
205       <plugin>
206         <groupId>org.apache.maven.plugins</groupId>
207         <artifactId>maven-checkstyle-plugin</artifactId>
208         <configuration>
209           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
210         </configuration>
211       </plugin>
212       <plugin>
213         <groupId>org.apache.maven.plugins</groupId>
214         <artifactId>maven-dependency-plugin</artifactId>
215         <version>2.6</version>
216         <executions>
217           <execution>
218             <id>copy</id>
219             <goals>
220               <goal>copy</goal>
221             </goals>
222             <!-- here the phase you need -->
223             <phase>generate-resources</phase>
224             <configuration>
225               <artifactItems>
226                 <artifactItem>
227                   <groupId>org.opendaylight.controller</groupId>
228                   <artifactId>karaf.branding</artifactId>
229                   <version>${karaf.branding.version}</version>
230                   <outputDirectory>target/assembly/lib</outputDirectory>
231                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
232                 </artifactItem>
233                   <!-- Needs to be copied to lib/ext in order to start bouncy provider for mina sshd -->
234               <artifactItem>
235                   <groupId>org.bouncycastle</groupId>
236                   <artifactId>bcprov-jdk15on</artifactId>
237                   <version>${bouncycastle.version}</version>
238                   <outputDirectory>target/assembly/lib/ext</outputDirectory>
239                   <destFileName>bcprov-jdk15on-${bouncycastle.version}.jar</destFileName>
240               </artifactItem>
241               </artifactItems>
242             </configuration>
243           </execution>
244           <execution>
245             <id>unpack-karaf-resources</id>
246             <goals>
247               <goal>unpack-dependencies</goal>
248             </goals>
249             <phase>prepare-package</phase>
250             <configuration>
251              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
252              <groupId>org.opendaylight.controller</groupId>
253              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
254              <excludes>META-INF\/**</excludes>
255              <excludeTransitive>true</excludeTransitive>
256              <ignorePermissions>false</ignorePermissions>
257             </configuration>
258           </execution>
259         </executions>
260       </plugin>
261       <plugin>
262         <groupId>org.apache.maven.plugins</groupId>
263         <artifactId>maven-antrun-plugin</artifactId>
264         <executions>
265             <execution>
266                 <phase>prepare-package</phase>
267                 <goals>
268                     <goal>run</goal>
269                 </goals>
270                 <configuration>
271                   <tasks>
272                     <chmod perm="755">
273                         <fileset dir="${project.build.directory}/assembly/bin">
274                           <include name="karaf"/>
275                           <include name="instance"/>
276                           <include name="start"/>
277                           <include name="stop"/>
278                           <include name="status"/>
279                           <include name="client"/>
280                           <include name="shell"/>
281                         </fileset>
282                     </chmod>
283                   </tasks>
284                 </configuration>
285             </execution>
286         </executions>
287       </plugin>
288     </plugins>
289   </build>
290   <scm>
291     <connection>scm:git:http://git.opendaylight.org/gerrit/controller.git</connection>
292     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
293     <tag>HEAD</tag>
294     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
295   </scm>
296 </project>