Merge "Introduction of the odl-aaa-shiro feature"
[aaa.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"
3     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4     <modelVersion>4.0.0</modelVersion>
5     <parent>
6         <groupId>org.opendaylight.aaa</groupId>
7         <artifactId>aaa-parent</artifactId>
8         <version>0.3.0-SNAPSHOT</version>
9         <relativePath>../parent</relativePath>
10     </parent>
11
12     <artifactId>distribution-karaf</artifactId>
13     <packaging>pom</packaging>
14     <prerequisites>
15         <maven>3.0</maven>
16     </prerequisites>
17
18     <dependencies>
19         <!-- Basic Karaf dependencies -->
20         <dependency>
21             <groupId>org.apache.karaf.features</groupId>
22             <artifactId>framework</artifactId>
23             <version>${karaf.version}</version>
24             <type>kar</type>
25         </dependency>
26         <dependency>
27             <groupId>org.apache.karaf.features</groupId>
28             <artifactId>standard</artifactId>
29             <version>${karaf.version}</version>
30             <classifier>features</classifier>
31             <type>xml</type>
32             <scope>runtime</scope>
33         </dependency>
34
35         <!-- ODL Branding -->
36         <dependency>
37             <groupId>org.opendaylight.controller</groupId>
38             <artifactId>karaf.branding</artifactId>
39             <version>${karaf.branding.version}</version>
40             <scope>compile</scope>
41         </dependency>
42
43         <!-- ODL Resources needed for karaf -->
44         <dependency>
45             <groupId>org.opendaylight.controller</groupId>
46             <artifactId>opendaylight-karaf-resources</artifactId>
47             <version>${karaf.resources.version}</version>
48         </dependency>
49
50         <!-- Project local feautures -->
51         <dependency>
52             <groupId>org.opendaylight.aaa</groupId>
53             <artifactId>features-aaa-api</artifactId>
54             <classifier>features</classifier>
55             <version>${project.version}</version>
56             <type>xml</type>
57             <scope>runtime</scope>
58         </dependency>
59         <dependency>
60             <groupId>org.opendaylight.aaa</groupId>
61             <artifactId>features-aaa</artifactId>
62             <classifier>features</classifier>
63             <version>${project.version}</version>
64             <type>xml</type>
65             <scope>runtime</scope>
66         </dependency>
67         <dependency>
68             <groupId>org.opendaylight.aaa</groupId>
69             <artifactId>features-aaa-authz</artifactId>
70             <classifier>features</classifier>
71             <version>${project.version}</version>
72             <type>xml</type>
73             <scope>runtime</scope>
74         </dependency>
75         <dependency>
76             <groupId>org.opendaylight.aaa</groupId>
77             <artifactId>features-aaa-shiro</artifactId>
78             <classifier>features</classifier>
79             <version>${project.version}</version>
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                 <extensions>true</extensions>
172                 <configuration>
173                     <bootFeatures>
174                         <feature>standard</feature>
175                         <!-- Optional TODO: Add entries here for the features 
176                             you want in your local distro Note: odl-restconf is a separate feature from 
177                             odl-mdsal-broker. If you want restconf, you need to list it here explicitely. 
178                             Examples: <feature>odl-toaster</feature> <feature>odl-restconf</feature> -->
179                         <!-- Final TODO: Remove TODO Comments ;) -->
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-${karaf.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
251                                         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/aaa.git</connection>
270         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/aaa.git</developerConnection>
271         <tag>HEAD</tag>
272         <url>https://git.opendaylight.org/gerrit/gitweb?p=aaa.git;a=summary</url>
273     </scm>
274 </project>