Fixed yangtools feature repo, bug with base and lang3 property version
[controller.git] / opendaylight / distribution / 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.4.2-SNAPSHOT</version>
8     <relativePath>../../commons/opendaylight</relativePath>
9   </parent>
10   <artifactId>distribution.opendaylight-karaf</artifactId>
11   <packaging>pom</packaging>
12   <prerequisites>
13     <maven>3.0</maven>
14   </prerequisites>
15
16   <dependencies>
17     <dependency>
18       <!-- scope is compile so all features (there is only one) are installed
19             into startup.properties and the feature repo itself is not installed -->
20       <groupId>org.apache.karaf.features</groupId>
21       <artifactId>framework</artifactId>
22       <version>${karaf.version}</version>
23       <type>kar</type>
24     </dependency>
25     <dependency>
26       <groupId>org.opendaylight.controller</groupId>
27       <artifactId>karaf.branding</artifactId>
28       <scope>compile</scope>
29     </dependency>
30     <!-- scope is runtime so the feature repo is listed in the features
31       service config file, and features may be installed using the
32       karaf-maven-plugin configuration -->
33     <dependency>
34       <groupId>org.apache.karaf.features</groupId>
35       <artifactId>standard</artifactId>
36       <version>${karaf.version}</version>
37       <classifier>features</classifier>
38       <type>xml</type>
39       <scope>runtime</scope>
40     </dependency>
41     <!-- scope is compile so all features (there is only one) are installed
42             into startup.properties and the feature repo itself is not installed -->
43     <dependency>
44       <groupId>org.opendaylight.controller</groupId>
45       <artifactId>base-features</artifactId>
46       <version>${project.version}</version>
47       <type>pom</type>
48       <scope>runtime</scope>
49     </dependency>
50     <dependency>
51       <groupId>org.opendaylight.controller</groupId>
52       <artifactId>config-features</artifactId>
53       <version>${config.version}</version>
54       <classifier>features</classifier>
55       <type>xml</type>
56       <scope>runtime</scope>
57     </dependency>
58     <!--<dependency>
59       <groupId>org.opendaylight.controller</groupId>
60       <artifactId>base-features</artifactId>
61       <version>${project.version}</version>
62       <classifier>features</classifier>
63       <type>xml</type>
64       <scope>runtime</scope>
65     </dependency>-->
66     <!-- <dependency>
67       <groupId>org.opendaylight.controller</groupId>
68       <artifactId>controller-features</artifactId>
69       <version>${project.version}</version>
70       <classifier>features</classifier>
71       <type>xml</type>
72       <scope>runtime</scope>
73     </dependency>
74   -->
75     <dependency>
76       <groupId>org.opendaylight.controller</groupId>
77       <artifactId>mdsal-features</artifactId>
78       <version>${mdsal.version}</version>
79       <classifier>features</classifier>
80       <type>xml</type>
81       <scope>runtime</scope>
82     </dependency>
83     <dependency>
84       <groupId>org.opendaylight.yangtools</groupId>
85       <artifactId>features-yangtools</artifactId>
86       <version>${yangtools.version}</version>
87       <classifier>features</classifier>
88       <type>xml</type>
89       <scope>runtime</scope>
90     </dependency>
91   </dependencies>
92
93   <build>
94     <pluginManagement>
95       <plugins>
96         <plugin>
97           <groupId>org.eclipse.m2e</groupId>
98           <artifactId>lifecycle-mapping</artifactId>
99           <version>1.0.0</version>
100           <configuration>
101             <lifecycleMappingMetadata>
102               <pluginExecutions>
103                 <pluginExecution>
104                   <pluginExecutionFilter>
105                     <groupId>org.apache.felix</groupId>
106                     <artifactId>maven-bundle-plugin</artifactId>
107                     <versionRange>[0,)</versionRange>
108                     <goals>
109                       <goal>cleanVersions</goal>
110                     </goals>
111                   </pluginExecutionFilter>
112                   <action>
113                     <ignore></ignore>
114                   </action>
115                 </pluginExecution>
116                 <pluginExecution>
117                   <pluginExecutionFilter>
118                     <groupId>org.apache.maven.plugins</groupId>
119                     <artifactId>maven-dependency-plugin</artifactId>
120                     <versionRange>[0,)</versionRange>
121                     <goals>
122                       <goal>copy</goal>
123                       <goal>unpack</goal>
124                     </goals>
125                   </pluginExecutionFilter>
126                   <action>
127                     <ignore></ignore>
128                   </action>
129                 </pluginExecution>
130                 <pluginExecution>
131                   <pluginExecutionFilter>
132                     <groupId>org.apache.karaf.tooling</groupId>
133                     <artifactId>karaf-maven-plugin</artifactId>
134                     <versionRange>[0,)</versionRange>
135                     <goals>
136                       <goal>commands-generate-help</goal>
137                     </goals>
138                   </pluginExecutionFilter>
139                   <action>
140                     <ignore></ignore>
141                   </action>
142                 </pluginExecution>
143                 <pluginExecution>
144                   <pluginExecutionFilter>
145                     <groupId>org.fusesource.scalate</groupId>
146                     <artifactId>maven-scalate-plugin</artifactId>
147                     <versionRange>[0,)</versionRange>
148                     <goals>
149                       <goal>sitegen</goal>
150                     </goals>
151                   </pluginExecutionFilter>
152                   <action>
153                     <ignore></ignore>
154                   </action>
155                 </pluginExecution>
156                 <pluginExecution>
157                   <pluginExecutionFilter>
158                     <groupId>org.apache.servicemix.tooling</groupId>
159                     <artifactId>depends-maven-plugin</artifactId>
160                     <versionRange>[0,)</versionRange>
161                     <goals>
162                       <goal>generate-depends-file</goal>
163                     </goals>
164                   </pluginExecutionFilter>
165                   <action>
166                     <ignore></ignore>
167                   </action>
168                 </pluginExecution>
169               </pluginExecutions>
170             </lifecycleMappingMetadata>
171           </configuration>
172         </plugin>
173       </plugins>
174     </pluginManagement>
175     <plugins>
176       <plugin>
177         <groupId>org.apache.karaf.tooling</groupId>
178         <artifactId>karaf-maven-plugin</artifactId>
179         <version>${karaf.version}</version>
180         <extensions>true</extensions>
181         <configuration>
182           <!-- no startupFeatures -->
183           <bootFeatures>
184             <feature>standard</feature>
185           </bootFeatures>
186           <!-- no installedFeatures -->
187         </configuration>
188         <executions>
189           <execution>
190             <id>process-resources</id>
191             <goals>
192               <goal>install-kars</goal>
193             </goals>
194             <phase>process-resources</phase>
195           </execution>
196           <execution>
197             <id>package</id>
198             <goals>
199               <goal>instance-create-archive</goal>
200             </goals>
201           </execution>
202         </executions>
203       </plugin>
204       <plugin>
205         <groupId>org.apache.maven.plugins</groupId>
206         <artifactId>maven-checkstyle-plugin</artifactId>
207         <version>${checkstyle.version}</version>
208         <configuration>
209           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
210         </configuration>
211       </plugin>
212       <plugin>
213         <groupId>org.apache.maven.plugins</groupId>
214         <artifactId>maven-dependency-plugin</artifactId>
215         <version>2.6</version>
216         <executions>
217           <execution>
218             <id>copy</id>
219             <goals>
220               <goal>copy</goal>
221             </goals>
222             <!-- here the phase you need -->
223             <phase>generate-resources</phase>
224             <configuration>
225               <artifactItems>
226                 <artifactItem>
227                   <groupId>org.opendaylight.controller</groupId>
228                   <artifactId>karaf.branding</artifactId>
229                   <version>${karaf.branding.version}</version>
230                   <outputDirectory>target/assembly/lib</outputDirectory>
231                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
232                 </artifactItem>
233               </artifactItems>
234             </configuration>
235           </execution>
236         </executions>
237       </plugin>
238     </plugins>
239   </build>
240   <scm>
241     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
242     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
243     <tag>HEAD</tag>
244     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
245   </scm>
246 </project>