adding command-line and certificate functionalities
[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.4.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         <dependency>
84             <groupId>org.opendaylight.aaa</groupId>
85             <artifactId>features-aaa-cert</artifactId>
86             <classifier>features</classifier>
87             <version>${project.version}</version>
88             <type>xml</type>
89             <scope>runtime</scope>
90         </dependency>
91         <dependency>
92             <groupId>org.opendaylight.aaa</groupId>
93             <artifactId>features-aaa-cli</artifactId>
94             <classifier>features</classifier>
95             <version>${project.version}</version>
96             <type>xml</type>
97             <scope>runtime</scope>
98         </dependency>
99     </dependencies>
100
101     <build>
102         <pluginManagement>
103             <plugins>
104                 <plugin>
105                     <groupId>org.eclipse.m2e</groupId>
106                     <artifactId>lifecycle-mapping</artifactId>
107                     <version>1.0.0</version>
108                     <configuration>
109                         <lifecycleMappingMetadata>
110                             <pluginExecutions>
111                                 <pluginExecution>
112                                     <pluginExecutionFilter>
113                                         <groupId>org.apache.felix</groupId>
114                                         <artifactId>maven-bundle-plugin</artifactId>
115                                         <versionRange>[0,)</versionRange>
116                                         <goals>
117                                             <goal>cleanVersions</goal>
118                                         </goals>
119                                     </pluginExecutionFilter>
120                                     <action>
121                                         <ignore></ignore>
122                                     </action>
123                                 </pluginExecution>
124                                 <pluginExecution>
125                                     <pluginExecutionFilter>
126                                         <groupId>org.apache.maven.plugins</groupId>
127                                         <artifactId>maven-dependency-plugin</artifactId>
128                                         <versionRange>[0,)</versionRange>
129                                         <goals>
130                                             <goal>copy</goal>
131                                             <goal>unpack</goal>
132                                         </goals>
133                                     </pluginExecutionFilter>
134                                     <action>
135                                         <ignore></ignore>
136                                     </action>
137                                 </pluginExecution>
138                                 <pluginExecution>
139                                     <pluginExecutionFilter>
140                                         <groupId>org.apache.karaf.tooling</groupId>
141                                         <artifactId>karaf-maven-plugin</artifactId>
142                                         <versionRange>[0,)</versionRange>
143                                         <goals>
144                                             <goal>commands-generate-help</goal>
145                                         </goals>
146                                     </pluginExecutionFilter>
147                                     <action>
148                                         <ignore></ignore>
149                                     </action>
150                                 </pluginExecution>
151                                 <pluginExecution>
152                                     <pluginExecutionFilter>
153                                         <groupId>org.fusesource.scalate</groupId>
154                                         <artifactId>maven-scalate-plugin</artifactId>
155                                         <versionRange>[0,)</versionRange>
156                                         <goals>
157                                             <goal>sitegen</goal>
158                                         </goals>
159                                     </pluginExecutionFilter>
160                                     <action>
161                                         <ignore></ignore>
162                                     </action>
163                                 </pluginExecution>
164                                 <pluginExecution>
165                                     <pluginExecutionFilter>
166                                         <groupId>org.apache.servicemix.tooling</groupId>
167                                         <artifactId>depends-maven-plugin</artifactId>
168                                         <versionRange>[0,)</versionRange>
169                                         <goals>
170                                             <goal>generate-depends-file</goal>
171                                         </goals>
172                                     </pluginExecutionFilter>
173                                     <action>
174                                         <ignore></ignore>
175                                     </action>
176                                 </pluginExecution>
177                             </pluginExecutions>
178                         </lifecycleMappingMetadata>
179                     </configuration>
180                 </plugin>
181             </plugins>
182         </pluginManagement>
183         <plugins>
184             <plugin>
185                 <groupId>org.apache.karaf.tooling</groupId>
186                 <artifactId>karaf-maven-plugin</artifactId>
187                 <extensions>true</extensions>
188                 <configuration>
189                     <bootFeatures>
190                         <feature>standard</feature>
191                         <!-- Optional TODO: Add entries here for the features
192                             you want in your local distro Note: odl-restconf is a separate feature from
193                             odl-mdsal-broker. If you want restconf, you need to list it here explicitely.
194                             Examples: <feature>odl-toaster</feature> <feature>odl-restconf</feature> -->
195                         <!-- Final TODO: Remove TODO Comments ;) -->
196                     </bootFeatures>
197                 </configuration>
198                 <executions>
199                     <execution>
200                         <id>process-resources</id>
201                         <goals>
202                             <goal>install-kars</goal>
203                         </goals>
204                         <phase>process-resources</phase>
205                     </execution>
206                     <execution>
207                         <id>package</id>
208                         <goals>
209                             <goal>instance-create-archive</goal>
210                         </goals>
211                     </execution>
212                 </executions>
213             </plugin>
214             <plugin>
215                 <groupId>org.apache.maven.plugins</groupId>
216                 <artifactId>maven-dependency-plugin</artifactId>
217                 <version>2.6</version>
218                 <executions>
219                     <execution>
220                         <id>copy</id>
221                         <goals>
222                             <goal>copy</goal>
223                         </goals>
224                         <phase>generate-resources</phase>
225                         <configuration>
226                             <artifactItems>
227                                 <artifactItem>
228                                     <groupId>org.opendaylight.controller</groupId>
229                                     <artifactId>karaf.branding</artifactId>
230                                     <version>${karaf.branding.version}</version>
231                                     <outputDirectory>target/assembly/lib</outputDirectory>
232                                     <destFileName>karaf.branding-${karaf.branding.version}.jar</destFileName>
233                                 </artifactItem>
234                             </artifactItems>
235                         </configuration>
236                     </execution>
237                     <execution>
238                         <id>unpack-karaf-resources</id>
239                         <goals>
240                             <goal>unpack-dependencies</goal>
241                         </goals>
242                         <phase>prepare-package</phase>
243                         <configuration>
244                             <outputDirectory>${project.build.directory}/assembly</outputDirectory>
245                             <groupId>org.opendaylight.controller</groupId>
246                             <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
247                             <excludes>META-INF\/**</excludes>
248                             <excludeTransitive>true</excludeTransitive>
249                             <ignorePermissions>false</ignorePermissions>
250                         </configuration>
251                     </execution>
252                 </executions>
253             </plugin>
254             <plugin>
255                 <groupId>org.apache.maven.plugins</groupId>
256                 <artifactId>maven-antrun-plugin</artifactId>
257                 <executions>
258                     <execution>
259                         <phase>prepare-package</phase>
260                         <goals>
261                             <goal>run</goal>
262                         </goals>
263                         <configuration>
264                             <tasks>
265                                 <chmod perm="755">
266                                     <fileset
267                                         dir="${project.build.directory}/assembly/bin">
268                                         <include name="karaf" />
269                                         <include name="instance" />
270                                         <include name="start" />
271                                         <include name="stop" />
272                                         <include name="status" />
273                                         <include name="client" />
274                                         <include name="shell" />
275                                     </fileset>
276                                 </chmod>
277                             </tasks>
278                         </configuration>
279                     </execution>
280                 </executions>
281             </plugin>
282         </plugins>
283     </build>
284     <scm>
285         <connection>scm:git:ssh://git.opendaylight.org:29418/aaa.git</connection>
286         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/aaa.git</developerConnection>
287         <tag>HEAD</tag>
288         <url>https://git.opendaylight.org/gerrit/gitweb?p=aaa.git;a=summary</url>
289     </scm>
290 </project>