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