2cfd4dfa6c66128ba7ff6f63d5ff40338c0227b1
[groupbasedpolicy.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     <artifactId>groupbasedpolicy.project</artifactId>
6     <groupId>org.opendaylight.groupbasedpolicy</groupId>
7     <version>0.1.0-SNAPSHOT</version>
8     <relativePath>../</relativePath>
9   </parent>
10   <artifactId>distribution-karaf</artifactId>
11   <groupId>org.opendaylight.groupbasedpolicy</groupId>
12   <packaging>pom</packaging>
13   <prerequisites>
14     <maven>3.0</maven>
15   </prerequisites>
16   <properties>
17     <branding.version>1.0.0-SNAPSHOT</branding.version>
18     <karaf.resources.version>1.4.2-SNAPSHOT</karaf.resources.version>
19     <karaf.version>3.0.1</karaf.version>
20   </properties>
21
22   <dependencies>
23     <!-- Basic Karaf dependencies -->
24     <dependency>
25       <groupId>org.apache.karaf.features</groupId>
26       <artifactId>framework</artifactId>
27       <version>${karaf.version}</version>
28       <type>kar</type>
29     </dependency>
30     <dependency>
31       <groupId>org.apache.karaf.features</groupId>
32       <artifactId>standard</artifactId>
33       <version>${karaf.version}</version>
34       <classifier>features</classifier>
35       <type>xml</type>
36       <scope>runtime</scope>
37     </dependency>
38
39     <!-- ODL Branding -->
40     <dependency>
41       <groupId>org.opendaylight.controller</groupId>
42       <artifactId>karaf.branding</artifactId>
43       <version>${branding.version}</version>
44       <scope>compile</scope>
45     </dependency>
46
47     <!-- ODL Resources needed for karaf -->
48     <dependency>
49       <groupId>org.opendaylight.controller</groupId>
50       <artifactId>opendaylight-karaf-resources</artifactId>
51       <version>${karaf.resources.version}</version>
52     </dependency>
53
54     <!-- Project local feautures -->
55     <dependency>
56       <groupId>org.opendaylight.controller</groupId>
57       <artifactId>features-mdsal</artifactId>
58       <classifier>features</classifier>
59       <type>xml</type>
60       <scope>runtime</scope>
61     </dependency>
62
63     <dependency>
64       <groupId>org.opendaylight.groupbasedpolicy</groupId>
65       <artifactId>features-groupbasedpolicy</artifactId>
66       <version>${groupbasedpolicy.project.version}</version>
67       <classifier>features</classifier>
68       <type>xml</type>
69       <scope>runtime</scope>
70     </dependency>
71   </dependencies>
72
73   <build>
74     <pluginManagement>
75       <plugins>
76         <plugin>
77           <groupId>org.eclipse.m2e</groupId>
78           <artifactId>lifecycle-mapping</artifactId>
79           <version>1.0.0</version>
80           <configuration>
81             <lifecycleMappingMetadata>
82               <pluginExecutions>
83                 <pluginExecution>
84                   <pluginExecutionFilter>
85                     <groupId>org.apache.felix</groupId>
86                     <artifactId>maven-bundle-plugin</artifactId>
87                     <versionRange>[0,)</versionRange>
88                     <goals>
89                       <goal>cleanVersions</goal>
90                     </goals>
91                   </pluginExecutionFilter>
92                   <action>
93                     <ignore></ignore>
94                   </action>
95                 </pluginExecution>
96                 <pluginExecution>
97                   <pluginExecutionFilter>
98                     <groupId>org.apache.maven.plugins</groupId>
99                     <artifactId>maven-dependency-plugin</artifactId>
100                     <versionRange>[0,)</versionRange>
101                     <goals>
102                       <goal>copy</goal>
103                       <goal>unpack</goal>
104                     </goals>
105                   </pluginExecutionFilter>
106                   <action>
107                     <ignore></ignore>
108                   </action>
109                 </pluginExecution>
110                 <pluginExecution>
111                   <pluginExecutionFilter>
112                     <groupId>org.apache.karaf.tooling</groupId>
113                     <artifactId>karaf-maven-plugin</artifactId>
114                     <versionRange>[0,)</versionRange>
115                     <goals>
116                       <goal>commands-generate-help</goal>
117                     </goals>
118                   </pluginExecutionFilter>
119                   <action>
120                     <ignore></ignore>
121                   </action>
122                 </pluginExecution>
123                 <pluginExecution>
124                   <pluginExecutionFilter>
125                     <groupId>org.fusesource.scalate</groupId>
126                     <artifactId>maven-scalate-plugin</artifactId>
127                     <versionRange>[0,)</versionRange>
128                     <goals>
129                       <goal>sitegen</goal>
130                     </goals>
131                   </pluginExecutionFilter>
132                   <action>
133                     <ignore></ignore>
134                   </action>
135                 </pluginExecution>
136                 <pluginExecution>
137                   <pluginExecutionFilter>
138                     <groupId>org.apache.servicemix.tooling</groupId>
139                     <artifactId>depends-maven-plugin</artifactId>
140                     <versionRange>[0,)</versionRange>
141                     <goals>
142                       <goal>generate-depends-file</goal>
143                     </goals>
144                   </pluginExecutionFilter>
145                   <action>
146                     <ignore></ignore>
147                   </action>
148                 </pluginExecution>
149               </pluginExecutions>
150             </lifecycleMappingMetadata>
151           </configuration>
152         </plugin>
153       </plugins>
154     </pluginManagement>
155     <plugins>
156       <plugin>
157         <groupId>org.apache.karaf.tooling</groupId>
158         <artifactId>karaf-maven-plugin</artifactId>
159         <version>${karaf.version}</version>
160         <extensions>true</extensions>
161         <configuration>
162           <bootFeatures>
163             <feature>standard</feature>
164               <feature>standard</feature>
165               <feature>odl-groupbasedpolicy-ofoverlay</feature>
166               <feature>odl-restconf</feature>
167           </bootFeatures>
168         </configuration>
169         <executions>
170           <execution>
171             <id>process-resources</id>
172             <goals>
173               <goal>install-kars</goal>
174             </goals>
175             <phase>process-resources</phase>
176           </execution>
177           <execution>
178             <id>package</id>
179             <goals>
180               <goal>instance-create-archive</goal>
181             </goals>
182           </execution>
183         </executions>
184       </plugin>
185       <plugin>
186         <groupId>org.apache.maven.plugins</groupId>
187         <artifactId>maven-dependency-plugin</artifactId>
188         <version>2.6</version>
189         <executions>
190           <execution>
191             <id>copy</id>
192             <goals>
193               <goal>copy</goal>
194             </goals>
195             <phase>generate-resources</phase>
196             <configuration>
197               <artifactItems>
198                 <artifactItem>
199                   <groupId>org.opendaylight.controller</groupId>
200                   <artifactId>karaf.branding</artifactId>
201                   <version>${karaf.branding.version}</version>
202                   <outputDirectory>target/assembly/lib</outputDirectory>
203                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
204                 </artifactItem>
205               </artifactItems>
206             </configuration>
207           </execution>
208           <execution>
209             <id>unpack-karaf-resources</id>
210             <goals>
211               <goal>unpack-dependencies</goal>
212             </goals>
213             <phase>prepare-package</phase>
214             <configuration>
215              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
216              <groupId>org.opendaylight.controller</groupId>
217              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
218              <excludes>META-INF\/**</excludes>
219              <excludeTransitive>true</excludeTransitive>
220              <ignorePermissions>false</ignorePermissions>
221             </configuration>
222           </execution>
223         </executions>
224       </plugin>
225       <plugin>
226         <groupId>org.apache.maven.plugins</groupId>
227         <artifactId>maven-antrun-plugin</artifactId>
228         <executions>
229             <execution>
230                 <phase>prepare-package</phase>
231                 <goals>
232                     <goal>run</goal>
233                 </goals>
234                 <configuration>
235                   <tasks>
236                     <chmod perm="755">
237                         <fileset dir="${project.build.directory}/assembly/bin">
238                           <include name="karaf" />
239                           <include name="instance" />
240                           <include name="start" />
241                           <include name="stop" />
242                           <include name="status" />
243                           <include name="client" />
244                           <include name="shell" />
245                         </fileset>
246                     </chmod>
247                   </tasks>
248                 </configuration>
249             </execution>
250         </executions>
251       </plugin>
252     </plugins>
253   </build>
254   <scm>
255     <connection>scm:git:ssh://git.opendaylight.org:29418/groupbasedpolicy.git</connection>
256     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/groupbasedpolicy.git</developerConnection>
257     <tag>HEAD</tag>
258     <url>https://git.opendaylight.org/gerrit/gitweb?p=groupbasedpolicy.git;a=summary</url>
259   </scm>
260 </project>