Merge "BUG 2335 : Add jolokia feature"
[controller.git] / features / extras / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  This program and the accompanying materials are made available under the
4  terms of the Eclipse Public License v1.0 which accompanies this distribution,
5  and is available at http://www.eclipse.org/legal/epl-v10.html
6 -->
7
8 <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">
9     <modelVersion>4.0.0</modelVersion>
10     <parent>
11         <groupId>org.opendaylight.controller</groupId>
12         <artifactId>commons.opendaylight</artifactId>
13         <version>1.5.0-SNAPSHOT</version>
14         <relativePath>../../opendaylight/commons/opendaylight</relativePath>
15     </parent>
16     <artifactId>features-extras</artifactId>
17     <groupId>org.opendaylight.controller</groupId>
18     <packaging>jar</packaging>
19     <properties>
20         <features.file>features.xml</features.file>
21         <!-- Optional TODO: Move these properties to your parent pom and possibly
22               DependencyManagement section of your parent pom -->
23         <branding.version>1.1.0-SNAPSHOT</branding.version>
24         <karaf.resources.version>1.5.0-SNAPSHOT</karaf.resources.version>
25         <karaf.version>3.0.1</karaf.version>
26         <feature.test.version>0.7.0-SNAPSHOT</feature.test.version>
27         <karaf.empty.version>1.5.0-SNAPSHOT</karaf.empty.version>
28         <surefire.version>2.16</surefire.version>
29     </properties>
30     <dependencies>
31         <dependency>
32             <groupId>org.jolokia</groupId>
33             <artifactId>jolokia-osgi</artifactId>
34             <version>${jolokia.version}</version>
35         </dependency>
36         <dependency>
37             <groupId>org.opendaylight.yangtools</groupId>
38             <artifactId>features-test</artifactId>
39             <version>${feature.test.version}</version>
40             <scope>test</scope>
41         </dependency>
42         <!-- dependency for opendaylight-karaf-empty for use by testing -->
43         <dependency>
44             <groupId>org.opendaylight.controller</groupId>
45             <artifactId>opendaylight-karaf-empty</artifactId>
46             <version>${karaf.empty.version}</version>
47             <type>zip</type>
48         </dependency>
49     </dependencies>
50     <build>
51         <resources>
52             <resource>
53                 <directory>src/main/resources</directory>
54                 <filtering>true</filtering>
55             </resource>
56         </resources>
57         <plugins>
58             <plugin>
59                 <groupId>org.apache.maven.plugins</groupId>
60                 <artifactId>maven-resources-plugin</artifactId>
61                 <executions>
62                     <execution>
63                         <id>filter</id>
64                         <phase>generate-resources</phase>
65                         <goals>
66                             <goal>resources</goal>
67                         </goals>
68                     </execution>
69                 </executions>
70             </plugin>
71             <plugin>
72                 <groupId>org.codehaus.mojo</groupId>
73                 <artifactId>build-helper-maven-plugin</artifactId>
74                 <executions>
75                     <execution>
76                         <id>attach-artifacts</id>
77                         <phase>package</phase>
78                         <goals>
79                             <goal>attach-artifact</goal>
80                         </goals>
81                         <configuration>
82                             <artifacts>
83                                 <artifact>
84                                     <file>${project.build.directory}/classes/${features.file}</file>
85                                     <type>xml</type>
86                                     <classifier>features</classifier>
87                                 </artifact>
88                             </artifacts>
89                         </configuration>
90                     </execution>
91                 </executions>
92             </plugin>
93             <plugin>
94                 <groupId>org.apache.maven.plugins</groupId>
95                 <artifactId>maven-surefire-plugin</artifactId>
96                 <version>${surefire.version}</version>
97                 <configuration>
98                     <systemPropertyVariables>
99                         <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
100                         <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
101                         <karaf.distro.version>${karaf.empty.version}</karaf.distro.version>
102                     </systemPropertyVariables>
103                     <dependenciesToScan>
104                         <dependency>org.opendaylight.yangtools:features-test</dependency>
105                     </dependenciesToScan>
106                 </configuration>
107             </plugin>
108         </plugins>
109     </build>
110     <scm>
111         <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
112         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
113         <tag>HEAD</tag>
114         <url>https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=summary</url>
115     </scm>
116 </project>