Fix build by referencing correct dependencies.
[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-ofoverlay</feature>
179               <feature>odl-restconf</feature>
180           </bootFeatures>
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-dependency-plugin</artifactId>
201         <version>2.6</version>
202         <executions>
203           <execution>
204             <id>copy</id>
205             <goals>
206               <goal>copy</goal>
207             </goals>
208             <phase>generate-resources</phase>
209             <configuration>
210               <artifactItems>
211                 <artifactItem>
212                   <groupId>org.opendaylight.controller</groupId>
213                   <artifactId>karaf.branding</artifactId>
214                   <version>${karaf.branding.version}</version>
215                   <outputDirectory>target/assembly/lib</outputDirectory>
216                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
217                 </artifactItem>
218               </artifactItems>
219             </configuration>
220           </execution>
221           <execution>
222             <id>unpack-karaf-resources</id>
223             <goals>
224               <goal>unpack-dependencies</goal>
225             </goals>
226             <phase>prepare-package</phase>
227             <configuration>
228              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
229              <groupId>org.opendaylight.controller</groupId>
230              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
231              <excludes>META-INF\/**</excludes>
232              <excludeTransitive>true</excludeTransitive>
233              <ignorePermissions>false</ignorePermissions>
234             </configuration>
235           </execution>
236         </executions>
237       </plugin>
238       <plugin>
239         <groupId>org.apache.maven.plugins</groupId>
240         <artifactId>maven-antrun-plugin</artifactId>
241         <executions>
242             <execution>
243                 <phase>prepare-package</phase>
244                 <goals>
245                     <goal>run</goal>
246                 </goals>
247                 <configuration>
248                   <tasks>
249                     <chmod perm="755">
250                         <fileset dir="${project.build.directory}/assembly/bin">
251                           <include name="karaf" />
252                           <include name="instance" />
253                           <include name="start" />
254                           <include name="stop" />
255                           <include name="status" />
256                           <include name="client" />
257                           <include name="shell" />
258                         </fileset>
259                     </chmod>
260                   </tasks>
261                 </configuration>
262             </execution>
263         </executions>
264       </plugin>
265     </plugins>
266   </build>
267   <scm>
268     <connection>scm:git:ssh://git.opendaylight.org:29418/groupbasedpolicy.git</connection>
269     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/groupbasedpolicy.git</developerConnection>
270     <tag>HEAD</tag>
271     <url>https://git.opendaylight.org/gerrit/gitweb?p=groupbasedpolicy.git;a=summary</url>
272   </scm>
273 </project>