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