Start openflowplugin-artifacts
[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         <classifier>features</classifier>\r
77         <type>xml</type>\r
78       </dependency>\r
79 \r
80     <!--\r
81       Necessary TODO: Put dependencies for bundles directly referenced\r
82       in your features.xml file.  For every <bundle> reference in your\r
83       features.xml file, you need a corresponding dependency here.\r
84 \r
85       Examples:\r
86       <dependency>\r
87         <groupId>org.opendaylight.controller</groupId>\r
88         <artifactId>controller-provider</artifactId>\r
89         <version>${project.version}</version>\r
90       </dependency>\r
91       <dependency>\r
92         <groupId>org.opendaylight.controller</groupId>\r
93         <artifactId>controller-model</artifactId>\r
94         <version>${project.version}</version>\r
95       </dependency>\r
96     -->\r
97       <dependency>\r
98         <groupId>org.opendaylight.openflowplugin.legacy</groupId>\r
99         <artifactId>sal-compatibility</artifactId>\r
100       </dependency>\r
101 \r
102     <!--\r
103       Necessary TODO: Put dependencies for configfiles directly referenced\r
104       in your features.xml file.  For every <configfile> reference in your\r
105       features.xml file, you need a corresponding dependency here.\r
106 \r
107       Example (presuming here version is coming from the parent pom):\r
108       <dependency>\r
109         <groupId>org.opendaylight.controller</groupId>\r
110         <artifactId>controller-config</artifactId>\r
111         <version>${project.version}</version>\r
112         <type>xml</type>\r
113         <classifier>config</classifier>\r
114       </dependency>\r
115     -->\r
116 \r
117     <!--\r
118       Optional TODO: Remove TODO comments.\r
119     -->\r
120     <!-- test to validate features.xml -->\r
121     <dependency>\r
122       <groupId>org.opendaylight.odlparent</groupId>\r
123       <artifactId>features-test</artifactId>\r
124       <scope>test</scope>\r
125     </dependency>\r
126     <!-- dependency for opendaylight-karaf-empty for use by testing -->\r
127     <dependency>\r
128       <groupId>org.opendaylight.controller</groupId>\r
129       <artifactId>opendaylight-karaf-empty</artifactId>\r
130       <version>${karaf.distro.empty.version}</version>\r
131       <type>zip</type>\r
132     </dependency>\r
133     <!-- 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
134     <dependency>\r
135       <groupId>org.slf4j</groupId>\r
136       <artifactId>slf4j-simple</artifactId>\r
137       <version>1.7.2</version>\r
138     </dependency>\r
139     -->\r
140 \r
141    </dependencies>\r
142    <build>\r
143       <resources>\r
144          <resource>\r
145             <directory>src/main/resources</directory>\r
146             <filtering>true</filtering>\r
147          </resource>\r
148       </resources>\r
149       <plugins>\r
150          <plugin>\r
151             <groupId>org.apache.maven.plugins</groupId>\r
152             <artifactId>maven-resources-plugin</artifactId>\r
153             <executions>\r
154                <execution>\r
155                   <id>filter</id>\r
156                   <phase>generate-resources</phase>\r
157                   <goals>\r
158                      <goal>resources</goal>\r
159                   </goals>\r
160                </execution>\r
161             </executions>\r
162          </plugin>\r
163          <plugin>\r
164             <groupId>org.codehaus.mojo</groupId>\r
165             <artifactId>build-helper-maven-plugin</artifactId>\r
166             <executions>\r
167                <execution>\r
168                   <id>attach-artifacts</id>\r
169                   <phase>package</phase>\r
170                   <goals>\r
171                      <goal>attach-artifact</goal>\r
172                   </goals>\r
173                   <configuration>\r
174                      <artifacts>\r
175                         <artifact>\r
176                            <file>${project.build.directory}/classes/${features.file}</file>\r
177                            <type>xml</type>\r
178                            <classifier>features</classifier>\r
179                         </artifact>\r
180                      </artifacts>\r
181                   </configuration>\r
182                </execution>\r
183             </executions>\r
184          </plugin>\r
185          <plugin>\r
186             <groupId>org.apache.maven.plugins</groupId>\r
187             <artifactId>maven-surefire-plugin</artifactId>\r
188             <configuration>\r
189               <systemPropertyVariables>\r
190                 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>\r
191                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>\r
192                 <karaf.distro.version>${karaf.distro.empty.version}</karaf.distro.version>\r
193               </systemPropertyVariables>\r
194               <dependenciesToScan>\r
195                <dependency>org.opendaylight.odlparent:features-test</dependency>\r
196               </dependenciesToScan>\r
197             </configuration>\r
198           </plugin>\r
199       </plugins>\r
200    </build>\r
201 \r
202    <scm>\r
203      <connection>scm:git:ssh://git.opendaylight.org:29418/openflowplugin.git</connection>\r
204      <developerConnection>scm:git:ssh://git.opendaylight.org:29418/openflowplugin.git</developerConnection>\r
205      <url>https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin:Main</url>\r
206      <tag>HEAD</tag>\r
207    </scm>\r
208 \r
209 </project>\r