Adding feature odl-openflowplugin-nxm-extensions and configs.
[openflowplugin.git] / distribution / 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.openflowplugin</groupId>
6     <artifactId>openflowplugin-parent</artifactId>
7     <version>0.1.0-SNAPSHOT</version>
8     <relativePath>../../</relativePath>
9   </parent>
10   <artifactId>openflowplugin-karaf</artifactId>
11   <packaging>pom</packaging>
12   <prerequisites>
13     <maven>3.0</maven>
14   </prerequisites>
15   <properties>
16     <branding.version>1.1.0-SNAPSHOT</branding.version>
17     <karaf.resources.version>1.5.0-SNAPSHOT</karaf.resources.version>
18   </properties>
19
20   <dependencies>
21     <dependency>
22       <!-- scope is compile so all features (there is only one) are installed
23             into startup.properties and the feature repo itself is not installed -->
24       <groupId>org.apache.karaf.features</groupId>
25       <artifactId>framework</artifactId>
26       <version>${karaf.version}</version>
27       <type>kar</type>
28     </dependency>
29     <!-- scope is runtime so the feature repo is listed in the features
30       service config file, and features may be installed using the
31       karaf-maven-plugin configuration -->
32     <dependency>
33       <groupId>org.apache.karaf.features</groupId>
34       <artifactId>standard</artifactId>
35       <version>${karaf.version}</version>
36       <classifier>features</classifier>
37       <type>xml</type>
38       <scope>runtime</scope>
39     </dependency>
40
41     <!-- ODL Branding -->
42     <dependency>
43       <groupId>org.opendaylight.controller</groupId>
44       <artifactId>karaf.branding</artifactId>
45       <version>${branding.version}</version>
46       <scope>compile</scope>
47     </dependency>
48
49     <!-- Resources needed -->
50     <dependency>
51       <groupId>org.opendaylight.controller</groupId>
52       <artifactId>opendaylight-karaf-resources</artifactId>
53       <version>${karaf.resources.version}</version>
54     </dependency>
55
56     <!-- openflowplugin feature -->
57     <dependency>
58       <artifactId>features-openflowplugin</artifactId>
59       <groupId>org.opendaylight.openflowplugin</groupId>
60       <version>${project.version}</version>
61       <classifier>features</classifier>
62       <type>xml</type>
63       <scope>runtime</scope>
64     </dependency>
65     <!-- MD-SAL Related Features -->
66     <dependency>
67       <groupId>org.opendaylight.controller</groupId>
68       <artifactId>features-mdsal</artifactId>
69       <version>${mdsal.version}</version>
70       <classifier>features</classifier>
71       <type>xml</type>
72       <scope>runtime</scope>
73     </dependency>
74     <!-- openflowplugin extension feature -->
75     <dependency>
76       <groupId>org.opendaylight.openflowplugin</groupId>
77       <artifactId>features-openflowplugin-extension</artifactId>
78       <version>${project.version}</version>
79       <classifier>features</classifier>
80       <type>xml</type>
81       <scope>runtime</scope>
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             <feature>odl-openflowplugin-flow-services</feature>
178             <feature>odl-restconf</feature>
179           </bootFeatures>
180           <!-- no installedFeatures -->
181         </configuration>
182         <executions>
183           <execution>
184             <id>process-resources</id>
185             <goals>
186               <goal>install-kars</goal>
187             </goals>
188             <phase>process-resources</phase>
189           </execution>
190           <execution>
191             <id>package</id>
192             <goals>
193               <goal>instance-create-archive</goal>
194             </goals>
195           </execution>
196         </executions>
197       </plugin>
198       <plugin>
199         <groupId>org.apache.maven.plugins</groupId>
200         <artifactId>maven-checkstyle-plugin</artifactId>
201         <version>${checkstyle.version}</version>
202         <configuration>
203           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
204         </configuration>
205       </plugin>
206       <plugin>
207         <groupId>org.apache.maven.plugins</groupId>
208         <artifactId>maven-dependency-plugin</artifactId>
209         <version>2.6</version>
210         <executions>
211           <execution>
212             <id>copy</id>
213             <goals>
214               <goal>copy</goal>
215             </goals>
216             <!-- here the phase you need -->
217             <phase>generate-resources</phase>
218             <configuration>
219               <artifactItems>
220                 <artifactItem>
221                   <groupId>org.opendaylight.controller</groupId>
222                   <artifactId>karaf.branding</artifactId>
223                   <version>${karaf.branding.version}</version>
224                   <outputDirectory>target/assembly/lib</outputDirectory>
225                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
226                 </artifactItem>
227               </artifactItems>
228             </configuration>
229           </execution>
230           <execution>
231             <id>unpack-karaf-resources</id>
232             <goals>
233               <goal>unpack-dependencies</goal>
234             </goals>
235             <phase>prepare-package</phase>
236             <configuration>
237              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
238              <groupId>org.opendaylight.controller</groupId>
239              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
240              <excludes>META-INF\/**</excludes>
241              <excludeTransitive>true</excludeTransitive>
242              <ignorePermissions>false</ignorePermissions>
243             </configuration>
244           </execution>
245           <execution>
246             <id>copy-dependencies</id>
247             <phase>prepare-package</phase>
248             <goals>
249               <goal>copy-dependencies</goal>
250             </goals>
251             <configuration>
252               <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
253               <overWriteReleases>false</overWriteReleases>
254               <overWriteSnapshots>true</overWriteSnapshots>
255               <overWriteIfNewer>true</overWriteIfNewer>
256               <useRepositoryLayout>true</useRepositoryLayout>
257               <addParentPoms>true</addParentPoms>
258               <copyPom>true</copyPom>
259             </configuration>
260           </execution>
261         </executions>
262       </plugin>
263       <plugin>
264         <groupId>org.apache.maven.plugins</groupId>
265         <artifactId>maven-antrun-plugin</artifactId>
266         <executions>
267             <execution>
268                 <phase>prepare-package</phase>
269                 <goals>
270                     <goal>run</goal>
271                 </goals>
272                 <configuration>
273                   <tasks>
274                     <chmod perm="755">
275                         <fileset dir="${project.build.directory}/assembly/bin">
276                           <include name="karaf"/>
277                           <include name="instance"/>
278                         </fileset>
279                     </chmod>
280                   </tasks>
281                 </configuration>
282             </execution>
283         </executions>
284       </plugin>
285     </plugins>
286   </build>
287   <scm>
288     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
289     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
290     <tag>HEAD</tag>
291     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
292   </scm>
293 </project>