80e5103f1ab16b7e8440c47fc891a9c93c5b6ab4
[openflowjava.git] / openflow-protocol-api / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3     <modelVersion>4.0.0</modelVersion>
4     <parent>
5         <groupId>org.opendaylight.mdsal</groupId>
6         <artifactId>binding-parent</artifactId>
7         <version>0.8.0-SNAPSHOT</version>
8         <relativePath/>
9     </parent>
10     <groupId>org.opendaylight.openflowjava</groupId>
11     <artifactId>openflow-protocol-api</artifactId>
12     <version>0.7.0-SNAPSHOT</version>
13     <packaging>bundle</packaging>
14     <name>Openflow Protocol Library - API</name>
15     <scm>
16         <url>https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Main</url>
17         <tag>HEAD</tag>
18     </scm>
19
20     <properties>
21       <mdsal.version>2.0.0-SNAPSHOT</mdsal.version>
22       <mdsal.model.version>0.8.0-SNAPSHOT</mdsal.model.version>
23     </properties>
24
25     <dependencyManagement>
26       <dependencies>
27       <!-- MD-SAL -->
28         <dependency>
29           <groupId>org.opendaylight.mdsal</groupId>
30           <artifactId>mdsal-artifacts</artifactId>
31           <version>${mdsal.version}</version>
32           <scope>import</scope>
33           <type>pom</type>
34         </dependency>
35
36         <dependency>
37           <groupId>org.opendaylight.mdsal.model</groupId>
38           <artifactId>mdsal-model-artifacts</artifactId>
39           <version>${mdsal.model.version}</version>
40           <scope>import</scope>
41           <type>pom</type>
42         </dependency>
43       </dependencies>
44     </dependencyManagement>
45
46     <build>
47       <plugins>
48             <!-- TODO: maven-antrun-plugin deletes yang source files from target.
49                        This is done because otherwise openflowjava models are stored in controller
50                        and exposed for further use - which is not desired.
51                        (https://bugs.opendaylight.org/show_bug.cgi?id=2926)
52
53                        This plugin should be removed after relevant configuration is added into 
54                        yang-maven-plugin - which is supposed to happen in BERYLLIUM release -->
55             <plugin>
56                 <groupId>org.apache.maven.plugins</groupId>
57                 <artifactId>maven-antrun-plugin</artifactId>
58                 <executions>
59                     <execution>
60                         <phase>prepare-package</phase>
61                         <goals>
62                             <goal>run</goal>
63                         </goals>
64                         <configuration>
65                             <tasks>
66                                 <delete>
67                                     <fileset dir="${project.build.directory}/classes/META-INF/yang">
68                                         <include name="*.yang"/>
69                                         <exclude name="openflow-types.yang"/>
70                                         <exclude name="openflow-extensible-match.yang"/>
71                                         <exclude name="openflow-action.yang"/>
72                                         <exclude name="openflow-configuration.yang"/>
73                                     </fileset>
74                                     <fileset dir="${project.build.directory}/generated-sources/yang/META-INF/yang">
75                                         <include name="*.yang"/>
76                                         <exclude name="openflow-types.yang"/>
77                                         <exclude name="openflow-extensible-match.yang"/>
78                                         <exclude name="openflow-action.yang"/>
79                                         <exclude name="openflow-configuration.yang"/>
80                                     </fileset>
81                                 </delete>
82                             </tasks>
83                         </configuration>
84                     </execution>
85                 </executions>
86             </plugin>
87         </plugins>
88     </build>
89     <dependencies>
90         <dependency>
91             <groupId>org.opendaylight.mdsal</groupId>
92             <artifactId>yang-binding</artifactId>
93         </dependency>
94         <dependency>
95             <groupId>org.opendaylight.yangtools</groupId>
96             <artifactId>yang-common</artifactId>
97         </dependency>
98         <dependency>
99             <groupId>org.opendaylight.mdsal.model</groupId>
100             <artifactId>ietf-inet-types</artifactId>
101         </dependency>
102         <dependency>
103             <groupId>org.opendaylight.mdsal.model</groupId>
104             <artifactId>ietf-yang-types</artifactId>
105         </dependency>
106         <dependency>
107             <groupId>org.opendaylight.mdsal.model</groupId>
108             <artifactId>yang-ext</artifactId>
109         </dependency>
110         <dependency>
111             <groupId>io.netty</groupId>
112             <artifactId>netty-buffer</artifactId>
113         </dependency>
114         <dependency>
115             <groupId>junit</groupId>
116             <artifactId>junit</artifactId>
117             <scope>test</scope>
118         </dependency>
119         <dependency>
120             <groupId>org.mockito</groupId>
121             <artifactId>mockito-all</artifactId>
122         </dependency>
123     </dependencies>
124 </project>