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