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