Merge "Added iana-if-type and iana-afn-safi models."
[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     <groupId>org.opendaylight.yangtools.model</groupId>
12     <artifactId>model-parent</artifactId>
13     <version>0.5.7-SNAPSHOT</version>
14     <packaging>pom</packaging>
15     <name>${project.artifactId}</name>
16     <description>${project.artifactId}</description>
17
18     <properties>
19         <yang.version>0.5.7-SNAPSHOT</yang.version>
20         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21         <maven.bundle.version>2.4.0</maven.bundle.version>
22     </properties>
23
24     <modules>
25         <module>iana</module>
26         <module>ietf</module>
27         <!-- <module>model-topology-bgp</module> -->
28     </modules>
29
30     <build>
31         <plugins>
32             <plugin>
33                 <groupId>org.apache.felix</groupId>
34                 <artifactId>maven-bundle-plugin</artifactId>
35                 <version>${maven.bundle.version}</version>
36                 <extensions>true</extensions>
37                 <configuration>
38                     <instructions>
39                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
40                     </instructions>
41                 </configuration>
42             </plugin>
43             <plugin>
44                 <groupId>org.opendaylight.yangtools</groupId>
45                 <artifactId>yang-maven-plugin</artifactId>
46                 <version>${yang.version}</version>
47                 <executions>
48                     <execution>
49                         <goals>
50                             <goal>generate-sources</goal>
51                         </goals>
52                         <configuration>
53                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
54                             <codeGenerators>
55                                 <generator>
56                                     <codeGeneratorClass>
57                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
58                                     </codeGeneratorClass>
59                                     <outputBaseDir>
60                                         target/generated-sources/sal
61                                     </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.5.7-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.7</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         <pluginManagement>
97             <plugins>
98                 <!--This plugin's configuration is used to store Eclipse 
99                     m2e settings only. It has no influence on the Maven build itself. -->
100                 <plugin>
101                     <groupId>org.eclipse.m2e</groupId>
102                     <artifactId>lifecycle-mapping</artifactId>
103                     <version>1.0.0</version>
104                     <configuration>
105                         <lifecycleMappingMetadata>
106                             <pluginExecutions>
107                                 <pluginExecution>
108                                     <pluginExecutionFilter>
109                                         <groupId>
110                                             org.opendaylight.yangtools
111                                         </groupId>
112                                         <artifactId>
113                                             yang-maven-plugin
114                                         </artifactId>
115                                         <versionRange>
116                                             [0.5,)
117                                         </versionRange>
118                                         <goals>
119                                             <goal>
120                                                 generate-sources
121                                             </goal>
122                                         </goals>
123                                     </pluginExecutionFilter>
124                                     <action>
125                                         <ignore></ignore>
126                                     </action>
127                                 </pluginExecution>
128                             </pluginExecutions>
129                         </lifecycleMappingMetadata>
130                     </configuration>
131                 </plugin>
132             </plugins>
133         </pluginManagement>
134     </build>
135
136     <dependencies>
137         <dependency>
138             <groupId>org.opendaylight.yangtools</groupId>
139             <artifactId>yang-binding</artifactId>
140             <version>${yang.version}</version>
141         </dependency>
142         <dependency>
143             <groupId>org.opendaylight.yangtools</groupId>
144             <artifactId>yang-common</artifactId>
145             <version>${yang.version}</version>
146         </dependency>
147     </dependencies>
148
149 </project>