Replaced bitwise operator usage with java lang APIs for robustness. Had found that...
[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.3.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.3.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.2.0-SNAPSHOT</branding.version>
30       <karaf.resources.version>1.6.0-SNAPSHOT</karaf.resources.version>
31       <karaf.empty.version>1.6.0-SNAPSHOT</karaf.empty.version>
32       <surefire.version>2.16</surefire.version>
33    </properties>
34    <dependencies>
35     <!--
36       Necessary: Put dependencies on any feature repos
37       you use in your features.xml file.
38
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.
44
45       Examples:
46     -->
47         <dependency>
48           <groupId>org.opendaylight.yangtools</groupId>
49           <artifactId>features-yangtools</artifactId>
50           <version>0.8.0-SNAPSHOT</version>
51           <classifier>features</classifier>
52           <type>xml</type>
53         </dependency>
54         <dependency>
55           <groupId>org.opendaylight.controller</groupId>
56           <artifactId>features-mdsal</artifactId>
57           <version>1.3.0-SNAPSHOT</version>
58           <classifier>features</classifier>
59           <type>xml</type>
60         </dependency>
61         <dependency>
62           <groupId>org.opendaylight.packetcable</groupId>
63           <artifactId>packetcable-config</artifactId>
64           <version>${project.version}</version>
65           <classifier>config</classifier>
66           <type>xml</type>
67         </dependency>
68         <dependency>
69           <groupId>org.opendaylight.openflowplugin</groupId>
70           <artifactId>features-openflowplugin</artifactId>
71           <version>${openflowplugin.version}</version>
72           <classifier>features</classifier>
73           <type>xml</type>
74         </dependency>
75
76
77
78
79     <!--
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.
83
84       Examples:
85     -->
86       <dependency>
87         <groupId>org.opendaylight.packetcable</groupId>
88         <artifactId>packetcable-consumer</artifactId>
89         <version>${project.version}</version>
90       </dependency>
91       <dependency>
92         <groupId>org.opendaylight.packetcable</groupId>
93         <artifactId>packetcable-provider</artifactId>
94         <version>${project.version}</version>
95       </dependency>
96       <dependency>
97         <groupId>org.opendaylight.packetcable</groupId>
98         <artifactId>packetcable-model</artifactId>
99         <version>${project.version}</version>
100       </dependency>
101       <dependency>
102         <groupId>org.opendaylight.packetcable</groupId>
103         <artifactId>packetcable-driver</artifactId>
104         <version>${project.version}</version>
105       </dependency>
106
107     <!--
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.
111
112       Example (presuming here version is coming from the parent pom):
113       <dependency>
114         <groupId>org.opendaylight.packetcable</groupId>
115         <artifactId>packetcable-config</artifactId>
116         <version>${project.version}</version>
117         <type>xml</type>
118         <classifier>config</classifier>
119       </dependency>
120     -->
121
122     <!--
123       Optional TODO: Remove TODO comments.
124     -->
125     <!-- test to validate features.xml -->
126     <dependency>
127       <groupId>org.opendaylight.odlparent</groupId>
128       <artifactId>features-test</artifactId>
129       <scope>test</scope>
130     </dependency>
131     <!-- dependency for opendaylight-karaf-empty for use by testing -->
132     <dependency>
133       <groupId>org.opendaylight.controller</groupId>
134       <artifactId>opendaylight-karaf-empty</artifactId>
135       <version>${karaf.empty.version}</version>
136       <type>zip</type>
137     </dependency>
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;
139     <dependency>
140       <groupId>org.slf4j</groupId>
141       <artifactId>slf4j-simple</artifactId>
142       <version>1.7.2</version>
143     </dependency>
144     -->
145
146    </dependencies>
147    <build>
148       <resources>
149          <resource>
150             <directory>src/main/resources</directory>
151             <filtering>true</filtering>
152          </resource>
153       </resources>
154       <plugins>
155          <plugin>
156             <groupId>org.apache.maven.plugins</groupId>
157             <artifactId>maven-resources-plugin</artifactId>
158             <executions>
159                <execution>
160                   <id>filter</id>
161                   <phase>generate-resources</phase>
162                   <goals>
163                      <goal>resources</goal>
164                   </goals>
165                </execution>
166             </executions>
167          </plugin>
168          <plugin>
169             <groupId>org.codehaus.mojo</groupId>
170             <artifactId>build-helper-maven-plugin</artifactId>
171             <executions>
172                <execution>
173                   <id>attach-artifacts</id>
174                   <phase>package</phase>
175                   <goals>
176                      <goal>attach-artifact</goal>
177                   </goals>
178                   <configuration>
179                      <artifacts>
180                         <artifact>
181                            <file>${project.build.directory}/classes/${features.file}</file>
182                            <type>xml</type>
183                            <classifier>features</classifier>
184                         </artifact>
185                      </artifacts>
186                   </configuration>
187                </execution>
188             </executions>
189          </plugin>
190          <plugin>
191             <groupId>org.apache.maven.plugins</groupId>
192             <artifactId>maven-surefire-plugin</artifactId>
193             <version>${surefire.version}</version>
194             <configuration>
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>
200               <dependenciesToScan>
201                <dependency>org.opendaylight.odlparent:features-test</dependency>
202               </dependenciesToScan>
203             </configuration>
204           </plugin>
205       </plugins>
206    </build>
207    <scm>
208       <connection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</connection>
209       <developerConnection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</developerConnection>
210       <tag>HEAD</tag>
211       <url>https://git.opendaylight.org/gerrit/gitweb?p=packetcable.git;a=summary</url>
212    </scm>
213 </project>