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