fca8fc197d130a18a86fec073c4c0f43fdab198a
[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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
2     <modelVersion>4.0.0</modelVersion>
3     <parent>
4         <groupId>org.opendaylight.openflowjava</groupId>
5         <artifactId>openflow-protocol-parent</artifactId>
6         <version>0.3</version>
7     </parent>
8     <artifactId>openflow-protocol-api</artifactId>
9     <packaging>bundle</packaging>
10     <name>Openflow Protocol Library - API</name>
11     <scm>
12         <url>https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Main</url>
13       <tag>openflow-protocol-parent-0.3</tag>
14   </scm>
15
16     <properties>
17         <yangtools.version>0.6.1</yangtools.version>
18         <yangtools.generator.version>0.6.1</yangtools.generator.version>
19         <yangtools.binding.version>0.6.1</yangtools.binding.version>
20     </properties>
21
22     <build>
23         <plugins>
24             <plugin>
25                 <groupId>org.opendaylight.yangtools</groupId>
26                 <artifactId>yang-maven-plugin</artifactId>
27                 <version>${yangtools.version}</version>
28                 <executions>
29                     <execution>
30                         <goals>
31                             <goal>generate-sources</goal>
32                         </goals>
33                         <configuration>
34                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
35                             <codeGenerators>
36                                 <generator>
37                                     <codeGeneratorClass>
38                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
39                                     </codeGeneratorClass>
40                                     <outputBaseDir>
41                                         target/generated-sources/sal
42                                     </outputBaseDir>
43                                 </generator>
44                                 <generator>
45                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
46                                     <outputBaseDir>target/site/restconf</outputBaseDir>
47                                 </generator>
48                             </codeGenerators>
49                             <inspectDependencies>true</inspectDependencies>
50                         </configuration>
51                     </execution>
52                 </executions>
53
54                 <dependencies>
55                     <dependency>
56                         <groupId>org.opendaylight.yangtools</groupId>
57                         <artifactId>maven-sal-api-gen-plugin</artifactId>
58                         <version>${yangtools.generator.version}</version>
59                         <type>jar</type>
60                     </dependency>
61                 </dependencies>
62             </plugin>
63             <plugin>
64                 <groupId>org.codehaus.mojo</groupId>
65                 <artifactId>build-helper-maven-plugin</artifactId>
66                 <version>1.7</version>
67                 <executions>
68                     <execution>
69                         <phase>generate-sources</phase>
70                         <goals>
71                             <goal>add-source</goal>
72                         </goals>
73                         <configuration>
74                             <sources>
75                                 <source>target/generated-sources/sal</source>
76                             </sources>
77                         </configuration>
78                     </execution>
79                 </executions>
80             </plugin>
81         </plugins>
82         <pluginManagement>
83             <plugins>
84                 <!--This plugin's configuration is used to store Eclipse 
85                     m2e settings only. It has no influence on the Maven build itself. -->
86                 <plugin>
87                     <groupId>org.eclipse.m2e</groupId>
88                     <artifactId>lifecycle-mapping</artifactId>
89                     <version>1.0.0</version>
90                     <configuration>
91                         <lifecycleMappingMetadata>
92                             <pluginExecutions>
93                                 <pluginExecution>
94                                     <pluginExecutionFilter>
95                                         <groupId>
96                                             org.opendaylight.yangtools
97                                         </groupId>
98                                         <artifactId>
99                                             yang-maven-plugin
100                                         </artifactId>
101                                         <versionRange>
102                                             (0.5.6,)
103                                         </versionRange>
104                                         <goals>
105                                             <goal>
106                                                 generate-sources
107                                             </goal>
108                                         </goals>
109                                     </pluginExecutionFilter>
110                                     <action>
111                                         <ignore />
112                                     </action>
113                                 </pluginExecution>
114                             </pluginExecutions>
115                         </lifecycleMappingMetadata>
116                     </configuration>
117                 </plugin>
118             </plugins>
119         </pluginManagement>
120     </build>
121     <dependencies>
122         <dependency>
123             <groupId>org.opendaylight.yangtools</groupId>
124             <artifactId>yang-binding</artifactId>
125             <version>${yangtools.binding.version}</version>
126         </dependency>
127         <dependency>
128             <groupId>org.opendaylight.yangtools</groupId>
129             <artifactId>yang-common</artifactId>
130             <version>${yangtools.version}</version>
131         </dependency>
132         <dependency>
133             <groupId>org.opendaylight.yangtools.model</groupId>
134             <artifactId>ietf-inet-types</artifactId>
135             <version>2010.09.24.3</version>
136         </dependency>
137         <dependency>
138             <groupId>org.opendaylight.yangtools.model</groupId>
139             <artifactId>ietf-yang-types</artifactId>
140             <version>2010.09.24.3</version>
141         </dependency>
142         <dependency>
143             <groupId>org.opendaylight.controller.model</groupId>
144             <artifactId>model-flow-service</artifactId>
145             <version>1.0</version>
146         </dependency>
147         <dependency>
148             <groupId>junit</groupId>
149             <artifactId>junit</artifactId>
150             <scope>test</scope>
151         </dependency>
152     </dependencies>
153 </project>