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