6ee75491acdd3b9032d2d00f99a0df769b6b7f63
[packetcable.git] / features-packetcable-policy / 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-policy</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-policy-config</artifactId>
64           <version>${project.version}</version>
65           <classifier>config</classifier>
66           <type>xml</type>
67         </dependency>
68
69
70
71
72     <!--
73       Necessary TODO: Put dependencies for bundles directly referenced
74       in your features.xml file.  For every <bundle> reference in your
75       features.xml file, you need a corresponding dependency here.
76
77       Examples:
78     -->
79       <dependency>
80         <groupId>org.opendaylight.packetcable</groupId>
81         <artifactId>packetcable-policy-server</artifactId>
82         <version>${project.version}</version>
83       </dependency>
84       <dependency>
85         <groupId>org.opendaylight.packetcable</groupId>
86         <artifactId>packetcable-policy-model</artifactId>
87         <version>${project.version}</version>
88       </dependency>
89       <dependency>
90         <groupId>org.opendaylight.packetcable</groupId>
91         <artifactId>packetcable-driver</artifactId>
92         <version>${project.version}</version>
93       </dependency>
94     <!-- test to validate features.xml -->
95     <dependency>
96       <groupId>org.opendaylight.odlparent</groupId>
97       <artifactId>features-test</artifactId>
98       <scope>test</scope>
99     </dependency>
100     <!-- dependency for opendaylight-karaf-empty for use by testing -->
101     <dependency>
102       <groupId>org.opendaylight.controller</groupId>
103       <artifactId>opendaylight-karaf-empty</artifactId>
104       <version>${karaf.empty.version}</version>
105       <type>zip</type>
106     </dependency>
107     <!-- 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;
108     <dependency>
109       <groupId>org.slf4j</groupId>
110       <artifactId>slf4j-simple</artifactId>
111       <version>1.7.2</version>
112     </dependency>
113     -->
114
115    </dependencies>
116    <build>
117       <resources>
118          <resource>
119             <directory>src/main/resources</directory>
120             <filtering>true</filtering>
121          </resource>
122       </resources>
123       <plugins>
124          <plugin>
125             <groupId>org.apache.maven.plugins</groupId>
126             <artifactId>maven-resources-plugin</artifactId>
127             <executions>
128                <execution>
129                   <id>filter</id>
130                   <phase>generate-resources</phase>
131                   <goals>
132                      <goal>resources</goal>
133                   </goals>
134                </execution>
135             </executions>
136          </plugin>
137          <plugin>
138             <groupId>org.codehaus.mojo</groupId>
139             <artifactId>build-helper-maven-plugin</artifactId>
140             <executions>
141                <execution>
142                   <id>attach-artifacts</id>
143                   <phase>package</phase>
144                   <goals>
145                      <goal>attach-artifact</goal>
146                   </goals>
147                   <configuration>
148                      <artifacts>
149                         <artifact>
150                            <file>${project.build.directory}/classes/${features.file}</file>
151                            <type>xml</type>
152                            <classifier>features</classifier>
153                         </artifact>
154                      </artifacts>
155                   </configuration>
156                </execution>
157             </executions>
158          </plugin>
159          <plugin>
160             <groupId>org.apache.maven.plugins</groupId>
161             <artifactId>maven-surefire-plugin</artifactId>
162             <version>${surefire.version}</version>
163             <configuration>
164               <systemPropertyVariables>
165                 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
166                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
167                 <karaf.distro.version>${karaf.empty.version}</karaf.distro.version>
168               </systemPropertyVariables>
169               <dependenciesToScan>
170                <dependency>org.opendaylight.odlparent:features-test</dependency>
171               </dependenciesToScan>
172             </configuration>
173           </plugin>
174       </plugins>
175    </build>
176    <scm>
177       <connection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</connection>
178       <developerConnection>scm:git:ssh://git.opendaylight.org:29418/packetcable.git</developerConnection>
179       <tag>HEAD</tag>
180       <url>https://git.opendaylight.org/gerrit/gitweb?p=packetcable.git;a=summary</url>
181    </scm>
182 </project>