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