2874122ac1613d7734b7b71291dad7b6f24af924
[controller.git] / opendaylight / md-sal / model / 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
4     <parent>
5         <groupId>org.opendaylight.controller</groupId>
6         <artifactId>sal-parent</artifactId>
7         <version>1.0-SNAPSHOT</version>
8     </parent>
9     <scm>
10       <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
11       <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
12       <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:MD-SAL</url>
13     </scm>
14
15     <modelVersion>4.0.0</modelVersion>
16     <groupId>org.opendaylight.controller.model</groupId>
17     <artifactId>model-parent</artifactId>
18     <version>1.0-SNAPSHOT</version>
19     <packaging>pom</packaging>
20
21     <properties>
22         <yang.version>0.5.7-SNAPSHOT</yang.version>
23         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24         <maven.bundle.version>2.4.0</maven.bundle.version>
25     </properties>
26
27     <modules>
28         <module>model-inventory</module>
29         <module>model-flow-base</module>
30         <module>model-flow-service</module>
31         <module>model-flow-statistics</module>
32         <!-- <module>model-topology-bgp</module> -->
33     </modules>
34
35     <build>
36         <plugins>
37             <plugin>
38                 <groupId>org.apache.felix</groupId>
39                 <artifactId>maven-bundle-plugin</artifactId>
40                 <version>${maven.bundle.version}</version>
41                 <extensions>true</extensions>
42                 <configuration>
43                     <instructions>
44                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
45                     </instructions>
46                 </configuration>
47             </plugin>
48             <plugin>
49                 <groupId>org.opendaylight.yangtools</groupId>
50                 <artifactId>yang-maven-plugin</artifactId>
51                 <version>${yang.version}</version>
52                 <executions>
53                     <execution>
54                         <goals>
55                             <goal>generate-sources</goal>
56                         </goals>
57                         <configuration>
58                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
59                             <codeGenerators>
60                                 <generator>
61                                     <codeGeneratorClass>
62                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
63                                     </codeGeneratorClass>
64                                     <outputBaseDir>
65                                         target/generated-sources/sal
66                                     </outputBaseDir>
67                                 </generator>
68                             </codeGenerators>
69                             <inspectDependencies>true</inspectDependencies>
70                         </configuration>
71                     </execution>
72                 </executions>
73                 <dependencies>
74                     <dependency>
75                         <groupId>org.opendaylight.yangtools</groupId>
76                         <artifactId>maven-sal-api-gen-plugin</artifactId>
77                         <version>0.5.7-SNAPSHOT</version>
78                         <type>jar</type>
79                     </dependency>
80                 </dependencies>
81             </plugin>
82             <plugin>
83                 <groupId>org.codehaus.mojo</groupId>
84                 <artifactId>build-helper-maven-plugin</artifactId>
85                 <version>1.7</version>
86                 <executions>
87                     <execution>
88                         <phase>generate-sources</phase>
89                         <goals>
90                             <goal>add-source</goal>
91                         </goals>
92                         <configuration>
93                             <sources>
94                                 <source>target/generated-sources/sal</source>
95                             </sources>
96                         </configuration>
97                     </execution>
98                 </executions>
99             </plugin>
100         </plugins>
101         <pluginManagement>
102             <plugins>
103                 <!--This plugin's configuration is used to store Eclipse 
104                     m2e settings only. It has no influence on the Maven build itself. -->
105                 <plugin>
106                     <groupId>org.eclipse.m2e</groupId>
107                     <artifactId>lifecycle-mapping</artifactId>
108                     <version>1.0.0</version>
109                     <configuration>
110                         <lifecycleMappingMetadata>
111                             <pluginExecutions>
112                                 <pluginExecution>
113                                     <pluginExecutionFilter>
114                                         <groupId>
115                                             org.opendaylight.yangtools
116                                         </groupId>
117                                         <artifactId>
118                                             yang-maven-plugin
119                                         </artifactId>
120                                         <versionRange>
121                                             [0.5,)
122                                         </versionRange>
123                                         <goals>
124                                             <goal>
125                                                 generate-sources
126                                             </goal>
127                                         </goals>
128                                     </pluginExecutionFilter>
129                                     <action>
130                                         <ignore></ignore>
131                                     </action>
132                                 </pluginExecution>
133                             </pluginExecutions>
134                         </lifecycleMappingMetadata>
135                     </configuration>
136                 </plugin>
137             </plugins>
138         </pluginManagement>
139     </build>
140
141     <dependencies>
142         <dependency>
143             <groupId>org.opendaylight.yangtools</groupId>
144             <artifactId>yang-binding</artifactId>
145             <version>${yang.version}</version>
146         </dependency>
147         <dependency>
148             <groupId>org.opendaylight.yangtools</groupId>
149             <artifactId>yang-common</artifactId>
150             <version>${yang.version}</version>
151         </dependency>
152         <dependency>
153             <groupId>org.opendaylight.yangtools.model</groupId>
154             <artifactId>ietf-inet-types</artifactId>
155             <version>2010.09.24-SNAPSHOT</version>
156         </dependency>
157         <dependency>
158             <groupId>org.opendaylight.yangtools.model</groupId>
159             <artifactId>ietf-yang-types</artifactId>
160             <version>2010.09.24-SNAPSHOT</version>
161         </dependency>
162         <dependency>
163             <groupId>org.opendaylight.yangtools</groupId>
164             <artifactId>yang-ext</artifactId>
165             <version>2013.09.07-SNAPSHOT</version>
166         </dependency>
167     </dependencies>
168
169 </project>