1 <?xml version="1.0" encoding="UTF-8"?>
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 --><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">
7 <modelVersion>4.0.0</modelVersion>
9 <artifactId>packetcable</artifactId>
10 <groupId>org.opendaylight.packetcable</groupId>
11 <version>1.2.0-SNAPSHOT</version>
14 Necessary TODO: Hookup your parent pom here, else you will not get necessary versions,
15 maven repos etc. If you run this archetype in a subdirectory of your project, it
16 will pick the pom.xml from the parent directory as the parent pom, which may or may
19 <artifactId>features-packetcable</artifactId>
20 <groupId>org.opendaylight.packetcable</groupId>
21 <!-- Optional Uncomment version if you are not using a parent pom.xml
22 <version>1.2.0-SNAPSHOT</version>
24 <packaging>jar</packaging>
26 <features.file>features.xml</features.file>
27 <!-- Optional: Move these properties to your parent pom and possibly
28 DependencyManagement section of your parent pom -->
29 <branding.version>1.1.0-SNAPSHOT</branding.version>
30 <karaf.resources.version>1.5.0-SNAPSHOT</karaf.resources.version>
31 <karaf.empty.version>1.5.0-SNAPSHOT</karaf.empty.version>
32 <surefire.version>2.16</surefire.version>
36 Necessary: Put dependencies on any feature repos
37 you use in your features.xml file.
39 Note: they will need to be <type>xml</xml>
40 and <classifier>features</classifier>.
41 One other thing to watch for is to make sure they are
42 <scope>compile</compile>, which they should be by default,
43 but be cautious lest they be at a different scope in a parent pom.
48 <groupId>org.opendaylight.yangtools</groupId>
49 <artifactId>features-yangtools</artifactId>
50 <version>0.7.0-SNAPSHOT</version>
51 <classifier>features</classifier>
55 <groupId>org.opendaylight.controller</groupId>
56 <artifactId>features-mdsal</artifactId>
57 <version>1.2.0-SNAPSHOT</version>
58 <classifier>features</classifier>
62 <groupId>org.opendaylight.packetcable</groupId>
63 <artifactId>packetcable-config</artifactId>
64 <version>${project.version}</version>
65 <classifier>config</classifier>
69 <groupId>org.opendaylight.openflowplugin</groupId>
70 <artifactId>features-openflowplugin</artifactId>
71 <version>${openflowplugin.version}</version>
72 <classifier>features</classifier>
80 Necessary TODO: Put dependencies for bundles directly referenced
81 in your features.xml file. For every <bundle> reference in your
82 features.xml file, you need a corresponding dependency here.
87 <groupId>org.opendaylight.packetcable</groupId>
88 <artifactId>packetcable-consumer</artifactId>
89 <version>${project.version}</version>
92 <groupId>org.opendaylight.packetcable</groupId>
93 <artifactId>packetcable-provider</artifactId>
94 <version>${project.version}</version>
97 <groupId>org.opendaylight.packetcable</groupId>
98 <artifactId>packetcable-model</artifactId>
99 <version>${project.version}</version>
102 <groupId>org.opendaylight.packetcable</groupId>
103 <artifactId>packetcable-driver</artifactId>
104 <version>${project.version}</version>
108 Put dependencies for configfiles directly referenced
109 in your features.xml file. For every <configfile> reference in your
110 features.xml file, you need a corresponding dependency here.
112 Example (presuming here version is coming from the parent pom):
114 <groupId>org.opendaylight.packetcable</groupId>
115 <artifactId>packetcable-config</artifactId>
116 <version>${project.version}</version>
118 <classifier>config</classifier>
123 Optional TODO: Remove TODO comments.
125 <!-- test to validate features.xml -->
127 <groupId>org.opendaylight.odlparent</groupId>
128 <artifactId>features-test</artifactId>
131 <!-- dependency for opendaylight-karaf-empty for use by testing -->
133 <groupId>org.opendaylight.controller</groupId>
134 <artifactId>opendaylight-karaf-empty</artifactId>
135 <version>${karaf.empty.version}</version>
138 <!-- Uncomment this if you get an error : java.lang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple;
140 <groupId>org.slf4j</groupId>
141 <artifactId>slf4j-simple</artifactId>
142 <version>1.7.2</version>
150 <directory>src/main/resources</directory>
151 <filtering>true</filtering>
156 <groupId>org.apache.maven.plugins</groupId>
157 <artifactId>maven-resources-plugin</artifactId>
161 <phase>generate-resources</phase>
163 <goal>resources</goal>
169 <groupId>org.codehaus.mojo</groupId>
170 <artifactId>build-helper-maven-plugin</artifactId>
173 <id>attach-artifacts</id>
174 <phase>package</phase>
176 <goal>attach-artifact</goal>
181 <file>${project.build.directory}/classes/${features.file}</file>
183 <classifier>features</classifier>
191 <groupId>org.apache.maven.plugins</groupId>
192 <artifactId>maven-surefire-plugin</artifactId>
193 <version>${surefire.version}</version>
195 <systemPropertyVariables>
196 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
197 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
198 <karaf.distro.version>${karaf.empty.version}</karaf.distro.version>
199 </systemPropertyVariables>
201 <dependency>org.opendaylight.odlparent:features-test</dependency>
202 </dependenciesToScan>
208 <connection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</connection>
209 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</developerConnection>
211 <url>https://git.opendaylight.org/gerrit/gitweb?p=packetcable.git;a=summary</url>