bug 1128:POM Restructuring for Automated Release
[yangtools.git] / model / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <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">
11
12     <parent>
13         <groupId>org.opendaylight.yangtools</groupId>
14         <artifactId>yangtools-parent</artifactId>
15         <version>0.6.2-SNAPSHOT</version>
16         <relativePath>../common/parent</relativePath>
17     </parent>
18     <groupId>org.opendaylight.yangtools.model</groupId>
19     <!--<version>0.6.2-SNAPSHOT</version>-->
20     <modelVersion>4.0.0</modelVersion>
21     <artifactId>model-parent</artifactId>
22     <packaging>pom</packaging>
23     <name>${project.artifactId}</name>
24     <description>${project.artifactId}</description>
25
26     <modules>
27         <module>yang-ext</module>
28         <module>iana</module>
29         <module>ietf</module>
30         <module>l2-types</module>
31     </modules>
32
33     <build>
34         <plugins>
35             <plugin>
36                 <groupId>org.opendaylight.yangtools</groupId>
37                 <artifactId>yang-maven-plugin</artifactId>
38                 <version>0.6.2-SNAPSHOT</version>
39                 <executions>
40                     <execution>
41                         <goals>
42                             <goal>generate-sources</goal>
43                         </goals>
44                         <configuration>
45                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
46                             <codeGenerators>
47                                 <generator>
48                                     <codeGeneratorClass>
49                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
50                                     </codeGeneratorClass>
51                                     <outputBaseDir>
52                                         target/generated-sources/sal
53                                     </outputBaseDir>
54                                 </generator>
55                                 <generator>
56                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
57                                     <outputBaseDir>target/site/restconf</outputBaseDir>
58                                 </generator>
59                                 <generator>
60                                     <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
61                                     <outputBaseDir>target/site/restconf</outputBaseDir>
62                                 </generator>
63                             </codeGenerators>
64                             <inspectDependencies>true</inspectDependencies>
65                         </configuration>
66                     </execution>
67                 </executions>
68                 <dependencies>
69                     <dependency>
70                         <groupId>org.opendaylight.yangtools</groupId>
71                         <artifactId>maven-sal-api-gen-plugin</artifactId>
72                         <version>0.6.2-SNAPSHOT</version>
73                         <type>jar</type>
74                     </dependency>
75                 </dependencies>
76             </plugin>
77             <plugin>
78                 <groupId>org.codehaus.mojo</groupId>
79                 <artifactId>build-helper-maven-plugin</artifactId>
80                 <version>1.8</version>
81                 <executions>
82                     <execution>
83                         <phase>generate-sources</phase>
84                         <goals>
85                             <goal>add-source</goal>
86                         </goals>
87                         <configuration>
88                             <sources>
89                                 <source>target/generated-sources/sal</source>
90                             </sources>
91                         </configuration>
92                     </execution>
93                 </executions>
94             </plugin>
95         </plugins>
96     </build>
97
98     <dependencies>
99         <dependency>
100             <groupId>org.opendaylight.yangtools</groupId>
101             <artifactId>yang-binding</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>org.opendaylight.yangtools</groupId>
105             <artifactId>yang-common</artifactId>
106         </dependency>
107     </dependencies>
108 </project>