Upgrade Aries Proxy 1.0.4 -> 1.0.5
[controller.git] / karaf / opendaylight-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     <groupId>org.opendaylight.controller</groupId>
6     <artifactId>commons.opendaylight</artifactId>
7     <version>1.7.0-SNAPSHOT</version>
8     <relativePath>../../opendaylight/commons/opendaylight</relativePath>
9   </parent>
10   <artifactId>distribution.opendaylight-karaf</artifactId>
11   <packaging>pom</packaging>
12
13   <dependencies>
14     <dependency>
15       <!-- scope is compile so all features (there is only one) are installed
16             into startup.properties and the feature repo itself is not installed -->
17       <groupId>org.apache.karaf.features</groupId>
18       <artifactId>framework</artifactId>
19       <version>${karaf.version}</version>
20       <type>kar</type>
21     </dependency>
22     <dependency>
23       <groupId>org.opendaylight.controller</groupId>
24       <artifactId>karaf.branding</artifactId>
25       <scope>compile</scope>
26     </dependency>
27
28     <!-- Resources needed -->
29     <dependency>
30       <groupId>org.opendaylight.controller</groupId>
31       <artifactId>opendaylight-karaf-resources</artifactId>
32       <version>${project.version}</version>
33     </dependency>
34
35     <!-- scope is not runtime so the feature repo is pulled into the local
36     repo on build and thus you actually run.  Failure to do so can lead
37     to very confusing errors for devs -->
38     <dependency>
39       <groupId>org.apache.karaf.features</groupId>
40       <artifactId>standard</artifactId>
41       <version>${karaf.version}</version>
42       <classifier>features</classifier>
43       <type>xml</type>
44     </dependency>
45
46     <!-- Aries Proxy 1.0.5 contains important bug fixes -->
47     <!-- Once we upgrade to a version of Karaf which has at least 1.0.5, this can be removed -->
48     <dependency>
49       <groupId>org.apache.aries.proxy</groupId>
50       <artifactId>org.apache.aries.proxy.impl</artifactId>
51       <version>1.0.5</version>
52     </dependency>
53
54     <!--
55           controller provided features:
56           Note: Nothing should go here that is not locked
57           down with testing... ie, no broken feature repos
58     -->
59
60     <!-- MD-SAL Related Features -->
61     <dependency>
62       <groupId>org.opendaylight.controller</groupId>
63       <artifactId>features-mdsal</artifactId>
64       <classifier>features</classifier>
65       <type>xml</type>
66       <scope>runtime</scope>
67     </dependency>
68       <dependency>
69           <groupId>org.opendaylight.controller</groupId>
70           <artifactId>features-extras</artifactId>
71           <version>${project.version}</version>
72           <classifier>features</classifier>
73           <type>xml</type>
74           <scope>runtime</scope>
75       </dependency>
76     <dependency>
77       <groupId>org.opendaylight.mdsal</groupId>
78       <artifactId>features-mdsal</artifactId>
79       <classifier>features</classifier>
80       <type>xml</type>
81       <scope>runtime</scope>
82     </dependency>
83     <dependency>
84       <groupId>org.opendaylight.mdsal.model</groupId>
85       <artifactId>features-mdsal-model</artifactId>
86       <classifier>features</classifier>
87       <type>xml</type>
88       <scope>runtime</scope>
89     </dependency>
90
91     <!-- Netconf connector features. When this is included, users can test the netconf connector using netconf-testtool -->
92 <!--     <dependency>
93       <groupId>org.opendaylight.controller</groupId>
94       <artifactId>features-netconf-connector</artifactId>
95       <classifier>features</classifier>
96       <type>xml</type>
97     </dependency> -->
98   </dependencies>
99
100   <build>
101     <pluginManagement>
102       <plugins>
103         <plugin>
104           <groupId>org.eclipse.m2e</groupId>
105           <artifactId>lifecycle-mapping</artifactId>
106           <version>1.0.0</version>
107           <configuration>
108             <lifecycleMappingMetadata>
109               <pluginExecutions>
110                 <pluginExecution>
111                   <pluginExecutionFilter>
112                     <groupId>org.apache.felix</groupId>
113                     <artifactId>maven-bundle-plugin</artifactId>
114                     <versionRange>[0,)</versionRange>
115                     <goals>
116                       <goal>cleanVersions</goal>
117                     </goals>
118                   </pluginExecutionFilter>
119                   <action>
120                     <ignore></ignore>
121                   </action>
122                 </pluginExecution>
123                 <pluginExecution>
124                   <pluginExecutionFilter>
125                     <groupId>org.apache.maven.plugins</groupId>
126                     <artifactId>maven-dependency-plugin</artifactId>
127                     <versionRange>[0,)</versionRange>
128                     <goals>
129                       <goal>copy</goal>
130                       <goal>unpack</goal>
131                     </goals>
132                   </pluginExecutionFilter>
133                   <action>
134                     <ignore></ignore>
135                   </action>
136                 </pluginExecution>
137                 <pluginExecution>
138                   <pluginExecutionFilter>
139                     <groupId>org.apache.karaf.tooling</groupId>
140                     <artifactId>karaf-maven-plugin</artifactId>
141                     <versionRange>[0,)</versionRange>
142                     <goals>
143                       <goal>commands-generate-help</goal>
144                     </goals>
145                   </pluginExecutionFilter>
146                   <action>
147                     <ignore></ignore>
148                   </action>
149                 </pluginExecution>
150                 <pluginExecution>
151                   <pluginExecutionFilter>
152                     <groupId>org.fusesource.scalate</groupId>
153                     <artifactId>maven-scalate-plugin</artifactId>
154                     <versionRange>[0,)</versionRange>
155                     <goals>
156                       <goal>sitegen</goal>
157                     </goals>
158                   </pluginExecutionFilter>
159                   <action>
160                     <ignore></ignore>
161                   </action>
162                 </pluginExecution>
163                 <pluginExecution>
164                   <pluginExecutionFilter>
165                     <groupId>org.apache.servicemix.tooling</groupId>
166                     <artifactId>depends-maven-plugin</artifactId>
167                     <versionRange>[0,)</versionRange>
168                     <goals>
169                       <goal>generate-depends-file</goal>
170                     </goals>
171                   </pluginExecutionFilter>
172                   <action>
173                     <ignore></ignore>
174                   </action>
175                 </pluginExecution>
176               </pluginExecutions>
177             </lifecycleMappingMetadata>
178           </configuration>
179         </plugin>
180       </plugins>
181     </pluginManagement>
182     <plugins>
183       <plugin>
184         <groupId>org.apache.karaf.tooling</groupId>
185         <artifactId>karaf-maven-plugin</artifactId>
186         <extensions>true</extensions>
187         <configuration>
188           <!-- no startupFeatures -->
189           <bootFeatures>
190             <feature>standard</feature>
191           </bootFeatures>
192           <!-- no installedFeatures -->
193         </configuration>
194         <executions>
195           <execution>
196             <id>process-resources</id>
197             <goals>
198               <goal>install-kars</goal>
199             </goals>
200             <phase>process-resources</phase>
201           </execution>
202           <execution>
203             <id>package</id>
204             <goals>
205               <goal>instance-create-archive</goal>
206             </goals>
207           </execution>
208         </executions>
209       </plugin>
210       <plugin>
211         <groupId>org.apache.maven.plugins</groupId>
212         <artifactId>maven-checkstyle-plugin</artifactId>
213         <configuration>
214           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
215         </configuration>
216       </plugin>
217       <plugin>
218         <groupId>org.apache.maven.plugins</groupId>
219         <artifactId>maven-dependency-plugin</artifactId>
220         <executions>
221           <execution>
222             <id>copy</id>
223             <goals>
224               <goal>copy</goal>
225             </goals>
226             <!-- here the phase you need -->
227             <phase>generate-resources</phase>
228             <configuration>
229               <artifactItems>
230                 <artifactItem>
231                   <groupId>org.opendaylight.controller</groupId>
232                   <artifactId>karaf.branding</artifactId>
233                   <version>${karaf.branding.version}</version>
234                   <outputDirectory>target/assembly/lib</outputDirectory>
235                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
236                 </artifactItem>
237                   <!-- Needs to be copied to lib/ext in order to start bouncy provider for mina sshd -->
238               <artifactItem>
239                   <groupId>org.bouncycastle</groupId>
240                   <artifactId>bcprov-jdk15on</artifactId>
241                   <version>${bouncycastle.version}</version>
242                   <outputDirectory>target/assembly/lib/ext</outputDirectory>
243                   <destFileName>bcprov-jdk15on-${bouncycastle.version}.jar</destFileName>
244               </artifactItem>
245               </artifactItems>
246             </configuration>
247           </execution>
248           <execution>
249             <id>unpack-karaf-resources</id>
250             <goals>
251               <goal>unpack-dependencies</goal>
252             </goals>
253             <phase>prepare-package</phase>
254             <configuration>
255              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
256              <groupId>org.opendaylight.controller</groupId>
257              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
258              <excludes>META-INF\/**</excludes>
259              <excludeTransitive>true</excludeTransitive>
260              <ignorePermissions>false</ignorePermissions>
261             </configuration>
262           </execution>
263           <execution>
264               <id>copy-dependencies</id>
265               <phase>prepare-package</phase>
266               <goals>
267                 <goal>copy-dependencies</goal>
268               </goals>
269               <configuration>
270                 <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
271                 <excludeArtifactIds>distribution.vtn-coordinator</excludeArtifactIds>
272                 <overWriteReleases>false</overWriteReleases>
273                 <overWriteSnapshots>true</overWriteSnapshots>
274                 <overWriteIfNewer>true</overWriteIfNewer>
275                 <useRepositoryLayout>true</useRepositoryLayout>
276                 <addParentPoms>true</addParentPoms>
277                 <copyPom>true</copyPom>
278               </configuration>
279             </execution>
280         </executions>
281       </plugin>
282       <plugin>
283         <groupId>org.apache.maven.plugins</groupId>
284         <artifactId>maven-antrun-plugin</artifactId>
285         <executions>
286             <execution>
287                 <phase>prepare-package</phase>
288                 <goals>
289                     <goal>run</goal>
290                 </goals>
291                 <configuration>
292                   <tasks>
293                     <chmod perm="755">
294                         <fileset dir="${project.build.directory}/assembly/bin">
295                           <include name="karaf"/>
296                           <include name="instance"/>
297                           <include name="start"/>
298                           <include name="stop"/>
299                           <include name="status"/>
300                           <include name="client"/>
301                           <include name="shell"/>
302                         </fileset>
303                     </chmod>
304                     <!-- Remove this once Karaf provides a new-enough version of Aries Proxy -->
305                     <replace dir="${project.build.directory}/assembly/etc"
306                              token="org.apache.aries.proxy.impl/1.0.4"
307                              value="org.apache.aries.proxy.impl/1.0.5">
308                       <include name="startup.properties"/>
309                     </replace>
310                   </tasks>
311                 </configuration>
312             </execution>
313         </executions>
314       </plugin>
315     </plugins>
316   </build>
317   <scm>
318     <connection>scm:git:http://git.opendaylight.org/gerrit/controller.git</connection>
319     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
320     <tag>HEAD</tag>
321     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
322   </scm>
323 </project>

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.