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