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