Adjustment to features missing from merge
[packetcable.git] / features-packetcable / 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 --><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>
8    <parent>
9     <artifactId>packetcable</artifactId>
10     <groupId>org.opendaylight.packetcable</groupId>
11     <version>1.1-SNAPSHOT</version>
12   </parent>
13    <!--
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
17     not be correct.
18   -->
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.1-SNAPSHOT</version>
23    -->
24    <packaging>jar</packaging>
25    <properties>
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.0.0-SNAPSHOT</branding.version>
30       <karaf.resources.version>1.4.2-SNAPSHOT</karaf.resources.version>
31       <karaf.version>3.0.1</karaf.version>
32       <feature.test.version>0.6.2-SNAPSHOT</feature.test.version>
33       <karaf.empty.version>1.4.2-SNAPSHOT</karaf.empty.version>
34       <surefire.version>2.16</surefire.version>
35    </properties>
36    <dependencies>
37     <!--
38       Necessary: Put dependencies on any feature repos
39       you use in your features.xml file.
40
41       Note: they will need to be <type>xml</xml>
42       and <classifier>features</classifier>.
43       One other thing to watch for is to make sure they are
44       <scope>compile</compile>, which they should be by default,
45       but be cautious lest they be at a different scope in a parent pom.
46
47       Examples:
48     -->
49         <dependency>
50           <groupId>org.opendaylight.yangtools</groupId>
51           <artifactId>features-yangtools</artifactId>
52           <version>0.6.2-SNAPSHOT</version>
53           <classifier>features</classifier>
54           <type>xml</type>
55         </dependency>
56         <dependency>
57           <groupId>org.opendaylight.controller</groupId>
58           <artifactId>features-mdsal</artifactId>
59           <version>1.1-SNAPSHOT</version>
60           <classifier>features</classifier>
61           <type>xml</type>
62         </dependency>
63       <dependency>
64       <groupId>org.opendaylight.controller</groupId>
65       <artifactId>features-flow</artifactId>
66       <version>${mdsal.version}</version>
67       <classifier>features</classifier>
68       <type>xml</type>
69       </dependency>
70
71
72
73     <!--
74       Necessary TODO: Put dependencies for bundles directly referenced
75       in your features.xml file.  For every <bundle> reference in your
76       features.xml file, you need a corresponding dependency here.
77
78       Examples:
79     -->
80       <dependency>
81         <groupId>org.opendaylight.packetcable</groupId>
82         <artifactId>packetcable-provider</artifactId>
83         <version>${project.version}</version>
84       </dependency>
85       <dependency>
86         <groupId>org.opendaylight.packetcable</groupId>
87         <artifactId>packetcable-model</artifactId>
88         <version>${project.version}</version>
89       </dependency>
90       <dependency>
91         <groupId>org.opendaylight.packetcable</groupId>
92         <artifactId>packetcable-driver</artifactId>
93         <version>${project.version}</version>
94       </dependency>
95
96     <!--
97       Put dependencies for configfiles directly referenced
98       in your features.xml file.  For every <configfile> reference in your
99       features.xml file, you need a corresponding dependency here.
100
101       Example (presuming here version is coming from the parent pom):
102       <dependency>
103         <groupId>org.opendaylight.packetcable</groupId>
104         <artifactId>packetcable-config</artifactId>
105         <version>${project.version}</version>
106         <type>xml</type>
107         <classifier>config</classifier>
108       </dependency>
109     -->
110
111     <!--
112       Optional TODO: Remove TODO comments.
113     -->
114     <!-- test to validate features.xml -->
115     <dependency>
116       <groupId>org.opendaylight.yangtools</groupId>
117       <artifactId>features-test</artifactId>
118       <version>${feature.test.version}</version>
119       <scope>test</scope>
120     </dependency>
121     <!-- dependency for opendaylight-karaf-empty for use by testing -->
122     <dependency>
123       <groupId>org.opendaylight.controller</groupId>
124       <artifactId>opendaylight-karaf-empty</artifactId>
125       <version>${karaf.empty.version}</version>
126       <type>zip</type>
127     </dependency>
128     <!-- 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;
129     <dependency>
130       <groupId>org.slf4j</groupId>
131       <artifactId>slf4j-simple</artifactId>
132       <version>1.7.2</version>
133     </dependency>
134     -->
135
136    </dependencies>
137    <build>
138       <resources>
139          <resource>
140             <directory>src/main/resources</directory>
141             <filtering>true</filtering>
142          </resource>
143       </resources>
144       <plugins>
145          <plugin>
146             <groupId>org.apache.maven.plugins</groupId>
147             <artifactId>maven-resources-plugin</artifactId>
148             <executions>
149                <execution>
150                   <id>filter</id>
151                   <phase>generate-resources</phase>
152                   <goals>
153                      <goal>resources</goal>
154                   </goals>
155                </execution>
156             </executions>
157          </plugin>
158          <plugin>
159             <groupId>org.codehaus.mojo</groupId>
160             <artifactId>build-helper-maven-plugin</artifactId>
161             <executions>
162                <execution>
163                   <id>attach-artifacts</id>
164                   <phase>package</phase>
165                   <goals>
166                      <goal>attach-artifact</goal>
167                   </goals>
168                   <configuration>
169                      <artifacts>
170                         <artifact>
171                            <file>${project.build.directory}/classes/${features.file}</file>
172                            <type>xml</type>
173                            <classifier>features</classifier>
174                         </artifact>
175                      </artifacts>
176                   </configuration>
177                </execution>
178             </executions>
179          </plugin>
180          <plugin>
181             <groupId>org.apache.maven.plugins</groupId>
182             <artifactId>maven-surefire-plugin</artifactId>
183             <version>${surefire.version}</version>
184             <configuration>
185               <systemPropertyVariables>
186                 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
187                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
188                 <karaf.distro.version>${karaf.empty.version}</karaf.distro.version>
189               </systemPropertyVariables>
190               <dependenciesToScan>
191                <dependency>org.opendaylight.yangtools:features-test</dependency>
192               </dependenciesToScan>
193             </configuration>
194           </plugin>
195       </plugins>
196    </build>
197    <scm>
198       <connection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</connection>
199       <developerConnection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</developerConnection>
200       <tag>HEAD</tag>
201       <url>https://git.opendaylight.org/gerrit/gitweb?p=packetcable.git;a=summary</url>
202    </scm>
203 </project>