Change opendaylight-karaf-distro-archetype to use karaf-parent
[controller.git] / opendaylight / archetypes / opendaylight-karaf-distro-archetype / src / main / resources / archetype-resources / 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>karaf-parent</artifactId>
7     <version>1.7.0-SNAPSHOT</version>
8     <relativePath/>
9   </parent>
10
11   <groupId>${groupId}</groupId>
12   <artifactId>${artifactId}</artifactId>
13   <version>${version}</version>
14   <packaging>pom</packaging>
15   <name>${project.artifactId}</name>
16
17   <prerequisites>
18     <maven>3.1.1</maven>
19   </prerequisites>
20
21   <properties>
22     <!-- If you want a feature included with the featuresBoot in
23          etc/org.apache.karaf.features.cfg, uncomment karaf.localFeature and set
24          to your feature.
25     <karaf.localFeature>odl-${artifactId}-ui</karaf.localFeature>
26     -->
27   </properties>
28
29   <dependencies>
30     <!-- scope is compile so all features (there is only one) are installed
31          into startup.properties and the feature repo itself is not installed -->
32     <dependency>
33       <groupId>org.apache.karaf.features</groupId>
34       <artifactId>framework</artifactId>
35       <type>kar</type>
36     </dependency>
37
38     <!-- Project local feautures -->
39     <!--
40       Necessary TODO put your features here.
41
42       Note: they will need to be <type>xml</xml>
43       and <classifier>features</classifier>.
44
45       Note: they must be <scope>runtime</scope>
46
47       Note: usually you would only need to depend
48       on your own feature file here for your local distro,
49       and possible the features-mdsal for odl-restconf
50       (although, strange situations do exist :) )
51
52       Example:
53       <dependency>
54         <groupId>org.opendaylight.controller</groupId>
55         <artifactId>features-mdsal</artifactId>
56         <classifier>features</classifier>
57         <type>xml</type>
58         <scope>runtime</scope>
59       </dependency>
60       <dependency>
61         <groupId>org.opendaylight.openflowplugin</groupId>
62         <artifactId>features-openflowplugin</artifactId>
63         <version>0.3.0-SNAPSHOT</version>
64         <classifier>features</classifier>
65         <type>xml</type>
66         <scope>runtime</scope>
67       </dependency>
68     -->
69   </dependencies>
70
71   <build>
72     <plugins>
73       <!-- DO NOT deploy the karaf artifact -->
74       <plugin>
75         <groupId>org.apache.maven.plugins</groupId>
76         <artifactId>maven-deploy-plugin</artifactId>
77         <configuration>
78           <skip>true</skip>
79         </configuration>
80       </plugin>
81     </plugins>
82   </build>
83
84   <scm>
85     <connection>scm:git:ssh://git.opendaylight.org:29418/${repoName}.git</connection>
86     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/${repoName}.git</developerConnection>
87     <tag>HEAD</tag>
88     <url>https://git.opendaylight.org/gerrit/gitweb?p=${repoName}.git;a=summary</url>
89   </scm>
90 </project>