Merge "Added documentation to yang-binding, updated dependencies."
[mdsal.git] / model / 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
3     <parent>
4         <groupId>org.opendaylight.yangtools</groupId>
5         <artifactId>yangtools</artifactId>
6         <version>0.1.1-SNAPSHOT</version>
7     </parent>
8
9     <modelVersion>4.0.0</modelVersion>
10     <groupId>org.opendaylight.yangtools.model</groupId>
11     <artifactId>model-parent</artifactId>
12     <version>0.1.1-SNAPSHOT</version>
13     <packaging>pom</packaging>
14     <name>${project.artifactId}</name>
15     <description>${project.artifactId}</description>
16
17     <properties>
18         <yang.version>0.5.8-SNAPSHOT</yang.version>
19         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20     </properties>
21
22     <modules>
23         <module>yang-ext</module>
24         <module>iana</module>
25         <module>ietf</module>
26         <!-- <module>model-topology-bgp</module> -->
27         <module>l2-types</module>
28     </modules>
29
30     <build>
31         <plugins>
32             <plugin>
33                 <groupId>org.opendaylight.yangtools</groupId>
34                 <artifactId>yang-maven-plugin</artifactId>
35                 <version>0.5.9-SNAPSHOT</version>
36                 <executions>
37                     <execution>
38                         <goals>
39                             <goal>generate-sources</goal>
40                         </goals>
41                         <configuration>
42                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
43                             <codeGenerators>
44                                 <generator>
45                                     <codeGeneratorClass>
46                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
47                                     </codeGeneratorClass>
48                                     <outputBaseDir>
49                                         target/generated-sources/sal
50                                     </outputBaseDir>
51                                 </generator>
52                             </codeGenerators>
53                             <inspectDependencies>true</inspectDependencies>
54                         </configuration>
55                     </execution>
56                 </executions>
57                 <dependencies>
58                     <dependency>
59                         <groupId>org.opendaylight.yangtools</groupId>
60                         <artifactId>maven-sal-api-gen-plugin</artifactId>
61                         <version>0.6.0-SNAPSHOT</version>
62                         <type>jar</type>
63                     </dependency>
64                 </dependencies>
65             </plugin>
66             <plugin>
67                 <groupId>org.codehaus.mojo</groupId>
68                 <artifactId>build-helper-maven-plugin</artifactId>
69                 <version>1.7</version>
70                 <executions>
71                     <execution>
72                         <phase>generate-sources</phase>
73                         <goals>
74                             <goal>add-source</goal>
75                         </goals>
76                         <configuration>
77                             <sources>
78                                 <source>target/generated-sources/sal</source>
79                             </sources>
80                         </configuration>
81                     </execution>
82                 </executions>
83             </plugin>
84         </plugins>
85         <pluginManagement>
86             <plugins>
87                 <!--This plugin's configuration is used to store Eclipse 
88                     m2e settings only. It has no influence on the Maven build itself. -->
89                 <plugin>
90                     <groupId>org.eclipse.m2e</groupId>
91                     <artifactId>lifecycle-mapping</artifactId>
92                     <version>1.0.0</version>
93                     <configuration>
94                         <lifecycleMappingMetadata>
95                             <pluginExecutions>
96                                 <pluginExecution>
97                                     <pluginExecutionFilter>
98                                         <groupId>org.opendaylight.yangtools</groupId>
99                                         <artifactId>yang-maven-plugin</artifactId>
100                                         <versionRange>[0.5,)</versionRange>
101                                         <goals>
102                                             <goal>
103                                                 generate-sources
104                                             </goal>
105                                         </goals>
106                                     </pluginExecutionFilter>
107                                     <action>
108                                         <ignore />
109                                     </action>
110                                 </pluginExecution>
111                                 <pluginExecution>
112                                     <pluginExecutionFilter>
113                                         <groupId>org.apache.felix</groupId>
114                                         <artifactId>maven-bundle-plugin</artifactId>
115                                         <versionRange>[1.0,)</versionRange>
116                                         <goals>
117                                             <goal>manifest</goal>
118                                         </goals>
119                                     </pluginExecutionFilter>
120                                     <action>
121                                         <execute />
122                                     </action>
123                                 </pluginExecution>
124                             </pluginExecutions>
125                         </lifecycleMappingMetadata>
126                     </configuration>
127                 </plugin>
128             </plugins>
129         </pluginManagement>
130     </build>
131
132     <dependencies>
133         <dependency>
134             <groupId>org.opendaylight.yangtools</groupId>
135             <artifactId>yang-binding</artifactId>
136             <version>0.5.9-SNAPSHOT</version>
137         </dependency>
138         <dependency>
139             <groupId>org.opendaylight.yangtools</groupId>
140             <artifactId>yang-common</artifactId>
141             <version>0.5.9-SNAPSHOT</version>
142         </dependency>
143     </dependencies>
144
145 </project>