Merge "add getIntValue() method to EnumTemplate so that representing value can by...
[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"
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.8-SNAPSHOT</version>
14     <packaging>pom</packaging>
15     <name>${project.artifactId}</name>
16     <description>${project.artifactId}</description>
17
18     <properties>
19         <yang.version>0.5.8-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         <module>l2-types</module>
29     </modules>
30
31     <build>
32         <plugins>
33             <plugin>
34                 <groupId>org.apache.felix</groupId>
35                 <artifactId>maven-bundle-plugin</artifactId>
36                 <version>${maven.bundle.version}</version>
37                 <extensions>true</extensions>
38                 <configuration>
39                     <instructions>
40                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
41                     </instructions>
42                 </configuration>
43             </plugin>
44             <plugin>
45                 <groupId>org.opendaylight.yangtools</groupId>
46                 <artifactId>yang-maven-plugin</artifactId>
47                 <version>${yang.version}</version>
48                 <executions>
49                     <execution>
50                         <goals>
51                             <goal>generate-sources</goal>
52                         </goals>
53                         <configuration>
54                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
55                             <codeGenerators>
56                                 <generator>
57                                     <codeGeneratorClass>
58                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
59                                     </codeGeneratorClass>
60                                     <outputBaseDir>
61                                         target/generated-sources/sal
62                                     </outputBaseDir>
63                                 </generator>
64                             </codeGenerators>
65                             <inspectDependencies>true</inspectDependencies>
66                         </configuration>
67                     </execution>
68                 </executions>
69                 <dependencies>
70                     <dependency>
71                         <groupId>org.opendaylight.yangtools</groupId>
72                         <artifactId>maven-sal-api-gen-plugin</artifactId>
73                         <version>0.5.8-SNAPSHOT</version>
74                         <type>jar</type>
75                     </dependency>
76                 </dependencies>
77             </plugin>
78             <plugin>
79                 <groupId>org.codehaus.mojo</groupId>
80                 <artifactId>build-helper-maven-plugin</artifactId>
81                 <version>1.7</version>
82                 <executions>
83                     <execution>
84                         <phase>generate-sources</phase>
85                         <goals>
86                             <goal>add-source</goal>
87                         </goals>
88                         <configuration>
89                             <sources>
90                                 <source>target/generated-sources/sal</source>
91                             </sources>
92                         </configuration>
93                     </execution>
94                 </executions>
95             </plugin>
96         </plugins>
97         <pluginManagement>
98             <plugins>
99                 <!--This plugin's configuration is used to store Eclipse 
100                     m2e settings only. It has no influence on the Maven build itself. -->
101                 <plugin>
102                     <groupId>org.eclipse.m2e</groupId>
103                     <artifactId>lifecycle-mapping</artifactId>
104                     <version>1.0.0</version>
105                     <configuration>
106                         <lifecycleMappingMetadata>
107                             <pluginExecutions>
108                                 <pluginExecution>
109                                     <pluginExecutionFilter>
110                                         <groupId>
111                                             org.opendaylight.yangtools
112                                         </groupId>
113                                         <artifactId>
114                                             yang-maven-plugin
115                                         </artifactId>
116                                         <versionRange>
117                                             [0.5,)
118                                         </versionRange>
119                                         <goals>
120                                             <goal>
121                                                 generate-sources
122                                             </goal>
123                                         </goals>
124                                     </pluginExecutionFilter>
125                                     <action>
126                                         <ignore></ignore>
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>${yang.version}</version>
142         </dependency>
143         <dependency>
144             <groupId>org.opendaylight.yangtools</groupId>
145             <artifactId>yang-common</artifactId>
146             <version>${yang.version}</version>
147         </dependency>
148     </dependencies>
149
150 </project>