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