Merge "Added reusable string codecs to yang-data-impl"
[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                                 <generator>
52                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
53                                     <outputBaseDir>target/generated-sources/site</outputBaseDir>
54                                 </generator>
55                             </codeGenerators>
56                             <inspectDependencies>true</inspectDependencies>
57                         </configuration>
58                     </execution>
59                 </executions>
60                 <dependencies>
61                     <dependency>
62                         <groupId>org.opendaylight.yangtools</groupId>
63                         <artifactId>maven-sal-api-gen-plugin</artifactId>
64                         <version>0.6.0-SNAPSHOT</version>
65                         <type>jar</type>
66                     </dependency>
67                 </dependencies>
68             </plugin>
69             <plugin>
70                 <groupId>org.codehaus.mojo</groupId>
71                 <artifactId>build-helper-maven-plugin</artifactId>
72                 <version>1.7</version>
73                 <executions>
74                     <execution>
75                         <phase>generate-sources</phase>
76                         <goals>
77                             <goal>add-source</goal>
78                         </goals>
79                         <configuration>
80                             <sources>
81                                 <source>target/generated-sources/sal</source>
82                             </sources>
83                         </configuration>
84                     </execution>
85                 </executions>
86             </plugin>
87         </plugins>
88         <pluginManagement>
89             <plugins>
90                 <!--This plugin's configuration is used to store Eclipse 
91                     m2e settings only. It has no influence on the Maven build itself. -->
92                 <plugin>
93                     <groupId>org.eclipse.m2e</groupId>
94                     <artifactId>lifecycle-mapping</artifactId>
95                     <version>1.0.0</version>
96                     <configuration>
97                         <lifecycleMappingMetadata>
98                             <pluginExecutions>
99                                 <pluginExecution>
100                                     <pluginExecutionFilter>
101                                         <groupId>org.opendaylight.yangtools</groupId>
102                                         <artifactId>yang-maven-plugin</artifactId>
103                                         <versionRange>[0.5,)</versionRange>
104                                         <goals>
105                                             <goal>
106                                                 generate-sources
107                                             </goal>
108                                         </goals>
109                                     </pluginExecutionFilter>
110                                     <action>
111                                         <ignore />
112                                     </action>
113                                 </pluginExecution>
114                                 <pluginExecution>
115                                     <pluginExecutionFilter>
116                                         <groupId>org.apache.felix</groupId>
117                                         <artifactId>maven-bundle-plugin</artifactId>
118                                         <versionRange>[1.0,)</versionRange>
119                                         <goals>
120                                             <goal>manifest</goal>
121                                         </goals>
122                                     </pluginExecutionFilter>
123                                     <action>
124                                         <execute />
125                                     </action>
126                                 </pluginExecution>
127                             </pluginExecutions>
128                         </lifecycleMappingMetadata>
129                     </configuration>
130                 </plugin>
131             </plugins>
132         </pluginManagement>
133     </build>
134
135     <dependencies>
136         <dependency>
137             <groupId>org.opendaylight.yangtools</groupId>
138             <artifactId>yang-binding</artifactId>
139             <version>0.6.0-SNAPSHOT</version>
140         </dependency>
141         <dependency>
142             <groupId>org.opendaylight.yangtools</groupId>
143             <artifactId>yang-common</artifactId>
144             <version>0.5.9-SNAPSHOT</version>
145         </dependency>
146     </dependencies>
147
148 </project>