Start openflowplugin-artifacts
[openflowplugin.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     <groupId>org.opendaylight.openflowplugin</groupId>
6     <artifactId>openflowplugin-parent</artifactId>
7     <version>0.1.0-SNAPSHOT</version>
8     <relativePath>../../</relativePath>
9   </parent>
10   <artifactId>openflowplugin-karaf</artifactId>
11   <packaging>pom</packaging>
12   <prerequisites>
13     <maven>3.0</maven>
14   </prerequisites>
15   <properties>
16     <branding.version>1.1.0-SNAPSHOT</branding.version>
17     <karaf.resources.version>1.5.0-SNAPSHOT</karaf.resources.version>
18   </properties>
19
20   <dependencies>
21     <dependency>
22       <!-- scope is compile so all features (there is only one) are installed
23             into startup.properties and the feature repo itself is not installed -->
24       <groupId>org.apache.karaf.features</groupId>
25       <artifactId>framework</artifactId>
26       <version>${karaf.version}</version>
27       <type>kar</type>
28     </dependency>
29     <!-- scope is runtime so the feature repo is listed in the features
30       service config file, and features may be installed using the
31       karaf-maven-plugin configuration -->
32     <dependency>
33       <groupId>org.apache.karaf.features</groupId>
34       <artifactId>standard</artifactId>
35       <version>${karaf.version}</version>
36       <classifier>features</classifier>
37       <type>xml</type>
38       <scope>runtime</scope>
39     </dependency>
40
41     <!-- ODL Branding -->
42     <dependency>
43       <groupId>org.opendaylight.controller</groupId>
44       <artifactId>karaf.branding</artifactId>
45       <version>${branding.version}</version>
46       <scope>compile</scope>
47     </dependency>
48
49     <!-- Resources needed -->
50     <dependency>
51       <groupId>org.opendaylight.controller</groupId>
52       <artifactId>opendaylight-karaf-resources</artifactId>
53       <version>${karaf.resources.version}</version>
54     </dependency>
55
56     <!-- openflowplugin feature -->
57     <dependency>
58       <artifactId>features-openflowplugin</artifactId>
59       <groupId>org.opendaylight.openflowplugin</groupId>
60       <classifier>features</classifier>
61       <type>xml</type>
62       <scope>runtime</scope>
63     </dependency>
64     <!-- MD-SAL Related Features -->
65     <dependency>
66       <groupId>org.opendaylight.controller</groupId>
67       <artifactId>features-mdsal</artifactId>
68       <version>${mdsal.version}</version>
69       <classifier>features</classifier>
70       <type>xml</type>
71       <scope>runtime</scope>
72     </dependency>
73     <!-- openflowplugin extension feature -->
74     <dependency>
75       <groupId>org.opendaylight.openflowplugin</groupId>
76       <artifactId>features-openflowplugin-extension</artifactId>
77       <classifier>features</classifier>
78       <type>xml</type>
79       <scope>runtime</scope>
80     </dependency>
81   </dependencies>
82
83   <build>
84     <pluginManagement>
85       <plugins>
86         <plugin>
87           <groupId>org.eclipse.m2e</groupId>
88           <artifactId>lifecycle-mapping</artifactId>
89           <version>1.0.0</version>
90           <configuration>
91             <lifecycleMappingMetadata>
92               <pluginExecutions>
93                 <pluginExecution>
94                   <pluginExecutionFilter>
95                     <groupId>org.apache.felix</groupId>
96                     <artifactId>maven-bundle-plugin</artifactId>
97                     <versionRange>[0,)</versionRange>
98                     <goals>
99                       <goal>cleanVersions</goal>
100                     </goals>
101                   </pluginExecutionFilter>
102                   <action>
103                     <ignore></ignore>
104                   </action>
105                 </pluginExecution>
106                 <pluginExecution>
107                   <pluginExecutionFilter>
108                     <groupId>org.apache.maven.plugins</groupId>
109                     <artifactId>maven-dependency-plugin</artifactId>
110                     <versionRange>[0,)</versionRange>
111                     <goals>
112                       <goal>copy</goal>
113                       <goal>unpack</goal>
114                     </goals>
115                   </pluginExecutionFilter>
116                   <action>
117                     <ignore></ignore>
118                   </action>
119                 </pluginExecution>
120                 <pluginExecution>
121                   <pluginExecutionFilter>
122                     <groupId>org.apache.karaf.tooling</groupId>
123                     <artifactId>karaf-maven-plugin</artifactId>
124                     <versionRange>[0,)</versionRange>
125                     <goals>
126                       <goal>commands-generate-help</goal>
127                     </goals>
128                   </pluginExecutionFilter>
129                   <action>
130                     <ignore></ignore>
131                   </action>
132                 </pluginExecution>
133                 <pluginExecution>
134                   <pluginExecutionFilter>
135                     <groupId>org.fusesource.scalate</groupId>
136                     <artifactId>maven-scalate-plugin</artifactId>
137                     <versionRange>[0,)</versionRange>
138                     <goals>
139                       <goal>sitegen</goal>
140                     </goals>
141                   </pluginExecutionFilter>
142                   <action>
143                     <ignore></ignore>
144                   </action>
145                 </pluginExecution>
146                 <pluginExecution>
147                   <pluginExecutionFilter>
148                     <groupId>org.apache.servicemix.tooling</groupId>
149                     <artifactId>depends-maven-plugin</artifactId>
150                     <versionRange>[0,)</versionRange>
151                     <goals>
152                       <goal>generate-depends-file</goal>
153                     </goals>
154                   </pluginExecutionFilter>
155                   <action>
156                     <ignore></ignore>
157                   </action>
158                 </pluginExecution>
159               </pluginExecutions>
160             </lifecycleMappingMetadata>
161           </configuration>
162         </plugin>
163       </plugins>
164     </pluginManagement>
165     <plugins>
166       <plugin>
167         <groupId>org.apache.karaf.tooling</groupId>
168         <artifactId>karaf-maven-plugin</artifactId>
169         <version>${karaf.version}</version>
170         <extensions>true</extensions>
171         <configuration>
172           <!-- no startupFeatures -->
173           <bootFeatures>
174             <feature>standard</feature>
175             <feature>odl-openflowplugin-flow-services-rest</feature>
176             <feature>odl-restconf</feature>
177           </bootFeatures>
178           <!-- no installedFeatures -->
179         </configuration>
180         <executions>
181           <execution>
182             <id>process-resources</id>
183             <goals>
184               <goal>install-kars</goal>
185             </goals>
186             <phase>process-resources</phase>
187           </execution>
188           <execution>
189             <id>package</id>
190             <goals>
191               <goal>instance-create-archive</goal>
192             </goals>
193           </execution>
194         </executions>
195       </plugin>
196       <plugin>
197         <groupId>org.apache.maven.plugins</groupId>
198         <artifactId>maven-checkstyle-plugin</artifactId>
199         <version>${checkstyle.version}</version>
200         <configuration>
201           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
202         </configuration>
203       </plugin>
204       <plugin>
205         <groupId>org.apache.maven.plugins</groupId>
206         <artifactId>maven-dependency-plugin</artifactId>
207         <version>2.6</version>
208         <executions>
209           <execution>
210             <id>copy</id>
211             <goals>
212               <goal>copy</goal>
213             </goals>
214             <!-- here the phase you need -->
215             <phase>generate-resources</phase>
216             <configuration>
217               <artifactItems>
218                 <artifactItem>
219                   <groupId>org.opendaylight.controller</groupId>
220                   <artifactId>karaf.branding</artifactId>
221                   <version>${karaf.branding.version}</version>
222                   <outputDirectory>target/assembly/lib</outputDirectory>
223                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
224                 </artifactItem>
225               </artifactItems>
226             </configuration>
227           </execution>
228           <execution>
229             <id>unpack-karaf-resources</id>
230             <goals>
231               <goal>unpack-dependencies</goal>
232             </goals>
233             <phase>prepare-package</phase>
234             <configuration>
235              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
236              <groupId>org.opendaylight.controller</groupId>
237              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
238              <excludes>META-INF\/**</excludes>
239              <excludeTransitive>true</excludeTransitive>
240              <ignorePermissions>false</ignorePermissions>
241             </configuration>
242           </execution>
243           <execution>
244             <id>copy-dependencies</id>
245             <phase>prepare-package</phase>
246             <goals>
247               <goal>copy-dependencies</goal>
248             </goals>
249             <configuration>
250               <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
251               <overWriteReleases>false</overWriteReleases>
252               <overWriteSnapshots>true</overWriteSnapshots>
253               <overWriteIfNewer>true</overWriteIfNewer>
254               <useRepositoryLayout>true</useRepositoryLayout>
255               <addParentPoms>true</addParentPoms>
256               <copyPom>true</copyPom>
257             </configuration>
258           </execution>
259         </executions>
260       </plugin>
261       <plugin>
262         <groupId>org.apache.maven.plugins</groupId>
263         <artifactId>maven-antrun-plugin</artifactId>
264         <executions>
265             <execution>
266                 <phase>prepare-package</phase>
267                 <goals>
268                     <goal>run</goal>
269                 </goals>
270                 <configuration>
271                   <tasks>
272                     <chmod perm="755">
273                         <fileset dir="${project.build.directory}/assembly/bin">
274                           <include name="karaf"/>
275                           <include name="instance"/>
276                         </fileset>
277                     </chmod>
278                   </tasks>
279                 </configuration>
280             </execution>
281         </executions>
282       </plugin>
283     </plugins>
284   </build>
285   <scm>
286     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
287     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
288     <tag>HEAD</tag>
289     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
290   </scm>
291 </project>