4ce4dcb3a759af7ca01199c6fd8d1ca9eab534f1
[controller.git] / opendaylight / sal / yang-prototype / sal / 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.controller</groupId>
6         <artifactId>sal-parent</artifactId>
7         <version>1.0-SNAPSHOT</version>
8     </parent>
9
10     <modelVersion>4.0.0</modelVersion>
11     <groupId>org.opendaylight.controller.model</groupId>
12     <artifactId>model-parent</artifactId>
13     <version>1.0-SNAPSHOT</version>
14     <packaging>pom</packaging>
15
16     <properties>
17         <yang.version>0.5.7-SNAPSHOT</yang.version>
18         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19         <maven.bundle.version>2.4.0</maven.bundle.version>
20     </properties>
21
22     <modules>
23         <module>model-inventory</module>
24         <module>model-flow</module>
25         <module>model-flow-statistics</module>
26         <!-- <module>model-topology-bgp</module> -->
27     </modules>
28
29     <build>
30         <plugins>
31             <plugin>
32                 <groupId>org.apache.felix</groupId>
33                 <artifactId>maven-bundle-plugin</artifactId>
34                 <version>${maven.bundle.version}</version>
35                 <extensions>true</extensions>
36                 <configuration>
37                     <instructions>
38                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
39                     </instructions>
40                 </configuration>
41             </plugin>
42             <plugin>
43                 <groupId>org.opendaylight.yangtools</groupId>
44                 <artifactId>yang-maven-plugin</artifactId>
45                 <version>${yang.version}</version>
46                 <executions>
47                     <execution>
48                         <goals>
49                             <goal>generate-sources</goal>
50                         </goals>
51                         <configuration>
52                             <yangFilesRootDir>src/main/yang</yangFilesRootDir>
53                             <codeGenerators>
54                                 <generator>
55                                     <codeGeneratorClass>
56                                         org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
57                                     </codeGeneratorClass>
58                                     <outputBaseDir>
59                                         target/generated-sources/sal
60                                     </outputBaseDir>
61                                 </generator>
62                             </codeGenerators>
63                             <inspectDependencies>true</inspectDependencies>
64                         </configuration>
65                     </execution>
66                 </executions>
67                 <dependencies>
68                     <dependency>
69                         <groupId>org.opendaylight.yangtools</groupId>
70                         <artifactId>maven-sal-api-gen-plugin</artifactId>
71                         <version>0.5.7-SNAPSHOT</version>
72                         <type>jar</type>
73                     </dependency>
74                 </dependencies>
75             </plugin>
76             <plugin>
77                 <groupId>org.codehaus.mojo</groupId>
78                 <artifactId>build-helper-maven-plugin</artifactId>
79                 <version>1.7</version>
80                 <executions>
81                     <execution>
82                         <phase>generate-sources</phase>
83                         <goals>
84                             <goal>add-source</goal>
85                         </goals>
86                         <configuration>
87                             <sources>
88                                 <source>target/generated-sources/sal</source>
89                             </sources>
90                         </configuration>
91                     </execution>
92                 </executions>
93             </plugin>
94         </plugins>
95         <pluginManagement>
96             <plugins>
97                 <!--This plugin's configuration is used to store Eclipse 
98                     m2e settings only. It has no influence on the Maven build itself. -->
99                 <plugin>
100                     <groupId>org.eclipse.m2e</groupId>
101                     <artifactId>lifecycle-mapping</artifactId>
102                     <version>1.0.0</version>
103                     <configuration>
104                         <lifecycleMappingMetadata>
105                             <pluginExecutions>
106                                 <pluginExecution>
107                                     <pluginExecutionFilter>
108                                         <groupId>
109                                             org.opendaylight.yangtools
110                                         </groupId>
111                                         <artifactId>
112                                             yang-maven-plugin
113                                         </artifactId>
114                                         <versionRange>
115                                             [0.5,)
116                                         </versionRange>
117                                         <goals>
118                                             <goal>
119                                                 generate-sources
120                                             </goal>
121                                         </goals>
122                                     </pluginExecutionFilter>
123                                     <action>
124                                         <ignore></ignore>
125                                     </action>
126                                 </pluginExecution>
127                             </pluginExecutions>
128                         </lifecycleMappingMetadata>
129                     </configuration>
130                 </plugin>
131             </plugins>
132         </pluginManagement>
133     </build>
134
135     <dependencies>
136         <dependency>
137             <groupId>org.opendaylight.yangtools</groupId>
138             <artifactId>yang-binding</artifactId>
139             <version>${yang.version}</version>
140         </dependency>
141         <dependency>
142             <groupId>org.opendaylight.yangtools</groupId>
143             <artifactId>yang-common</artifactId>
144             <version>${yang.version}</version>
145         </dependency>
146         <dependency>
147             <groupId>org.opendaylight.yangtools.model</groupId>
148             <artifactId>ietf-inet-types</artifactId>
149             <version>2010.09.24-SNAPSHOT</version>
150         </dependency>
151         <dependency>
152             <groupId>org.opendaylight.yangtools.model</groupId>
153             <artifactId>ietf-yang-types</artifactId>
154             <version>2010.09.24-SNAPSHOT</version>
155         </dependency>
156         <dependency>
157             <groupId>org.opendaylight.yangtools</groupId>
158             <artifactId>yang-ext</artifactId>
159             <version>2013.09.07-SNAPSHOT</version>
160         </dependency>
161     </dependencies>
162
163 </project>